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

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: Update histograms.xml. 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
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 2212 matching lines...) Expand 10 before | Expand all | Expand 10 after
4549 .VarToUtf8 = (const char* (*)(struct PP_Var var, uint32_t* len))&Pnacl_M14_P PB_Var_VarToUtf8 4568 .VarToUtf8 = (const char* (*)(struct PP_Var var, uint32_t* len))&Pnacl_M14_P PB_Var_VarToUtf8
4550 }; 4569 };
4551 4570
4552 static struct PPB_Var_1_1 Pnacl_Wrappers_PPB_Var_1_1 = { 4571 static struct PPB_Var_1_1 Pnacl_Wrappers_PPB_Var_1_1 = {
4553 .AddRef = (void (*)(struct PP_Var var))&Pnacl_M18_PPB_Var_AddRef, 4572 .AddRef = (void (*)(struct PP_Var var))&Pnacl_M18_PPB_Var_AddRef,
4554 .Release = (void (*)(struct PP_Var var))&Pnacl_M18_PPB_Var_Release, 4573 .Release = (void (*)(struct PP_Var var))&Pnacl_M18_PPB_Var_Release,
4555 .VarFromUtf8 = (struct PP_Var (*)(const char* data, uint32_t len))&Pnacl_M18 _PPB_Var_VarFromUtf8, 4574 .VarFromUtf8 = (struct PP_Var (*)(const char* data, uint32_t len))&Pnacl_M18 _PPB_Var_VarFromUtf8,
4556 .VarToUtf8 = (const char* (*)(struct PP_Var var, uint32_t* len))&Pnacl_M18_P PB_Var_VarToUtf8 4575 .VarToUtf8 = (const char* (*)(struct PP_Var var, uint32_t* len))&Pnacl_M18_P PB_Var_VarToUtf8
4557 }; 4576 };
4558 4577
4578 static struct PPB_Var_1_2 Pnacl_Wrappers_PPB_Var_1_2 = {
4579 .AddRef = (void (*)(struct PP_Var var))&Pnacl_M34_PPB_Var_AddRef,
4580 .Release = (void (*)(struct PP_Var var))&Pnacl_M34_PPB_Var_Release,
4581 .VarFromUtf8 = (struct PP_Var (*)(const char* data, uint32_t len))&Pnacl_M34 _PPB_Var_VarFromUtf8,
4582 .VarToUtf8 = (const char* (*)(struct PP_Var var, uint32_t* len))&Pnacl_M34_P PB_Var_VarToUtf8,
4583 .VarToResource = (PP_Resource (*)(struct PP_Var var))&Pnacl_M34_PPB_Var_VarT oResource,
4584 .VarFromResource = (struct PP_Var (*)(PP_Resource resource))&Pnacl_M34_PPB_V ar_VarFromResource
4585 };
4586
4559 static struct PPB_VarArray_1_0 Pnacl_Wrappers_PPB_VarArray_1_0 = { 4587 static struct PPB_VarArray_1_0 Pnacl_Wrappers_PPB_VarArray_1_0 = {
4560 .Create = (struct PP_Var (*)(void))&Pnacl_M29_PPB_VarArray_Create, 4588 .Create = (struct PP_Var (*)(void))&Pnacl_M29_PPB_VarArray_Create,
4561 .Get = (struct PP_Var (*)(struct PP_Var array, uint32_t index))&Pnacl_M29_PP B_VarArray_Get, 4589 .Get = (struct PP_Var (*)(struct PP_Var array, uint32_t index))&Pnacl_M29_PP B_VarArray_Get,
4562 .Set = (PP_Bool (*)(struct PP_Var array, uint32_t index, struct PP_Var value ))&Pnacl_M29_PPB_VarArray_Set, 4590 .Set = (PP_Bool (*)(struct PP_Var array, uint32_t index, struct PP_Var value ))&Pnacl_M29_PPB_VarArray_Set,
4563 .GetLength = (uint32_t (*)(struct PP_Var array))&Pnacl_M29_PPB_VarArray_GetL ength, 4591 .GetLength = (uint32_t (*)(struct PP_Var array))&Pnacl_M29_PPB_VarArray_GetL ength,
4564 .SetLength = (PP_Bool (*)(struct PP_Var array, uint32_t length))&Pnacl_M29_P PB_VarArray_SetLength 4592 .SetLength = (PP_Bool (*)(struct PP_Var array, uint32_t length))&Pnacl_M29_P PB_VarArray_SetLength
4565 }; 4593 };
4566 4594
4567 static struct PPB_VarArrayBuffer_1_0 Pnacl_Wrappers_PPB_VarArrayBuffer_1_0 = { 4595 static struct PPB_VarArrayBuffer_1_0 Pnacl_Wrappers_PPB_VarArrayBuffer_1_0 = {
4568 .Create = (struct PP_Var (*)(uint32_t size_in_bytes))&Pnacl_M18_PPB_VarArray Buffer_Create, 4596 .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
4768 .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, 4796 .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,
4769 .ResolveRelativeToDocument = (struct PP_Var (*)(PP_Instance instance, struct PP_Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M31_PPB _URLUtil_Dev_ResolveRelativeToDocument, 4797 .ResolveRelativeToDocument = (struct PP_Var (*)(PP_Instance instance, struct PP_Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M31_PPB _URLUtil_Dev_ResolveRelativeToDocument,
4770 .IsSameSecurityOrigin = (PP_Bool (*)(struct PP_Var url_a, struct PP_Var url_ b))&Pnacl_M31_PPB_URLUtil_Dev_IsSameSecurityOrigin, 4798 .IsSameSecurityOrigin = (PP_Bool (*)(struct PP_Var url_a, struct PP_Var url_ b))&Pnacl_M31_PPB_URLUtil_Dev_IsSameSecurityOrigin,
4771 .DocumentCanRequest = (PP_Bool (*)(PP_Instance instance, struct PP_Var url)) &Pnacl_M31_PPB_URLUtil_Dev_DocumentCanRequest, 4799 .DocumentCanRequest = (PP_Bool (*)(PP_Instance instance, struct PP_Var url)) &Pnacl_M31_PPB_URLUtil_Dev_DocumentCanRequest,
4772 .DocumentCanAccessDocument = (PP_Bool (*)(PP_Instance active, PP_Instance ta rget))&Pnacl_M31_PPB_URLUtil_Dev_DocumentCanAccessDocument, 4800 .DocumentCanAccessDocument = (PP_Bool (*)(PP_Instance active, PP_Instance ta rget))&Pnacl_M31_PPB_URLUtil_Dev_DocumentCanAccessDocument,
4773 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M31_PPB_URLUtil_Dev_GetDocumentURL, 4801 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M31_PPB_URLUtil_Dev_GetDocumentURL,
4774 .GetPluginInstanceURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M31_PPB_URLUtil_Dev_GetPluginInstanceURL, 4802 .GetPluginInstanceURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M31_PPB_URLUtil_Dev_GetPluginInstanceURL,
4775 .GetPluginReferrerURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M31_PPB_URLUtil_Dev_GetPluginReferrerURL 4803 .GetPluginReferrerURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M31_PPB_URLUtil_Dev_GetPluginReferrerURL
4776 }; 4804 };
4777 4805
4778 static struct PPB_VarResource_Dev_0_1 Pnacl_Wrappers_PPB_VarResource_Dev_0_1 = {
4779 .VarToResource = (PP_Resource (*)(struct PP_Var var))&Pnacl_M32_PPB_VarResou rce_Dev_VarToResource,
4780 .VarFromResource = (struct PP_Var (*)(PP_Resource resource))&Pnacl_M32_PPB_V arResource_Dev_VarFromResource
4781 };
4782
4783 static struct PPB_VideoCapture_Dev_0_3 Pnacl_Wrappers_PPB_VideoCapture_Dev_0_3 = { 4806 static struct PPB_VideoCapture_Dev_0_3 Pnacl_Wrappers_PPB_VideoCapture_Dev_0_3 = {
4784 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M25_PPB_VideoCapture _Dev_Create, 4807 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M25_PPB_VideoCapture _Dev_Create,
4785 .IsVideoCapture = (PP_Bool (*)(PP_Resource video_capture))&Pnacl_M25_PPB_Vid eoCapture_Dev_IsVideoCapture, 4808 .IsVideoCapture = (PP_Bool (*)(PP_Resource video_capture))&Pnacl_M25_PPB_Vid eoCapture_Dev_IsVideoCapture,
4786 .EnumerateDevices = (int32_t (*)(PP_Resource video_capture, struct PP_ArrayO utput output, struct PP_CompletionCallback callback))&Pnacl_M25_PPB_VideoCapture _Dev_EnumerateDevices, 4809 .EnumerateDevices = (int32_t (*)(PP_Resource video_capture, struct PP_ArrayO utput output, struct PP_CompletionCallback callback))&Pnacl_M25_PPB_VideoCapture _Dev_EnumerateDevices,
4787 .MonitorDeviceChange = (int32_t (*)(PP_Resource video_capture, PP_MonitorDev iceChangeCallback callback, void* user_data))&Pnacl_M25_PPB_VideoCapture_Dev_Mon itorDeviceChange, 4810 .MonitorDeviceChange = (int32_t (*)(PP_Resource video_capture, PP_MonitorDev iceChangeCallback callback, void* user_data))&Pnacl_M25_PPB_VideoCapture_Dev_Mon itorDeviceChange,
4788 .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, 4811 .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,
4789 .StartCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M25_PPB_Video Capture_Dev_StartCapture, 4812 .StartCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M25_PPB_Video Capture_Dev_StartCapture,
4790 .ReuseBuffer = (int32_t (*)(PP_Resource video_capture, uint32_t buffer))&Pna cl_M25_PPB_VideoCapture_Dev_ReuseBuffer, 4813 .ReuseBuffer = (int32_t (*)(PP_Resource video_capture, uint32_t buffer))&Pna cl_M25_PPB_VideoCapture_Dev_ReuseBuffer,
4791 .StopCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M25_PPB_VideoC apture_Dev_StopCapture, 4814 .StopCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M25_PPB_VideoC apture_Dev_StopCapture,
4792 .Close = (void (*)(PP_Resource video_capture))&Pnacl_M25_PPB_VideoCapture_De v_Close 4815 .Close = (void (*)(PP_Resource video_capture))&Pnacl_M25_PPB_VideoCapture_De v_Close
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
5501 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Var_1_0, 5524 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Var_1_0,
5502 .real_iface = NULL 5525 .real_iface = NULL
5503 }; 5526 };
5504 5527
5505 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1 = { 5528 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1 = {
5506 .iface_macro = PPB_VAR_INTERFACE_1_1, 5529 .iface_macro = PPB_VAR_INTERFACE_1_1,
5507 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Var_1_1, 5530 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Var_1_1,
5508 .real_iface = NULL 5531 .real_iface = NULL
5509 }; 5532 };
5510 5533
5534 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_2 = {
5535 .iface_macro = PPB_VAR_INTERFACE_1_2,
5536 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Var_1_2,
5537 .real_iface = NULL
5538 };
5539
5511 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArray_1_0 = { 5540 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArray_1_0 = {
5512 .iface_macro = PPB_VAR_ARRAY_INTERFACE_1_0, 5541 .iface_macro = PPB_VAR_ARRAY_INTERFACE_1_0,
5513 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VarArray_1_0, 5542 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VarArray_1_0,
5514 .real_iface = NULL 5543 .real_iface = NULL
5515 }; 5544 };
5516 5545
5517 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0 = { 5546 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0 = {
5518 .iface_macro = PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0, 5547 .iface_macro = PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0,
5519 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VarArrayBuffer_1_0, 5548 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VarArrayBuffer_1_0,
5520 .real_iface = NULL 5549 .real_iface = NULL
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
5609 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_6, 5638 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_6,
5610 .real_iface = NULL 5639 .real_iface = NULL
5611 }; 5640 };
5612 5641
5613 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7 = { 5642 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7 = {
5614 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_7, 5643 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_7,
5615 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_7, 5644 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_7,
5616 .real_iface = NULL 5645 .real_iface = NULL
5617 }; 5646 };
5618 5647
5619 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarResource_Dev_0_1 = {
5620 .iface_macro = PPB_VAR_RESOURCE_DEV_INTERFACE_0_1,
5621 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VarResource_Dev_0_1,
5622 .real_iface = NULL
5623 };
5624
5625 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3 = { 5648 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3 = {
5626 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_3, 5649 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_3,
5627 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_3, 5650 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_3,
5628 .real_iface = NULL 5651 .real_iface = NULL
5629 }; 5652 };
5630 5653
5631 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16 = { 5654 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16 = {
5632 .iface_macro = PPB_VIDEODECODER_DEV_INTERFACE_0_16, 5655 .iface_macro = PPB_VIDEODECODER_DEV_INTERFACE_0_16,
5633 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoDecoder_Dev_0_16, 5656 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoDecoder_Dev_0_16,
5634 .real_iface = NULL 5657 .real_iface = NULL
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
5930 &Pnacl_WrapperInfo_PPB_NetworkProxy_1_0, 5953 &Pnacl_WrapperInfo_PPB_NetworkProxy_1_0,
5931 &Pnacl_WrapperInfo_PPB_TCPSocket_1_0, 5954 &Pnacl_WrapperInfo_PPB_TCPSocket_1_0,
5932 &Pnacl_WrapperInfo_PPB_TCPSocket_1_1, 5955 &Pnacl_WrapperInfo_PPB_TCPSocket_1_1,
5933 &Pnacl_WrapperInfo_PPB_TextInputController_1_0, 5956 &Pnacl_WrapperInfo_PPB_TextInputController_1_0,
5934 &Pnacl_WrapperInfo_PPB_UDPSocket_1_0, 5957 &Pnacl_WrapperInfo_PPB_UDPSocket_1_0,
5935 &Pnacl_WrapperInfo_PPB_URLLoader_1_0, 5958 &Pnacl_WrapperInfo_PPB_URLLoader_1_0,
5936 &Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0, 5959 &Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0,
5937 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0, 5960 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0,
5938 &Pnacl_WrapperInfo_PPB_Var_1_0, 5961 &Pnacl_WrapperInfo_PPB_Var_1_0,
5939 &Pnacl_WrapperInfo_PPB_Var_1_1, 5962 &Pnacl_WrapperInfo_PPB_Var_1_1,
5963 &Pnacl_WrapperInfo_PPB_Var_1_2,
5940 &Pnacl_WrapperInfo_PPB_VarArray_1_0, 5964 &Pnacl_WrapperInfo_PPB_VarArray_1_0,
5941 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0, 5965 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0,
5942 &Pnacl_WrapperInfo_PPB_VarDictionary_1_0, 5966 &Pnacl_WrapperInfo_PPB_VarDictionary_1_0,
5943 &Pnacl_WrapperInfo_PPB_WebSocket_1_0, 5967 &Pnacl_WrapperInfo_PPB_WebSocket_1_0,
5944 &Pnacl_WrapperInfo_PPB_Alarms_Dev_0_1, 5968 &Pnacl_WrapperInfo_PPB_Alarms_Dev_0_1,
5945 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3, 5969 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3,
5946 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4, 5970 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4,
5947 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1, 5971 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1,
5948 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5, 5972 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5,
5949 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6, 5973 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6,
5950 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6, 5974 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6,
5951 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1, 5975 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1,
5952 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2, 5976 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2,
5953 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7, 5977 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7,
5954 &Pnacl_WrapperInfo_PPB_TrueTypeFont_Dev_0_1, 5978 &Pnacl_WrapperInfo_PPB_TrueTypeFont_Dev_0_1,
5955 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6, 5979 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6,
5956 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7, 5980 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7,
5957 &Pnacl_WrapperInfo_PPB_VarResource_Dev_0_1,
5958 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3, 5981 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3,
5959 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16, 5982 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16,
5960 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_10, 5983 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_10,
5961 &Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private_0_1, 5984 &Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private_0_1,
5962 &Pnacl_WrapperInfo_PPB_FileIO_Private_0_1, 5985 &Pnacl_WrapperInfo_PPB_FileIO_Private_0_1,
5963 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1, 5986 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1,
5964 &Pnacl_WrapperInfo_PPB_Flash_12_4, 5987 &Pnacl_WrapperInfo_PPB_Flash_12_4,
5965 &Pnacl_WrapperInfo_PPB_Flash_12_5, 5988 &Pnacl_WrapperInfo_PPB_Flash_12_5,
5966 &Pnacl_WrapperInfo_PPB_Flash_12_6, 5989 &Pnacl_WrapperInfo_PPB_Flash_12_6,
5967 &Pnacl_WrapperInfo_PPB_Flash_13_0, 5990 &Pnacl_WrapperInfo_PPB_Flash_13_0,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
6078 if (NULL == iface) return NULL; 6101 if (NULL == iface) return NULL;
6079 wrapper->real_iface = iface; 6102 wrapper->real_iface = iface;
6080 } 6103 }
6081 6104
6082 if (wrapper->wrapped_iface) { 6105 if (wrapper->wrapped_iface) {
6083 return wrapper->wrapped_iface; 6106 return wrapper->wrapped_iface;
6084 } else { 6107 } else {
6085 return wrapper->real_iface; 6108 return wrapper->real_iface;
6086 } 6109 }
6087 } 6110 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698