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

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: Oops, remove Resize Created 9 years, 1 month 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
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, 55 PP_VARTYPE_OBJECT,
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, 63 PP_VARTYPE_ARRAY,
64 PP_VARTYPE_DICTIONARY 64 PP_VARTYPE_DICTIONARY,
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.
71 */
72 PP_VARTYPE_ARRAY_BUFFER
darin (slow to review) 2011/11/08 22:16:18 I'm very curious about the idea of making this be
dmichael (off chromium) 2011/11/08 22:32:20 PPB_Buffer is a PP_Resource, whereas I really want
65 }; 73 };
66 74
67 75
68 /** 76 /**
69 * The PP_VarValue union stores the data for any one of the types listed 77 * The PP_VarValue union stores the data for any one of the types listed
70 * in the PP_VarType enum. 78 * in the PP_VarType enum.
71 */ 79 */
72 [union] struct PP_VarValue { 80 [union] struct PP_VarValue {
73 /** 81 /**
74 * If <code>type</code> is <code>PP_VARTYPE_BOOL</code>, 82 * 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} }; 215 struct PP_Var result = { PP_VARTYPE_DOUBLE, 0, {PP_FALSE} };
208 result.value.as_double = value; 216 result.value.as_double = value;
209 return result; 217 return result;
210 } 218 }
211 /** 219 /**
212 * @} 220 * @}
213 */ 221 */
214 222
215 #endinl 223 #endinl
216 224
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698