Lines Matching full:code
2 * Use of this source code is governed by a BSD-style license that can be
27 * The <code>PP_VarType</code> is an enumeration of the different types that
28 * can be contained within a <code>PP_Var</code> structure.
41 * A boolean value, use the <code>as_bool</code> member of the var.
45 * A 32-bit integer value. Use the <code>as_int</code> member of the var.
49 * A double-precision floating point value. Use the <code>as_double</code>
54 * The Var represents a string. The <code>as_id</code> field is used to
56 * <code>PPB_Var</code> interface. These objects are reference counted, so
68 * Represents an array of Vars. The <code>as_id</code> field is used to
70 * <code>PPB_VarArray</code> interface. These objects are reference counted,
75 * Represents a mapping from strings to Vars. The <code>as_id</code> field is
77 * the <code>PPB_VarDictionary</code> interface. These objects are reference
112 * If <code>type</code> is <code>PP_VARTYPE_BOOL</code>,
113 * <code>as_bool</code> represents the value of this <code>PP_Var</code> as
114 * <code>PP_Bool</code>.
118 * If <code>type</code> is <code>PP_VARTYPE_INT32</code>,
119 * <code>as_int</code> represents the value of this <code>PP_Var</code> as
120 * <code>int32_t</code>.
124 * If <code>type</code> is <code>PP_VARTYPE_DOUBLE</code>,
125 * <code>as_double</code> represents the value of this <code>PP_Var</code>
126 * as <code>double</code>.
130 * If <code>type</code> is <code>PP_VARTYPE_STRING</code>,
131 * <code>PP_VARTYPE_OBJECT</code>, <code>PP_VARTYPE_ARRAY</code>,
132 * <code>PP_VARTYPE_DICTIONARY</code>, <code>PP_VARTYPE_ARRAY_BUFFER</code>,
133 * or <code>PP_VARTYPE_RESOURCE</code>, <code>as_id</code> represents the
134 * value of this <code>PP_Var</code> as an opaque handle assigned by the
142 * The <code>PP_VAR</code> struct is a variant data type and can contain any
143 * value of one of the types named in the <code>PP_VarType</code> enum. This
144 * structure is for passing data between native code which can be strongly
151 * you can't assume a numeric <code>PP_Var</code> will be the type you expect.
152 * Your code should be capable of handling either int32_t or double for numeric
158 * The <code>padding</code> ensures <code>value</code> is aligned on an
165 * This <code>value</code> represents the contents of the PP_Var. Only one of
166 * the fields of <code>value</code> is valid at a time based upon
167 * <code>type</code>.
183 * <code>PP_Var</code> struct for passing to the browser.
185 * @return A <code>PP_Var</code> structure.
194 * <code>PP_Var</code> struct for passing to the browser.
196 * @return A <code>PP_Var</code> structure,
205 * <code>PP_Var</code> struct for passing to the browser.
207 * @param[in] value A <code>PP_Bool</code> enumeration to
210 * @return A <code>PP_Var</code> structure.
220 * into a <code>PP_Var</code> struct for passing to the browser.
224 * @return A <code>PP_Var</code> structure.
234 * <code>PP_Var</code> struct for passing to the browser.
238 * @return A <code>PP_Var</code> structure.