OLD | NEW |
---|---|
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 /** | 6 /** |
7 * This file defines the API for handling the passing of data types between | 7 * This file defines the API for handling the passing of data types between |
8 * your module and the page. | 8 * your module and the page. |
9 */ | 9 */ |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
54 */ | 54 */ |
55 PP_VARTYPE_OBJECT = 6, | 55 PP_VARTYPE_OBJECT = 6, |
56 | 56 |
57 /** | 57 /** |
58 * Arrays and dictionaries are not currently supported but will be added | 58 * Arrays and dictionaries are not currently supported but will be added |
59 * in future revisions. These objects are reference counted so be sure | 59 * in future revisions. These objects are reference counted so be sure |
60 * to properly AddRef/Release them as you would with strings to ensure your | 60 * to properly AddRef/Release them as you would with strings to ensure your |
61 * module will continue to work with future versions of the API. | 61 * module will continue to work with future versions of the API. |
62 */ | 62 */ |
63 PP_VARTYPE_ARRAY = 7, | 63 PP_VARTYPE_ARRAY = 7, |
64 PP_VARTYPE_DICTIONARY = 8 | 64 PP_VARTYPE_DICTIONARY = 8, |
65 | |
66 /** | |
67 * ArrayBuffer represents a JavaScript ArrayBuffer. This is the type which | |
68 * represents Typed Arrays in JavaScript. Unlike JavaScript 'Array', it is | |
69 * only meant to contain basic numeric types, and is always stored | |
70 * contiguously. See PPB_VarArrayBuffer_Dev for functions special to | |
71 * ArrayBuffer vars. | |
72 */ | |
73 PP_VARTYPE_ARRAY_BUFFER = 9 | |
brettw
2011/12/03 00:00:49
I don't understand how this is different than ARRA
| |
65 }; | 74 }; |
66 | 75 |
67 | 76 |
68 /** | 77 /** |
69 * The PP_VarValue union stores the data for any one of the types listed | 78 * The PP_VarValue union stores the data for any one of the types listed |
70 * in the PP_VarType enum. | 79 * in the PP_VarType enum. |
71 */ | 80 */ |
72 [union] struct PP_VarValue { | 81 [union] struct PP_VarValue { |
73 /** | 82 /** |
74 * If <code>type</code> is <code>PP_VARTYPE_BOOL</code>, | 83 * If <code>type</code> is <code>PP_VARTYPE_BOOL</code>, |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
207 struct PP_Var result = { PP_VARTYPE_DOUBLE, 0, {PP_FALSE} }; | 216 struct PP_Var result = { PP_VARTYPE_DOUBLE, 0, {PP_FALSE} }; |
208 result.value.as_double = value; | 217 result.value.as_double = value; |
209 return result; | 218 return result; |
210 } | 219 } |
211 /** | 220 /** |
212 * @} | 221 * @} |
213 */ | 222 */ |
214 | 223 |
215 #endinl | 224 #endinl |
216 | 225 |
OLD | NEW |