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

Side by Side Diff: ppapi/c/ppb_var_array_buffer.h

Issue 9107046: PPAPI: Move PPB_ArrayBuffer out of Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor fixes Created 8 years, 11 months 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/c/dev/ppb_var_array_buffer_dev.h ('k') | ppapi/cpp/dev/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) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 /* From dev/ppb_var_array_buffer_dev.idl modified Thu Jan 26 11:25:54 2012. */ 6 /* From ppb_var_array_buffer.idl modified Thu Jan 26 14:50:50 2012. */
7 7
8 #ifndef PPAPI_C_DEV_PPB_VAR_ARRAY_BUFFER_DEV_H_ 8 #ifndef PPAPI_C_PPB_VAR_ARRAY_BUFFER_H_
9 #define PPAPI_C_DEV_PPB_VAR_ARRAY_BUFFER_DEV_H_ 9 #define PPAPI_C_PPB_VAR_ARRAY_BUFFER_H_
10 10
11 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_macros.h" 12 #include "ppapi/c/pp_macros.h"
13 #include "ppapi/c/pp_stdint.h" 13 #include "ppapi/c/pp_stdint.h"
14 #include "ppapi/c/pp_var.h" 14 #include "ppapi/c/pp_var.h"
15 15
16 #define PPB_VAR_ARRAY_BUFFER_DEV_INTERFACE_0_2 "PPB_VarArrayBuffer(Dev);0.2" 16 #define PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0 "PPB_VarArrayBuffer;1.0"
17 #define PPB_VAR_ARRAY_BUFFER_DEV_INTERFACE \ 17 #define PPB_VAR_ARRAY_BUFFER_INTERFACE PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0
18 PPB_VAR_ARRAY_BUFFER_DEV_INTERFACE_0_2
19 18
20 /** 19 /**
21 * @file 20 * @file
22 * This file defines the <code>PPB_VarArrayBuffer_Dev</code> struct. 21 * This file defines the <code>PPB_VarArrayBuffer</code> struct.
23 */ 22 */
24 23
25 24
26 /** 25 /**
27 * @addtogroup Interfaces 26 * @addtogroup Interfaces
28 * @{ 27 * @{
29 */ 28 */
30 /** 29 /**
31 * PPB_VarArrayBuffer_Dev API. This provides a way to interact with JavaScript 30 * PPB_VarArrayBuffer API. This provides a way to interact with JavaScript
32 * ArrayBuffers, which represent a contiguous sequence of bytes. To manage the 31 * ArrayBuffers, which represent a contiguous sequence of bytes. To manage the
33 * reference count for a VarArrayBuffer, please see PPB_Var. Note that 32 * reference count for a VarArrayBuffer, please see PPB_Var. Note that
34 * these Vars are not part of the embedding page's DOM, and can only be shared 33 * these Vars are not part of the embedding page's DOM, and can only be shared
35 * with JavaScript via pp::Instance's PostMessage and HandleMessage functions. 34 * with JavaScript via pp::Instance's PostMessage and HandleMessage functions.
36 */ 35 */
37 struct PPB_VarArrayBuffer_Dev_0_2 { 36 struct PPB_VarArrayBuffer_1_0 {
38 /** 37 /**
39 * Create a zero-initialized VarArrayBuffer. 38 * Create a zero-initialized VarArrayBuffer.
40 * 39 *
41 * @param[in] size_in_bytes The size of the ArrayBuffer that will be created. 40 * @param[in] size_in_bytes The size of the ArrayBuffer that will be created.
42 * 41 *
43 * @return A PP_Var which represents a VarArrayBuffer of the requested size 42 * @return A PP_Var which represents a VarArrayBuffer of the requested size
44 * with a reference count of 1. 43 * with a reference count of 1.
45 */ 44 */
46 struct PP_Var (*Create)(uint32_t size_in_bytes); 45 struct PP_Var (*Create)(uint32_t size_in_bytes);
47 /** 46 /**
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 * Unmaps the given ArrayBuffer var from the module address space. Use this if 86 * Unmaps the given ArrayBuffer var from the module address space. Use this if
88 * you want to save memory but might want to Map the buffer again later. The 87 * you want to save memory but might want to Map the buffer again later. The
89 * PP_Var remains valid and should still be released using PPB_Var when you 88 * PP_Var remains valid and should still be released using PPB_Var when you
90 * are done with the ArrayBuffer. 89 * are done with the ArrayBuffer.
91 * 90 *
92 * @param[in] array The ArrayBuffer which should be released. 91 * @param[in] array The ArrayBuffer which should be released.
93 */ 92 */
94 void (*Unmap)(struct PP_Var array); 93 void (*Unmap)(struct PP_Var array);
95 }; 94 };
96 95
97 typedef struct PPB_VarArrayBuffer_Dev_0_2 PPB_VarArrayBuffer_Dev; 96 typedef struct PPB_VarArrayBuffer_1_0 PPB_VarArrayBuffer;
98 /** 97 /**
99 * @} 98 * @}
100 */ 99 */
101 100
102 #endif /* PPAPI_C_DEV_PPB_VAR_ARRAY_BUFFER_DEV_H_ */ 101 #endif /* PPAPI_C_PPB_VAR_ARRAY_BUFFER_H_ */
103 102
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppb_var_array_buffer_dev.h ('k') | ppapi/cpp/dev/var_array_buffer_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698