Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: ppapi/api/pp_var.idl

Issue 8502030: Draft of a PPAPI interface for ArrayBuffer and typed arrays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/api/dev/ppb_var_array_buffer_dev.idl ('k') | ppapi/c/dev/ppb_var_array_buffer_dev.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « ppapi/api/dev/ppb_var_array_buffer_dev.idl ('k') | ppapi/c/dev/ppb_var_array_buffer_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698