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

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: 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #include "ppapi/c/ppb_tcp_socket.h" 70 #include "ppapi/c/ppb_tcp_socket.h"
72 #include "ppapi/c/ppb_text_input_controller.h" 71 #include "ppapi/c/ppb_text_input_controller.h"
73 #include "ppapi/c/ppb_udp_socket.h" 72 #include "ppapi/c/ppb_udp_socket.h"
74 #include "ppapi/c/ppb_url_loader.h" 73 #include "ppapi/c/ppb_url_loader.h"
75 #include "ppapi/c/ppb_url_request_info.h" 74 #include "ppapi/c/ppb_url_request_info.h"
76 #include "ppapi/c/ppb_url_response_info.h" 75 #include "ppapi/c/ppb_url_response_info.h"
77 #include "ppapi/c/ppb_var.h" 76 #include "ppapi/c/ppb_var.h"
78 #include "ppapi/c/ppb_var_array.h" 77 #include "ppapi/c/ppb_var_array.h"
79 #include "ppapi/c/ppb_var_array_buffer.h" 78 #include "ppapi/c/ppb_var_array_buffer.h"
80 #include "ppapi/c/ppb_var_dictionary.h" 79 #include "ppapi/c/ppb_var_dictionary.h"
80 #include "ppapi/c/ppb_var_resource.h"
81 #include "ppapi/c/ppb_video_frame.h" 81 #include "ppapi/c/ppb_video_frame.h"
82 #include "ppapi/c/ppb_view.h" 82 #include "ppapi/c/ppb_view.h"
83 #include "ppapi/c/ppb_websocket.h" 83 #include "ppapi/c/ppb_websocket.h"
84 #include "ppapi/c/ppp_graphics_3d.h" 84 #include "ppapi/c/ppp_graphics_3d.h"
85 #include "ppapi/c/ppp_input_event.h" 85 #include "ppapi/c/ppp_input_event.h"
86 #include "ppapi/c/ppp_instance.h" 86 #include "ppapi/c/ppp_instance.h"
87 #include "ppapi/c/ppp_messaging.h" 87 #include "ppapi/c/ppp_messaging.h"
88 #include "ppapi/c/ppp_mouse_lock.h" 88 #include "ppapi/c/ppp_mouse_lock.h"
89 #include "ppapi/c/private/ppb_content_decryptor_private.h" 89 #include "ppapi/c/private/ppb_content_decryptor_private.h"
90 #include "ppapi/c/private/ppb_ext_crx_file_system_private.h" 90 #include "ppapi/c/private/ppb_ext_crx_file_system_private.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInputController_1_0; 172 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInputController_1_0;
173 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_1_0; 173 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_1_0;
174 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0; 174 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0;
175 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0; 175 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0;
176 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0; 176 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0;
177 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_0; 177 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_0;
178 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1; 178 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1;
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_VarResource_1_0;
182 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0; 183 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0;
183 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0; 184 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0;
184 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Alarms_Dev_0_1; 185 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Alarms_Dev_0_1;
185 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3; 186 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3;
186 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4; 187 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4;
187 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1; 188 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1;
188 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5; 189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5;
189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6; 190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6;
190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6; 191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6;
191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1; 192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1;
192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2; 193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2;
193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7; 194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7;
194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TrueTypeFont_Dev_0_1; 195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TrueTypeFont_Dev_0_1;
195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6; 196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6;
196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7; 197 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; 198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3;
199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16; 199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16;
200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Selection_Dev_0_3; 200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Selection_Dev_0_3;
201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_ 0_10; 201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_ 0_10;
202 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private _0_1; 202 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private _0_1;
203 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_Private_0_1; 203 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_Private_0_1;
204 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1; 204 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1;
205 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_4; 205 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_4;
206 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_5; 206 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_5;
207 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_6; 207 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_6;
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after
1707 return iface->HasKey(*dict, *key); 1707 return iface->HasKey(*dict, *key);
1708 } 1708 }
1709 1709
1710 static void Pnacl_M29_PPB_VarDictionary_GetKeys(struct PP_Var* _struct_result, s truct PP_Var* dict) { 1710 static void Pnacl_M29_PPB_VarDictionary_GetKeys(struct PP_Var* _struct_result, s truct PP_Var* dict) {
1711 const struct PPB_VarDictionary_1_0 *iface = Pnacl_WrapperInfo_PPB_VarDictionar y_1_0.real_iface; 1711 const struct PPB_VarDictionary_1_0 *iface = Pnacl_WrapperInfo_PPB_VarDictionar y_1_0.real_iface;
1712 *_struct_result = iface->GetKeys(*dict); 1712 *_struct_result = iface->GetKeys(*dict);
1713 } 1713 }
1714 1714
1715 /* End wrapper methods for PPB_VarDictionary_1_0 */ 1715 /* End wrapper methods for PPB_VarDictionary_1_0 */
1716 1716
1717 /* Begin wrapper methods for PPB_VarResource_1_0 */
1718
1719 static PP_Resource Pnacl_M34_PPB_VarResource_VarToResource(struct PP_Var* var) {
1720 const struct PPB_VarResource_1_0 *iface = Pnacl_WrapperInfo_PPB_VarResource_1_ 0.real_iface;
1721 return iface->VarToResource(*var);
1722 }
1723
1724 static void Pnacl_M34_PPB_VarResource_VarFromResource(struct PP_Var* _struct_res ult, PP_Resource resource) {
1725 const struct PPB_VarResource_1_0 *iface = Pnacl_WrapperInfo_PPB_VarResource_1_ 0.real_iface;
1726 *_struct_result = iface->VarFromResource(resource);
1727 }
1728
1729 /* End wrapper methods for PPB_VarResource_1_0 */
1730
1717 /* Not generating wrapper methods for PPB_VideoFrame_0_1 */ 1731 /* Not generating wrapper methods for PPB_VideoFrame_0_1 */
1718 1732
1719 /* Not generating wrapper methods for PPB_View_1_0 */ 1733 /* Not generating wrapper methods for PPB_View_1_0 */
1720 1734
1721 /* Not generating wrapper methods for PPB_View_1_1 */ 1735 /* Not generating wrapper methods for PPB_View_1_1 */
1722 1736
1723 /* Begin wrapper methods for PPB_WebSocket_1_0 */ 1737 /* Begin wrapper methods for PPB_WebSocket_1_0 */
1724 1738
1725 static PP_Resource Pnacl_M18_PPB_WebSocket_Create(PP_Instance instance) { 1739 static PP_Resource Pnacl_M18_PPB_WebSocket_Create(PP_Instance instance) {
1726 const struct PPB_WebSocket_1_0 *iface = Pnacl_WrapperInfo_PPB_WebSocket_1_0.re al_iface; 1740 const struct PPB_WebSocket_1_0 *iface = Pnacl_WrapperInfo_PPB_WebSocket_1_0.re al_iface;
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
2303 *_struct_result = iface->GetPluginInstanceURL(instance, components); 2317 *_struct_result = iface->GetPluginInstanceURL(instance, components);
2304 } 2318 }
2305 2319
2306 static void Pnacl_M31_PPB_URLUtil_Dev_GetPluginReferrerURL(struct PP_Var* _struc t_result, PP_Instance instance, struct PP_URLComponents_Dev* components) { 2320 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; 2321 const struct PPB_URLUtil_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 7.real_iface;
2308 *_struct_result = iface->GetPluginReferrerURL(instance, components); 2322 *_struct_result = iface->GetPluginReferrerURL(instance, components);
2309 } 2323 }
2310 2324
2311 /* End wrapper methods for PPB_URLUtil_Dev_0_7 */ 2325 /* End wrapper methods for PPB_URLUtil_Dev_0_7 */
2312 2326
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 */ 2327 /* Begin wrapper methods for PPB_VideoCapture_Dev_0_3 */
2328 2328
2329 static PP_Resource Pnacl_M25_PPB_VideoCapture_Dev_Create(PP_Instance instance) { 2329 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; 2330 const struct PPB_VideoCapture_Dev_0_3 *iface = Pnacl_WrapperInfo_PPB_VideoCapt ure_Dev_0_3.real_iface;
2331 return iface->Create(instance); 2331 return iface->Create(instance);
2332 } 2332 }
2333 2333
2334 static PP_Bool Pnacl_M25_PPB_VideoCapture_Dev_IsVideoCapture(PP_Resource video_c apture) { 2334 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; 2335 const struct PPB_VideoCapture_Dev_0_3 *iface = Pnacl_WrapperInfo_PPB_VideoCapt ure_Dev_0_3.real_iface;
2336 return iface->IsVideoCapture(video_capture); 2336 return iface->IsVideoCapture(video_capture);
(...skipping 2236 matching lines...) Expand 10 before | Expand all | Expand 10 after
4573 4573
4574 static struct PPB_VarDictionary_1_0 Pnacl_Wrappers_PPB_VarDictionary_1_0 = { 4574 static struct PPB_VarDictionary_1_0 Pnacl_Wrappers_PPB_VarDictionary_1_0 = {
4575 .Create = (struct PP_Var (*)(void))&Pnacl_M29_PPB_VarDictionary_Create, 4575 .Create = (struct PP_Var (*)(void))&Pnacl_M29_PPB_VarDictionary_Create,
4576 .Get = (struct PP_Var (*)(struct PP_Var dict, struct PP_Var key))&Pnacl_M29_ PPB_VarDictionary_Get, 4576 .Get = (struct PP_Var (*)(struct PP_Var dict, struct PP_Var key))&Pnacl_M29_ PPB_VarDictionary_Get,
4577 .Set = (PP_Bool (*)(struct PP_Var dict, struct PP_Var key, struct PP_Var val ue))&Pnacl_M29_PPB_VarDictionary_Set, 4577 .Set = (PP_Bool (*)(struct PP_Var dict, struct PP_Var key, struct PP_Var val ue))&Pnacl_M29_PPB_VarDictionary_Set,
4578 .Delete = (void (*)(struct PP_Var dict, struct PP_Var key))&Pnacl_M29_PPB_Va rDictionary_Delete, 4578 .Delete = (void (*)(struct PP_Var dict, struct PP_Var key))&Pnacl_M29_PPB_Va rDictionary_Delete,
4579 .HasKey = (PP_Bool (*)(struct PP_Var dict, struct PP_Var key))&Pnacl_M29_PPB _VarDictionary_HasKey, 4579 .HasKey = (PP_Bool (*)(struct PP_Var dict, struct PP_Var key))&Pnacl_M29_PPB _VarDictionary_HasKey,
4580 .GetKeys = (struct PP_Var (*)(struct PP_Var dict))&Pnacl_M29_PPB_VarDictiona ry_GetKeys 4580 .GetKeys = (struct PP_Var (*)(struct PP_Var dict))&Pnacl_M29_PPB_VarDictiona ry_GetKeys
4581 }; 4581 };
4582 4582
4583 static struct PPB_VarResource_1_0 Pnacl_Wrappers_PPB_VarResource_1_0 = {
4584 .VarToResource = (PP_Resource (*)(struct PP_Var var))&Pnacl_M34_PPB_VarResou rce_VarToResource,
4585 .VarFromResource = (struct PP_Var (*)(PP_Resource resource))&Pnacl_M34_PPB_V arResource_VarFromResource
4586 };
4587
4583 /* Not generating wrapper interface for PPB_VideoFrame_0_1 */ 4588 /* Not generating wrapper interface for PPB_VideoFrame_0_1 */
4584 4589
4585 /* Not generating wrapper interface for PPB_View_1_0 */ 4590 /* Not generating wrapper interface for PPB_View_1_0 */
4586 4591
4587 /* Not generating wrapper interface for PPB_View_1_1 */ 4592 /* Not generating wrapper interface for PPB_View_1_1 */
4588 4593
4589 static struct PPB_WebSocket_1_0 Pnacl_Wrappers_PPB_WebSocket_1_0 = { 4594 static struct PPB_WebSocket_1_0 Pnacl_Wrappers_PPB_WebSocket_1_0 = {
4590 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M18_PPB_WebSocket_Cr eate, 4595 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M18_PPB_WebSocket_Cr eate,
4591 .IsWebSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M18_PPB_WebSocket_I sWebSocket, 4596 .IsWebSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M18_PPB_WebSocket_I sWebSocket,
4592 .Connect = (int32_t (*)(PP_Resource web_socket, struct PP_Var url, const str uct PP_Var protocols[], uint32_t protocol_count, struct PP_CompletionCallback ca llback))&Pnacl_M18_PPB_WebSocket_Connect, 4597 .Connect = (int32_t (*)(PP_Resource web_socket, struct PP_Var url, const str uct PP_Var protocols[], uint32_t protocol_count, struct PP_CompletionCallback ca llback))&Pnacl_M18_PPB_WebSocket_Connect,
(...skipping 175 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, 4773 .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, 4774 .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, 4775 .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, 4776 .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, 4777 .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, 4778 .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, 4779 .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 4780 .GetPluginReferrerURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M31_PPB_URLUtil_Dev_GetPluginReferrerURL
4776 }; 4781 };
4777 4782
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 = { 4783 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, 4784 .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, 4785 .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, 4786 .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, 4787 .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, 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,
4789 .StartCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M25_PPB_Video Capture_Dev_StartCapture, 4789 .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, 4790 .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, 4791 .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 4792 .Close = (void (*)(PP_Resource video_capture))&Pnacl_M25_PPB_VideoCapture_De v_Close
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
5519 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VarArrayBuffer_1_0, 5519 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VarArrayBuffer_1_0,
5520 .real_iface = NULL 5520 .real_iface = NULL
5521 }; 5521 };
5522 5522
5523 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarDictionary_1_0 = { 5523 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarDictionary_1_0 = {
5524 .iface_macro = PPB_VAR_DICTIONARY_INTERFACE_1_0, 5524 .iface_macro = PPB_VAR_DICTIONARY_INTERFACE_1_0,
5525 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VarDictionary_1_0, 5525 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VarDictionary_1_0,
5526 .real_iface = NULL 5526 .real_iface = NULL
5527 }; 5527 };
5528 5528
5529 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarResource_1_0 = {
5530 .iface_macro = PPB_VAR_RESOURCE_INTERFACE_1_0,
5531 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VarResource_1_0,
5532 .real_iface = NULL
5533 };
5534
5529 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0 = { 5535 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0 = {
5530 .iface_macro = PPB_WEBSOCKET_INTERFACE_1_0, 5536 .iface_macro = PPB_WEBSOCKET_INTERFACE_1_0,
5531 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_WebSocket_1_0, 5537 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_WebSocket_1_0,
5532 .real_iface = NULL 5538 .real_iface = NULL
5533 }; 5539 };
5534 5540
5535 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0 = { 5541 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0 = {
5536 .iface_macro = PPP_MESSAGING_INTERFACE_1_0, 5542 .iface_macro = PPP_MESSAGING_INTERFACE_1_0,
5537 .wrapped_iface = (void *) &Pnacl_Wrappers_PPP_Messaging_1_0, 5543 .wrapped_iface = (void *) &Pnacl_Wrappers_PPP_Messaging_1_0,
5538 .real_iface = NULL 5544 .real_iface = NULL
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
5609 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_6, 5615 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_6,
5610 .real_iface = NULL 5616 .real_iface = NULL
5611 }; 5617 };
5612 5618
5613 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7 = { 5619 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7 = {
5614 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_7, 5620 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_7,
5615 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_7, 5621 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_7,
5616 .real_iface = NULL 5622 .real_iface = NULL
5617 }; 5623 };
5618 5624
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 = { 5625 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3 = {
5626 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_3, 5626 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_3,
5627 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_3, 5627 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_3,
5628 .real_iface = NULL 5628 .real_iface = NULL
5629 }; 5629 };
5630 5630
5631 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16 = { 5631 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16 = {
5632 .iface_macro = PPB_VIDEODECODER_DEV_INTERFACE_0_16, 5632 .iface_macro = PPB_VIDEODECODER_DEV_INTERFACE_0_16,
5633 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoDecoder_Dev_0_16, 5633 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoDecoder_Dev_0_16,
5634 .real_iface = NULL 5634 .real_iface = NULL
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
5933 &Pnacl_WrapperInfo_PPB_TextInputController_1_0, 5933 &Pnacl_WrapperInfo_PPB_TextInputController_1_0,
5934 &Pnacl_WrapperInfo_PPB_UDPSocket_1_0, 5934 &Pnacl_WrapperInfo_PPB_UDPSocket_1_0,
5935 &Pnacl_WrapperInfo_PPB_URLLoader_1_0, 5935 &Pnacl_WrapperInfo_PPB_URLLoader_1_0,
5936 &Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0, 5936 &Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0,
5937 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0, 5937 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0,
5938 &Pnacl_WrapperInfo_PPB_Var_1_0, 5938 &Pnacl_WrapperInfo_PPB_Var_1_0,
5939 &Pnacl_WrapperInfo_PPB_Var_1_1, 5939 &Pnacl_WrapperInfo_PPB_Var_1_1,
5940 &Pnacl_WrapperInfo_PPB_VarArray_1_0, 5940 &Pnacl_WrapperInfo_PPB_VarArray_1_0,
5941 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0, 5941 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0,
5942 &Pnacl_WrapperInfo_PPB_VarDictionary_1_0, 5942 &Pnacl_WrapperInfo_PPB_VarDictionary_1_0,
5943 &Pnacl_WrapperInfo_PPB_VarResource_1_0,
5943 &Pnacl_WrapperInfo_PPB_WebSocket_1_0, 5944 &Pnacl_WrapperInfo_PPB_WebSocket_1_0,
5944 &Pnacl_WrapperInfo_PPB_Alarms_Dev_0_1, 5945 &Pnacl_WrapperInfo_PPB_Alarms_Dev_0_1,
5945 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3, 5946 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_3,
5946 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4, 5947 &Pnacl_WrapperInfo_PPB_AudioInput_Dev_0_4,
5947 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1, 5948 &Pnacl_WrapperInfo_PPB_DeviceRef_Dev_0_1,
5948 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5, 5949 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_5,
5949 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6, 5950 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6,
5950 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6, 5951 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6,
5951 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1, 5952 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1,
5952 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2, 5953 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2,
5953 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7, 5954 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7,
5954 &Pnacl_WrapperInfo_PPB_TrueTypeFont_Dev_0_1, 5955 &Pnacl_WrapperInfo_PPB_TrueTypeFont_Dev_0_1,
5955 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6, 5956 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6,
5956 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7, 5957 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7,
5957 &Pnacl_WrapperInfo_PPB_VarResource_Dev_0_1,
5958 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3, 5958 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3,
5959 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16, 5959 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16,
5960 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_10, 5960 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_10,
5961 &Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private_0_1, 5961 &Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private_0_1,
5962 &Pnacl_WrapperInfo_PPB_FileIO_Private_0_1, 5962 &Pnacl_WrapperInfo_PPB_FileIO_Private_0_1,
5963 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1, 5963 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1,
5964 &Pnacl_WrapperInfo_PPB_Flash_12_4, 5964 &Pnacl_WrapperInfo_PPB_Flash_12_4,
5965 &Pnacl_WrapperInfo_PPB_Flash_12_5, 5965 &Pnacl_WrapperInfo_PPB_Flash_12_5,
5966 &Pnacl_WrapperInfo_PPB_Flash_12_6, 5966 &Pnacl_WrapperInfo_PPB_Flash_12_6,
5967 &Pnacl_WrapperInfo_PPB_Flash_13_0, 5967 &Pnacl_WrapperInfo_PPB_Flash_13_0,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
6078 if (NULL == iface) return NULL; 6078 if (NULL == iface) return NULL;
6079 wrapper->real_iface = iface; 6079 wrapper->real_iface = iface;
6080 } 6080 }
6081 6081
6082 if (wrapper->wrapped_iface) { 6082 if (wrapper->wrapped_iface) {
6083 return wrapper->wrapped_iface; 6083 return wrapper->wrapped_iface;
6084 } else { 6084 } else {
6085 return wrapper->real_iface; 6085 return wrapper->real_iface;
6086 } 6086 }
6087 } 6087 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698