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

Side by Side Diff: ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c

Issue 148213016: [PPAPI] Moving pp::VarResource_Dev API into pp::Var (now stable). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 10 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/examples/media_stream_video/media_stream_video.cc ('k') | ppapi/ppapi_shared.gypi » ('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) 2014 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2014 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 /* NOTE: this is auto-generated from IDL */ 6 /* NOTE: this is auto-generated from IDL */
7 #include "ppapi/generators/pnacl_shim.h" 7 #include "ppapi/generators/pnacl_shim.h"
8 8
9 #include "ppapi/c/ppb.h" 9 #include "ppapi/c/ppb.h"
10 #include "ppapi/c/dev/ppb_alarms_dev.h" 10 #include "ppapi/c/dev/ppb_alarms_dev.h"
11 #include "ppapi/c/dev/ppb_audio_input_dev.h" 11 #include "ppapi/c/dev/ppb_audio_input_dev.h"
12 #include "ppapi/c/dev/ppb_buffer_dev.h" 12 #include "ppapi/c/dev/ppb_buffer_dev.h"
13 #include "ppapi/c/dev/ppb_crypto_dev.h" 13 #include "ppapi/c/dev/ppb_crypto_dev.h"
14 #include "ppapi/c/dev/ppb_cursor_control_dev.h" 14 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
15 #include "ppapi/c/dev/ppb_device_ref_dev.h" 15 #include "ppapi/c/dev/ppb_device_ref_dev.h"
16 #include "ppapi/c/dev/ppb_file_chooser_dev.h" 16 #include "ppapi/c/dev/ppb_file_chooser_dev.h"
17 #include "ppapi/c/dev/ppb_find_dev.h" 17 #include "ppapi/c/dev/ppb_find_dev.h"
18 #include "ppapi/c/dev/ppb_font_dev.h" 18 #include "ppapi/c/dev/ppb_font_dev.h"
19 #include "ppapi/c/dev/ppb_graphics_2d_dev.h" 19 #include "ppapi/c/dev/ppb_graphics_2d_dev.h"
20 #include "ppapi/c/dev/ppb_ime_input_event_dev.h" 20 #include "ppapi/c/dev/ppb_ime_input_event_dev.h"
21 #include "ppapi/c/dev/ppb_memory_dev.h" 21 #include "ppapi/c/dev/ppb_memory_dev.h"
22 #include "ppapi/c/dev/ppb_printing_dev.h" 22 #include "ppapi/c/dev/ppb_printing_dev.h"
23 #include "ppapi/c/dev/ppb_scrollbar_dev.h" 23 #include "ppapi/c/dev/ppb_scrollbar_dev.h"
24 #include "ppapi/c/dev/ppb_text_input_dev.h" 24 #include "ppapi/c/dev/ppb_text_input_dev.h"
25 #include "ppapi/c/dev/ppb_trace_event_dev.h" 25 #include "ppapi/c/dev/ppb_trace_event_dev.h"
26 #include "ppapi/c/dev/ppb_truetype_font_dev.h" 26 #include "ppapi/c/dev/ppb_truetype_font_dev.h"
27 #include "ppapi/c/dev/ppb_url_util_dev.h" 27 #include "ppapi/c/dev/ppb_url_util_dev.h"
28 #include "ppapi/c/dev/ppb_var_resource_dev.h"
29 #include "ppapi/c/dev/ppb_video_capture_dev.h" 28 #include "ppapi/c/dev/ppb_video_capture_dev.h"
30 #include "ppapi/c/dev/ppb_video_decoder_dev.h" 29 #include "ppapi/c/dev/ppb_video_decoder_dev.h"
31 #include "ppapi/c/dev/ppb_view_dev.h" 30 #include "ppapi/c/dev/ppb_view_dev.h"
32 #include "ppapi/c/dev/ppb_widget_dev.h" 31 #include "ppapi/c/dev/ppb_widget_dev.h"
33 #include "ppapi/c/dev/ppb_zoom_dev.h" 32 #include "ppapi/c/dev/ppb_zoom_dev.h"
34 #include "ppapi/c/dev/ppp_network_state_dev.h" 33 #include "ppapi/c/dev/ppp_network_state_dev.h"
35 #include "ppapi/c/dev/ppp_printing_dev.h" 34 #include "ppapi/c/dev/ppp_printing_dev.h"
36 #include "ppapi/c/dev/ppp_scrollbar_dev.h" 35 #include "ppapi/c/dev/ppp_scrollbar_dev.h"
37 #include "ppapi/c/dev/ppp_selection_dev.h" 36 #include "ppapi/c/dev/ppp_selection_dev.h"
38 #include "ppapi/c/dev/ppp_text_input_dev.h" 37 #include "ppapi/c/dev/ppp_text_input_dev.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkProxy_1_0; 168 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkProxy_1_0;
170 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_0; 169 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_0;
171 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_1; 170 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_1;
172 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInputController_1_0; 171 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInputController_1_0;
173 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_1_0; 172 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_1_0;
174 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0; 173 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0;
175 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0; 174 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0;
176 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0; 175 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0;
177 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_0; 176 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_0;
178 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1; 177 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1;
178 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_2;
179 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArray_1_0; 179 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArray_1_0;
180 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0; 180 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0;
181 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarDictionary_1_0; 181 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarDictionary_1_0;
182 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0; 182 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0;
183 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0; 183 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0;
184 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Alarms_Dev_0_1; 184 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Alarms_Dev_0_1;
185 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3; 185 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3;
186 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4; 186 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4;
187 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1; 187 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1;
188 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5; 188 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5;
189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6; 189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6;
190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6; 190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6;
191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1; 191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1;
192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2; 192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2;
193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7; 193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7;
194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TrueTypeFont_Dev_0_1; 194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TrueTypeFont_Dev_0_1;
195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6; 195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6;
196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7; 196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7;
197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarResource_Dev_0_1;
198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3; 197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3;
199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16; 198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16;
200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Selection_Dev_0_3; 199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Selection_Dev_0_3;
201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_ 0_10; 200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_ 0_10;
202 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private _0_1; 201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private _0_1;
203 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_Private_0_1; 202 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_Private_0_1;
204 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1; 203 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1;
205 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_4; 204 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_4;
206 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_5; 205 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_5;
207 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_6; 206 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_6;
(...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1620 *_struct_result = iface->VarFromUtf8(data, len); 1619 *_struct_result = iface->VarFromUtf8(data, len);
1621 } 1620 }
1622 1621
1623 static const char* Pnacl_M18_PPB_Var_VarToUtf8(struct PP_Var* var, uint32_t* len ) { 1622 static const char* Pnacl_M18_PPB_Var_VarToUtf8(struct PP_Var* var, uint32_t* len ) {
1624 const struct PPB_Var_1_1 *iface = Pnacl_WrapperInfo_PPB_Var_1_1.real_iface; 1623 const struct PPB_Var_1_1 *iface = Pnacl_WrapperInfo_PPB_Var_1_1.real_iface;
1625 return iface->VarToUtf8(*var, len); 1624 return iface->VarToUtf8(*var, len);
1626 } 1625 }
1627 1626
1628 /* End wrapper methods for PPB_Var_1_1 */ 1627 /* End wrapper methods for PPB_Var_1_1 */
1629 1628
1629 /* Begin wrapper methods for PPB_Var_1_2 */
1630
1631 static void Pnacl_M34_PPB_Var_AddRef(struct PP_Var* var) {
1632 const struct PPB_Var_1_2 *iface = Pnacl_WrapperInfo_PPB_Var_1_2.real_iface;
1633 iface->AddRef(*var);
1634 }
1635
1636 static void Pnacl_M34_PPB_Var_Release(struct PP_Var* var) {
1637 const struct PPB_Var_1_2 *iface = Pnacl_WrapperInfo_PPB_Var_1_2.real_iface;
1638 iface->Release(*var);
1639 }
1640
1641 static void Pnacl_M34_PPB_Var_VarFromUtf8(struct PP_Var* _struct_result, const c har* data, uint32_t len) {
1642 const struct PPB_Var_1_2 *iface = Pnacl_WrapperInfo_PPB_Var_1_2.real_iface;
1643 *_struct_result = iface->VarFromUtf8(data, len);
1644 }
1645
1646 static const char* Pnacl_M34_PPB_Var_VarToUtf8(struct PP_Var* var, uint32_t* len ) {
1647 const struct PPB_Var_1_2 *iface = Pnacl_WrapperInfo_PPB_Var_1_2.real_iface;
1648 return iface->VarToUtf8(*var, len);
1649 }
1650
1651 static PP_Resource Pnacl_M34_PPB_Var_VarToResource(struct PP_Var* var) {
1652 const struct PPB_Var_1_2 *iface = Pnacl_WrapperInfo_PPB_Var_1_2.real_iface;
1653 return iface->VarToResource(*var);
1654 }
1655
1656 static void Pnacl_M34_PPB_Var_VarFromResource(struct PP_Var* _struct_result, PP_ Resource resource) {
1657 const struct PPB_Var_1_2 *iface = Pnacl_WrapperInfo_PPB_Var_1_2.real_iface;
1658 *_struct_result = iface->VarFromResource(resource);
1659 }
1660
1661 /* End wrapper methods for PPB_Var_1_2 */
1662
1630 /* Begin wrapper methods for PPB_VarArray_1_0 */ 1663 /* Begin wrapper methods for PPB_VarArray_1_0 */
1631 1664
1632 static void Pnacl_M29_PPB_VarArray_Create(struct PP_Var* _struct_result) { 1665 static void Pnacl_M29_PPB_VarArray_Create(struct PP_Var* _struct_result) {
1633 const struct PPB_VarArray_1_0 *iface = Pnacl_WrapperInfo_PPB_VarArray_1_0.real _iface; 1666 const struct PPB_VarArray_1_0 *iface = Pnacl_WrapperInfo_PPB_VarArray_1_0.real _iface;
1634 *_struct_result = iface->Create(); 1667 *_struct_result = iface->Create();
1635 } 1668 }
1636 1669
1637 static void Pnacl_M29_PPB_VarArray_Get(struct PP_Var* _struct_result, struct PP_ Var* array, uint32_t index) { 1670 static void Pnacl_M29_PPB_VarArray_Get(struct PP_Var* _struct_result, struct PP_ Var* array, uint32_t index) {
1638 const struct PPB_VarArray_1_0 *iface = Pnacl_WrapperInfo_PPB_VarArray_1_0.real _iface; 1671 const struct PPB_VarArray_1_0 *iface = Pnacl_WrapperInfo_PPB_VarArray_1_0.real _iface;
1639 *_struct_result = iface->Get(*array, index); 1672 *_struct_result = iface->Get(*array, index);
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
2303 *_struct_result = iface->GetPluginInstanceURL(instance, components); 2336 *_struct_result = iface->GetPluginInstanceURL(instance, components);
2304 } 2337 }
2305 2338
2306 static void Pnacl_M31_PPB_URLUtil_Dev_GetPluginReferrerURL(struct PP_Var* _struc t_result, PP_Instance instance, struct PP_URLComponents_Dev* components) { 2339 static void Pnacl_M31_PPB_URLUtil_Dev_GetPluginReferrerURL(struct PP_Var* _struc t_result, PP_Instance instance, struct PP_URLComponents_Dev* components) {
2307 const struct PPB_URLUtil_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 7.real_iface; 2340 const struct PPB_URLUtil_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 7.real_iface;
2308 *_struct_result = iface->GetPluginReferrerURL(instance, components); 2341 *_struct_result = iface->GetPluginReferrerURL(instance, components);
2309 } 2342 }
2310 2343
2311 /* End wrapper methods for PPB_URLUtil_Dev_0_7 */ 2344 /* End wrapper methods for PPB_URLUtil_Dev_0_7 */
2312 2345
2313 /* Begin wrapper methods for PPB_VarResource_Dev_0_1 */
2314
2315 static PP_Resource Pnacl_M32_PPB_VarResource_Dev_VarToResource(struct PP_Var* va r) {
2316 const struct PPB_VarResource_Dev_0_1 *iface = Pnacl_WrapperInfo_PPB_VarResourc e_Dev_0_1.real_iface;
2317 return iface->VarToResource(*var);
2318 }
2319
2320 static void Pnacl_M32_PPB_VarResource_Dev_VarFromResource(struct PP_Var* _struct _result, PP_Resource resource) {
2321 const struct PPB_VarResource_Dev_0_1 *iface = Pnacl_WrapperInfo_PPB_VarResourc e_Dev_0_1.real_iface;
2322 *_struct_result = iface->VarFromResource(resource);
2323 }
2324
2325 /* End wrapper methods for PPB_VarResource_Dev_0_1 */
2326
2327 /* Begin wrapper methods for PPB_VideoCapture_Dev_0_3 */ 2346 /* Begin wrapper methods for PPB_VideoCapture_Dev_0_3 */
2328 2347
2329 static PP_Resource Pnacl_M25_PPB_VideoCapture_Dev_Create(PP_Instance instance) { 2348 static PP_Resource Pnacl_M25_PPB_VideoCapture_Dev_Create(PP_Instance instance) {
2330 const struct PPB_VideoCapture_Dev_0_3 *iface = Pnacl_WrapperInfo_PPB_VideoCapt ure_Dev_0_3.real_iface; 2349 const struct PPB_VideoCapture_Dev_0_3 *iface = Pnacl_WrapperInfo_PPB_VideoCapt ure_Dev_0_3.real_iface;
2331 return iface->Create(instance); 2350 return iface->Create(instance);
2332 } 2351 }
2333 2352
2334 static PP_Bool Pnacl_M25_PPB_VideoCapture_Dev_IsVideoCapture(PP_Resource video_c apture) { 2353 static PP_Bool Pnacl_M25_PPB_VideoCapture_Dev_IsVideoCapture(PP_Resource video_c apture) {
2335 const struct PPB_VideoCapture_Dev_0_3 *iface = Pnacl_WrapperInfo_PPB_VideoCapt ure_Dev_0_3.real_iface; 2354 const struct PPB_VideoCapture_Dev_0_3 *iface = Pnacl_WrapperInfo_PPB_VideoCapt ure_Dev_0_3.real_iface;
2336 return iface->IsVideoCapture(video_capture); 2355 return iface->IsVideoCapture(video_capture);
(...skipping 2219 matching lines...) Expand 10 before | Expand all | Expand 10 after
4556 .VarToUtf8 = (const char* (*)(struct PP_Var var, uint32_t* len))&Pnacl_M14_P PB_Var_VarToUtf8 4575 .VarToUtf8 = (const char* (*)(struct PP_Var var, uint32_t* len))&Pnacl_M14_P PB_Var_VarToUtf8
4557 }; 4576 };
4558 4577
4559 static struct PPB_Var_1_1 Pnacl_Wrappers_PPB_Var_1_1 = { 4578 static struct PPB_Var_1_1 Pnacl_Wrappers_PPB_Var_1_1 = {
4560 .AddRef = (void (*)(struct PP_Var var))&Pnacl_M18_PPB_Var_AddRef, 4579 .AddRef = (void (*)(struct PP_Var var))&Pnacl_M18_PPB_Var_AddRef,
4561 .Release = (void (*)(struct PP_Var var))&Pnacl_M18_PPB_Var_Release, 4580 .Release = (void (*)(struct PP_Var var))&Pnacl_M18_PPB_Var_Release,
4562 .VarFromUtf8 = (struct PP_Var (*)(const char* data, uint32_t len))&Pnacl_M18 _PPB_Var_VarFromUtf8, 4581 .VarFromUtf8 = (struct PP_Var (*)(const char* data, uint32_t len))&Pnacl_M18 _PPB_Var_VarFromUtf8,
4563 .VarToUtf8 = (const char* (*)(struct PP_Var var, uint32_t* len))&Pnacl_M18_P PB_Var_VarToUtf8 4582 .VarToUtf8 = (const char* (*)(struct PP_Var var, uint32_t* len))&Pnacl_M18_P PB_Var_VarToUtf8
4564 }; 4583 };
4565 4584
4585 static struct PPB_Var_1_2 Pnacl_Wrappers_PPB_Var_1_2 = {
4586 .AddRef = (void (*)(struct PP_Var var))&Pnacl_M34_PPB_Var_AddRef,
4587 .Release = (void (*)(struct PP_Var var))&Pnacl_M34_PPB_Var_Release,
4588 .VarFromUtf8 = (struct PP_Var (*)(const char* data, uint32_t len))&Pnacl_M34 _PPB_Var_VarFromUtf8,
4589 .VarToUtf8 = (const char* (*)(struct PP_Var var, uint32_t* len))&Pnacl_M34_P PB_Var_VarToUtf8,
4590 .VarToResource = (PP_Resource (*)(struct PP_Var var))&Pnacl_M34_PPB_Var_VarT oResource,
4591 .VarFromResource = (struct PP_Var (*)(PP_Resource resource))&Pnacl_M34_PPB_V ar_VarFromResource
4592 };
4593
4566 static struct PPB_VarArray_1_0 Pnacl_Wrappers_PPB_VarArray_1_0 = { 4594 static struct PPB_VarArray_1_0 Pnacl_Wrappers_PPB_VarArray_1_0 = {
4567 .Create = (struct PP_Var (*)(void))&Pnacl_M29_PPB_VarArray_Create, 4595 .Create = (struct PP_Var (*)(void))&Pnacl_M29_PPB_VarArray_Create,
4568 .Get = (struct PP_Var (*)(struct PP_Var array, uint32_t index))&Pnacl_M29_PP B_VarArray_Get, 4596 .Get = (struct PP_Var (*)(struct PP_Var array, uint32_t index))&Pnacl_M29_PP B_VarArray_Get,
4569 .Set = (PP_Bool (*)(struct PP_Var array, uint32_t index, struct PP_Var value ))&Pnacl_M29_PPB_VarArray_Set, 4597 .Set = (PP_Bool (*)(struct PP_Var array, uint32_t index, struct PP_Var value ))&Pnacl_M29_PPB_VarArray_Set,
4570 .GetLength = (uint32_t (*)(struct PP_Var array))&Pnacl_M29_PPB_VarArray_GetL ength, 4598 .GetLength = (uint32_t (*)(struct PP_Var array))&Pnacl_M29_PPB_VarArray_GetL ength,
4571 .SetLength = (PP_Bool (*)(struct PP_Var array, uint32_t length))&Pnacl_M29_P PB_VarArray_SetLength 4599 .SetLength = (PP_Bool (*)(struct PP_Var array, uint32_t length))&Pnacl_M29_P PB_VarArray_SetLength
4572 }; 4600 };
4573 4601
4574 static struct PPB_VarArrayBuffer_1_0 Pnacl_Wrappers_PPB_VarArrayBuffer_1_0 = { 4602 static struct PPB_VarArrayBuffer_1_0 Pnacl_Wrappers_PPB_VarArrayBuffer_1_0 = {
4575 .Create = (struct PP_Var (*)(uint32_t size_in_bytes))&Pnacl_M18_PPB_VarArray Buffer_Create, 4603 .Create = (struct PP_Var (*)(uint32_t size_in_bytes))&Pnacl_M18_PPB_VarArray Buffer_Create,
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
4775 .ResolveRelativeToURL = (struct PP_Var (*)(struct PP_Var base_url, struct PP _Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M31_PPB_UR LUtil_Dev_ResolveRelativeToURL, 4803 .ResolveRelativeToURL = (struct PP_Var (*)(struct PP_Var base_url, struct PP _Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M31_PPB_UR LUtil_Dev_ResolveRelativeToURL,
4776 .ResolveRelativeToDocument = (struct PP_Var (*)(PP_Instance instance, struct PP_Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M31_PPB _URLUtil_Dev_ResolveRelativeToDocument, 4804 .ResolveRelativeToDocument = (struct PP_Var (*)(PP_Instance instance, struct PP_Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M31_PPB _URLUtil_Dev_ResolveRelativeToDocument,
4777 .IsSameSecurityOrigin = (PP_Bool (*)(struct PP_Var url_a, struct PP_Var url_ b))&Pnacl_M31_PPB_URLUtil_Dev_IsSameSecurityOrigin, 4805 .IsSameSecurityOrigin = (PP_Bool (*)(struct PP_Var url_a, struct PP_Var url_ b))&Pnacl_M31_PPB_URLUtil_Dev_IsSameSecurityOrigin,
4778 .DocumentCanRequest = (PP_Bool (*)(PP_Instance instance, struct PP_Var url)) &Pnacl_M31_PPB_URLUtil_Dev_DocumentCanRequest, 4806 .DocumentCanRequest = (PP_Bool (*)(PP_Instance instance, struct PP_Var url)) &Pnacl_M31_PPB_URLUtil_Dev_DocumentCanRequest,
4779 .DocumentCanAccessDocument = (PP_Bool (*)(PP_Instance active, PP_Instance ta rget))&Pnacl_M31_PPB_URLUtil_Dev_DocumentCanAccessDocument, 4807 .DocumentCanAccessDocument = (PP_Bool (*)(PP_Instance active, PP_Instance ta rget))&Pnacl_M31_PPB_URLUtil_Dev_DocumentCanAccessDocument,
4780 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M31_PPB_URLUtil_Dev_GetDocumentURL, 4808 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M31_PPB_URLUtil_Dev_GetDocumentURL,
4781 .GetPluginInstanceURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M31_PPB_URLUtil_Dev_GetPluginInstanceURL, 4809 .GetPluginInstanceURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M31_PPB_URLUtil_Dev_GetPluginInstanceURL,
4782 .GetPluginReferrerURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M31_PPB_URLUtil_Dev_GetPluginReferrerURL 4810 .GetPluginReferrerURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M31_PPB_URLUtil_Dev_GetPluginReferrerURL
4783 }; 4811 };
4784 4812
4785 static struct PPB_VarResource_Dev_0_1 Pnacl_Wrappers_PPB_VarResource_Dev_0_1 = {
4786 .VarToResource = (PP_Resource (*)(struct PP_Var var))&Pnacl_M32_PPB_VarResou rce_Dev_VarToResource,
4787 .VarFromResource = (struct PP_Var (*)(PP_Resource resource))&Pnacl_M32_PPB_V arResource_Dev_VarFromResource
4788 };
4789
4790 static struct PPB_VideoCapture_Dev_0_3 Pnacl_Wrappers_PPB_VideoCapture_Dev_0_3 = { 4813 static struct PPB_VideoCapture_Dev_0_3 Pnacl_Wrappers_PPB_VideoCapture_Dev_0_3 = {
4791 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M25_PPB_VideoCapture _Dev_Create, 4814 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M25_PPB_VideoCapture _Dev_Create,
4792 .IsVideoCapture = (PP_Bool (*)(PP_Resource video_capture))&Pnacl_M25_PPB_Vid eoCapture_Dev_IsVideoCapture, 4815 .IsVideoCapture = (PP_Bool (*)(PP_Resource video_capture))&Pnacl_M25_PPB_Vid eoCapture_Dev_IsVideoCapture,
4793 .EnumerateDevices = (int32_t (*)(PP_Resource video_capture, struct PP_ArrayO utput output, struct PP_CompletionCallback callback))&Pnacl_M25_PPB_VideoCapture _Dev_EnumerateDevices, 4816 .EnumerateDevices = (int32_t (*)(PP_Resource video_capture, struct PP_ArrayO utput output, struct PP_CompletionCallback callback))&Pnacl_M25_PPB_VideoCapture _Dev_EnumerateDevices,
4794 .MonitorDeviceChange = (int32_t (*)(PP_Resource video_capture, PP_MonitorDev iceChangeCallback callback, void* user_data))&Pnacl_M25_PPB_VideoCapture_Dev_Mon itorDeviceChange, 4817 .MonitorDeviceChange = (int32_t (*)(PP_Resource video_capture, PP_MonitorDev iceChangeCallback callback, void* user_data))&Pnacl_M25_PPB_VideoCapture_Dev_Mon itorDeviceChange,
4795 .Open = (int32_t (*)(PP_Resource video_capture, PP_Resource device_ref, cons t struct PP_VideoCaptureDeviceInfo_Dev* requested_info, uint32_t buffer_count, s truct PP_CompletionCallback callback))&Pnacl_M25_PPB_VideoCapture_Dev_Open, 4818 .Open = (int32_t (*)(PP_Resource video_capture, PP_Resource device_ref, cons t struct PP_VideoCaptureDeviceInfo_Dev* requested_info, uint32_t buffer_count, s truct PP_CompletionCallback callback))&Pnacl_M25_PPB_VideoCapture_Dev_Open,
4796 .StartCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M25_PPB_Video Capture_Dev_StartCapture, 4819 .StartCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M25_PPB_Video Capture_Dev_StartCapture,
4797 .ReuseBuffer = (int32_t (*)(PP_Resource video_capture, uint32_t buffer))&Pna cl_M25_PPB_VideoCapture_Dev_ReuseBuffer, 4820 .ReuseBuffer = (int32_t (*)(PP_Resource video_capture, uint32_t buffer))&Pna cl_M25_PPB_VideoCapture_Dev_ReuseBuffer,
4798 .StopCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M25_PPB_VideoC apture_Dev_StopCapture, 4821 .StopCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M25_PPB_VideoC apture_Dev_StopCapture,
4799 .Close = (void (*)(PP_Resource video_capture))&Pnacl_M25_PPB_VideoCapture_De v_Close 4822 .Close = (void (*)(PP_Resource video_capture))&Pnacl_M25_PPB_VideoCapture_De v_Close
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
5509 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Var_1_0, 5532 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Var_1_0,
5510 .real_iface = NULL 5533 .real_iface = NULL
5511 }; 5534 };
5512 5535
5513 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1 = { 5536 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1 = {
5514 .iface_macro = PPB_VAR_INTERFACE_1_1, 5537 .iface_macro = PPB_VAR_INTERFACE_1_1,
5515 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Var_1_1, 5538 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Var_1_1,
5516 .real_iface = NULL 5539 .real_iface = NULL
5517 }; 5540 };
5518 5541
5542 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_2 = {
5543 .iface_macro = PPB_VAR_INTERFACE_1_2,
5544 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Var_1_2,
5545 .real_iface = NULL
5546 };
5547
5519 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArray_1_0 = { 5548 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArray_1_0 = {
5520 .iface_macro = PPB_VAR_ARRAY_INTERFACE_1_0, 5549 .iface_macro = PPB_VAR_ARRAY_INTERFACE_1_0,
5521 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VarArray_1_0, 5550 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VarArray_1_0,
5522 .real_iface = NULL 5551 .real_iface = NULL
5523 }; 5552 };
5524 5553
5525 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0 = { 5554 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0 = {
5526 .iface_macro = PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0, 5555 .iface_macro = PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0,
5527 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VarArrayBuffer_1_0, 5556 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VarArrayBuffer_1_0,
5528 .real_iface = NULL 5557 .real_iface = NULL
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
5617 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_6, 5646 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_6,
5618 .real_iface = NULL 5647 .real_iface = NULL
5619 }; 5648 };
5620 5649
5621 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7 = { 5650 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7 = {
5622 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_7, 5651 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_7,
5623 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_7, 5652 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_7,
5624 .real_iface = NULL 5653 .real_iface = NULL
5625 }; 5654 };
5626 5655
5627 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarResource_Dev_0_1 = {
5628 .iface_macro = PPB_VAR_RESOURCE_DEV_INTERFACE_0_1,
5629 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VarResource_Dev_0_1,
5630 .real_iface = NULL
5631 };
5632
5633 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3 = { 5656 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3 = {
5634 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_3, 5657 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_3,
5635 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_3, 5658 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_3,
5636 .real_iface = NULL 5659 .real_iface = NULL
5637 }; 5660 };
5638 5661
5639 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16 = { 5662 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16 = {
5640 .iface_macro = PPB_VIDEODECODER_DEV_INTERFACE_0_16, 5663 .iface_macro = PPB_VIDEODECODER_DEV_INTERFACE_0_16,
5641 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoDecoder_Dev_0_16, 5664 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoDecoder_Dev_0_16,
5642 .real_iface = NULL 5665 .real_iface = NULL
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
5938 &Pnacl_WrapperInfo_PPB_NetworkProxy_1_0, 5961 &Pnacl_WrapperInfo_PPB_NetworkProxy_1_0,
5939 &Pnacl_WrapperInfo_PPB_TCPSocket_1_0, 5962 &Pnacl_WrapperInfo_PPB_TCPSocket_1_0,
5940 &Pnacl_WrapperInfo_PPB_TCPSocket_1_1, 5963 &Pnacl_WrapperInfo_PPB_TCPSocket_1_1,
5941 &Pnacl_WrapperInfo_PPB_TextInputController_1_0, 5964 &Pnacl_WrapperInfo_PPB_TextInputController_1_0,
5942 &Pnacl_WrapperInfo_PPB_UDPSocket_1_0, 5965 &Pnacl_WrapperInfo_PPB_UDPSocket_1_0,
5943 &Pnacl_WrapperInfo_PPB_URLLoader_1_0, 5966 &Pnacl_WrapperInfo_PPB_URLLoader_1_0,
5944 &Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0, 5967 &Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0,
5945 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0, 5968 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0,
5946 &Pnacl_WrapperInfo_PPB_Var_1_0, 5969 &Pnacl_WrapperInfo_PPB_Var_1_0,
5947 &Pnacl_WrapperInfo_PPB_Var_1_1, 5970 &Pnacl_WrapperInfo_PPB_Var_1_1,
5971 &Pnacl_WrapperInfo_PPB_Var_1_2,
5948 &Pnacl_WrapperInfo_PPB_VarArray_1_0, 5972 &Pnacl_WrapperInfo_PPB_VarArray_1_0,
5949 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0, 5973 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0,
5950 &Pnacl_WrapperInfo_PPB_VarDictionary_1_0, 5974 &Pnacl_WrapperInfo_PPB_VarDictionary_1_0,
5951 &Pnacl_WrapperInfo_PPB_WebSocket_1_0, 5975 &Pnacl_WrapperInfo_PPB_WebSocket_1_0,
5952 &Pnacl_WrapperInfo_PPB_Alarms_Dev_0_1, 5976 &Pnacl_WrapperInfo_PPB_Alarms_Dev_0_1,
5953 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3, 5977 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3,
5954 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4, 5978 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4,
5955 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1, 5979 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1,
5956 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5, 5980 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5,
5957 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6, 5981 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6,
5958 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6, 5982 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6,
5959 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1, 5983 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1,
5960 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2, 5984 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2,
5961 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7, 5985 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7,
5962 &Pnacl_WrapperInfo_PPB_TrueTypeFont_Dev_0_1, 5986 &Pnacl_WrapperInfo_PPB_TrueTypeFont_Dev_0_1,
5963 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6, 5987 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6,
5964 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7, 5988 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7,
5965 &Pnacl_WrapperInfo_PPB_VarResource_Dev_0_1,
5966 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3, 5989 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3,
5967 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16, 5990 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16,
5968 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_10, 5991 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_10,
5969 &Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private_0_1, 5992 &Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private_0_1,
5970 &Pnacl_WrapperInfo_PPB_FileIO_Private_0_1, 5993 &Pnacl_WrapperInfo_PPB_FileIO_Private_0_1,
5971 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1, 5994 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1,
5972 &Pnacl_WrapperInfo_PPB_Flash_12_4, 5995 &Pnacl_WrapperInfo_PPB_Flash_12_4,
5973 &Pnacl_WrapperInfo_PPB_Flash_12_5, 5996 &Pnacl_WrapperInfo_PPB_Flash_12_5,
5974 &Pnacl_WrapperInfo_PPB_Flash_12_6, 5997 &Pnacl_WrapperInfo_PPB_Flash_12_6,
5975 &Pnacl_WrapperInfo_PPB_Flash_13_0, 5998 &Pnacl_WrapperInfo_PPB_Flash_13_0,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
6086 if (NULL == iface) return NULL; 6109 if (NULL == iface) return NULL;
6087 wrapper->real_iface = iface; 6110 wrapper->real_iface = iface;
6088 } 6111 }
6089 6112
6090 if (wrapper->wrapped_iface) { 6113 if (wrapper->wrapped_iface) {
6091 return wrapper->wrapped_iface; 6114 return wrapper->wrapped_iface;
6092 } else { 6115 } else {
6093 return wrapper->real_iface; 6116 return wrapper->real_iface;
6094 } 6117 }
6095 } 6118 }
OLDNEW
« no previous file with comments | « ppapi/examples/media_stream_video/media_stream_video.cc ('k') | ppapi/ppapi_shared.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698