Lines Matching full:code
2 * Use of this source code is governed by a BSD-style license that can be
12 * The <code>PP_VarType</code> is an enumeration of the different types that
13 * can be contained within a <code>PP_Var</code> structure.
29 * A boolean value, use the <code>as_bool</code> member of the var.
34 * A 32-bit integer value. Use the <code>as_int</code> member of the var.
39 * A double-precision floating point value. Use the <code>as_double</code>
45 * The Var represents a string. The <code>as_id</code> field is used to
47 * <code>PPB_Var</code> interface. These objects are reference counted, so
61 * Represents an array of Vars. The <code>as_id</code> field is used to
63 * <code>PPB_VarArray</code> interface. These objects are reference counted,
69 * Represents a mapping from strings to Vars. The <code>as_id</code> field is
71 * the <code>PPB_VarDictionary</code> interface. These objects are reference
101 * If <code>type</code> is <code>PP_VARTYPE_BOOL</code>,
102 * <code>as_bool</code> represents the value of this <code>PP_Var</code> as
103 * <code>PP_Bool</code>.
108 * If <code>type</code> is <code>PP_VARTYPE_INT32</code>,
109 * <code>as_int</code> represents the value of this <code>PP_Var</code> as
110 * <code>int32_t</code>.
115 * If <code>type</code> is <code>PP_VARTYPE_DOUBLE</code>,
116 * <code>as_double</code> represents the value of this <code>PP_Var</code>
117 * as <code>double</code>.
122 * If <code>type</code> is <code>PP_VARTYPE_STRING</code>,
123 * <code>PP_VARTYPE_OBJECT</code>, <code>PP_VARTYPE_ARRAY</code>,
124 * <code>PP_VARTYPE_DICTIONARY</code>, <code>PP_VARTYPE_ARRAY_BUFFER</code>,
125 * or <code>PP_VARTYPE_RESOURCE</code>, <code>as_id</code> represents the
126 * value of this <code>PP_Var</code> as an opaque handle assigned by the
134 * The <code>PP_VAR</code> struct is a variant data type and can contain any
135 * value of one of the types named in the <code>PP_VarType</code> enum. This
136 * structure is for passing data between native code which can be strongly
143 * you can't assume a numeric <code>PP_Var</code> will be the type you expect.
144 * Your code should be capable of handling either int32_t or double for numeric
152 * The <code>padding</code> ensures <code>value</code> is aligned on an
160 * This <code>value</code> represents the contents of the PP_Var. Only one of
161 * the fields of <code>value</code> is valid at a time based upon
162 * <code>type</code>.
176 * <code>PP_Var</code> struct for passing to the browser.
178 * @return A <code>PP_Var</code> structure.
187 * <code>PP_Var</code> struct for passing to the browser.
189 * @return A <code>PP_Var</code> structure,
198 * <code>PP_Var</code> struct for passing to the browser.
200 * @param[in] value A <code>PP_Bool</code> enumeration to
203 * @return A <code>PP_Var</code> structure.
213 * into a <code>PP_Var</code> struct for passing to the browser.
217 * @return A <code>PP_Var</code> structure.
227 * <code>PP_Var</code> struct for passing to the browser.
231 * @return A <code>PP_Var</code> structure.