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

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

Issue 12387073: Add PPB_VarDictionary_Dev support - part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use correct base branch. Created 7 years, 9 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) 2013 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2013 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_audio_input_dev.h" 10 #include "ppapi/c/dev/ppb_audio_input_dev.h"
11 #include "ppapi/c/dev/ppb_buffer_dev.h" 11 #include "ppapi/c/dev/ppb_buffer_dev.h"
12 #include "ppapi/c/dev/ppb_crypto_dev.h" 12 #include "ppapi/c/dev/ppb_crypto_dev.h"
13 #include "ppapi/c/dev/ppb_cursor_control_dev.h" 13 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
14 #include "ppapi/c/dev/ppb_device_ref_dev.h" 14 #include "ppapi/c/dev/ppb_device_ref_dev.h"
15 #include "ppapi/c/dev/ppb_directory_reader_dev.h" 15 #include "ppapi/c/dev/ppb_directory_reader_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_keyboard_input_event_dev.h" 21 #include "ppapi/c/dev/ppb_keyboard_input_event_dev.h"
22 #include "ppapi/c/dev/ppb_memory_dev.h" 22 #include "ppapi/c/dev/ppb_memory_dev.h"
23 #include "ppapi/c/dev/ppb_printing_dev.h" 23 #include "ppapi/c/dev/ppb_printing_dev.h"
24 #include "ppapi/c/dev/ppb_resource_array_dev.h" 24 #include "ppapi/c/dev/ppb_resource_array_dev.h"
25 #include "ppapi/c/dev/ppb_scrollbar_dev.h" 25 #include "ppapi/c/dev/ppb_scrollbar_dev.h"
26 #include "ppapi/c/dev/ppb_testing_dev.h" 26 #include "ppapi/c/dev/ppb_testing_dev.h"
27 #include "ppapi/c/dev/ppb_text_input_dev.h" 27 #include "ppapi/c/dev/ppb_text_input_dev.h"
28 #include "ppapi/c/dev/ppb_trace_event_dev.h" 28 #include "ppapi/c/dev/ppb_trace_event_dev.h"
29 #include "ppapi/c/dev/ppb_url_util_dev.h" 29 #include "ppapi/c/dev/ppb_url_util_dev.h"
30 #include "ppapi/c/dev/ppb_var_dictionary_dev.h"
30 #include "ppapi/c/dev/ppb_video_capture_dev.h" 31 #include "ppapi/c/dev/ppb_video_capture_dev.h"
31 #include "ppapi/c/dev/ppb_video_decoder_dev.h" 32 #include "ppapi/c/dev/ppb_video_decoder_dev.h"
32 #include "ppapi/c/dev/ppb_view_dev.h" 33 #include "ppapi/c/dev/ppb_view_dev.h"
33 #include "ppapi/c/dev/ppb_widget_dev.h" 34 #include "ppapi/c/dev/ppb_widget_dev.h"
34 #include "ppapi/c/dev/ppb_zoom_dev.h" 35 #include "ppapi/c/dev/ppb_zoom_dev.h"
35 #include "ppapi/c/dev/ppp_network_state_dev.h" 36 #include "ppapi/c/dev/ppp_network_state_dev.h"
36 #include "ppapi/c/dev/ppp_printing_dev.h" 37 #include "ppapi/c/dev/ppp_printing_dev.h"
37 #include "ppapi/c/dev/ppp_scrollbar_dev.h" 38 #include "ppapi/c/dev/ppp_scrollbar_dev.h"
38 #include "ppapi/c/dev/ppp_selection_dev.h" 39 #include "ppapi/c/dev/ppp_selection_dev.h"
39 #include "ppapi/c/dev/ppp_text_input_dev.h" 40 #include "ppapi/c/dev/ppp_text_input_dev.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 #include "ppapi/c/trusted/ppb_graphics_3d_trusted.h" 108 #include "ppapi/c/trusted/ppb_graphics_3d_trusted.h"
108 #include "ppapi/c/trusted/ppb_image_data_trusted.h" 109 #include "ppapi/c/trusted/ppb_image_data_trusted.h"
109 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" 110 #include "ppapi/c/trusted/ppb_url_loader_trusted.h"
110 111
111 112
112 /* The PNaCl PPAPI shims are only needed on x86-64 and arm. */ 113 /* The PNaCl PPAPI shims are only needed on x86-64 and arm. */
113 #if defined(__x86_64__) || defined(__arm__) 114 #if defined(__x86_64__) || defined(__arm__)
114 115
115 /* Use local strcmp to avoid dependency on libc. */ 116 /* Use local strcmp to avoid dependency on libc. */
116 static int mystrcmp(const char* s1, const char *s2) { 117 static int mystrcmp(const char* s1, const char *s2) {
117 while (1) { 118 while((*s1 && *s2) && (*s1++ == *s2++));
118 if (*s1 == 0) break; 119 return *(--s1) - *(--s2);
119 if (*s2 == 0) break;
120 if (*s1 != *s2) break;
121 ++s1;
122 ++s2;
123 }
124 return *(s1) - *(s2);
125 } 120 }
126 121
127 /* BEGIN Declarations for all Wrapper Infos */ 122 /* BEGIN Declarations for all Wrapper Infos */
128 123
129 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Audio_1_0; 124 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Audio_1_0;
130 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioConfig_1_0; 125 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioConfig_1_0;
131 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioConfig_1_1; 126 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioConfig_1_1;
132 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Console_1_0; 127 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Console_1_0;
133 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0; 128 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0;
134 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0; 129 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1; 193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1;
199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5; 194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5;
200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_7; 195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_7;
201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_8; 196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_8;
202 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_9; 197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_9;
203 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_91; 198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_91;
204 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1; 199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1;
205 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2; 200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2;
206 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Trace_Event_Dev_0_1; 201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Trace_Event_Dev_0_1;
207 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6; 202 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6;
203 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarDictionary_Dev_0_1;
208 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2; 204 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2;
209 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3; 205 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3;
210 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16; 206 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16;
211 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_Dev_0_1; 207 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_Dev_0_1;
212 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Widget_Dev_0_3; 208 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Widget_Dev_0_3;
213 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Widget_Dev_0_4; 209 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Widget_Dev_0_4;
214 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2; 210 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2;
215 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_NetworkState_Dev_0_1; 211 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_NetworkState_Dev_0_1;
216 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Printing_Dev_0_6; 212 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Printing_Dev_0_6;
217 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Scrollbar_Dev_0_2; 213 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Scrollbar_Dev_0_2;
(...skipping 1814 matching lines...) Expand 10 before | Expand all | Expand 10 after
2032 } 2028 }
2033 2029
2034 static __attribute__((pnaclcall)) 2030 static __attribute__((pnaclcall))
2035 struct PP_Var Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL(PP_Instance instanc e, struct PP_URLComponents_Dev* components) { 2031 struct PP_Var Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL(PP_Instance instanc e, struct PP_URLComponents_Dev* components) {
2036 const struct PPB_URLUtil_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 6.real_iface; 2032 const struct PPB_URLUtil_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 6.real_iface;
2037 return iface->GetPluginInstanceURL(instance, components); 2033 return iface->GetPluginInstanceURL(instance, components);
2038 } 2034 }
2039 2035
2040 /* End wrapper methods for PPB_URLUtil_Dev_0_6 */ 2036 /* End wrapper methods for PPB_URLUtil_Dev_0_6 */
2041 2037
2038 /* Begin wrapper methods for PPB_VarDictionary_Dev_0_1 */
2039
2040 static __attribute__((pnaclcall))
2041 struct PP_Var Pnacl_M27_PPB_VarDictionary_Dev_Create(void) {
2042 const struct PPB_VarDictionary_Dev_0_1 *iface = Pnacl_WrapperInfo_PPB_VarDicti onary_Dev_0_1.real_iface;
2043 return iface->Create();
2044 }
2045
2046 static __attribute__((pnaclcall))
2047 struct PP_Var Pnacl_M27_PPB_VarDictionary_Dev_Get(struct PP_Var dict, struct PP_ Var key) {
2048 const struct PPB_VarDictionary_Dev_0_1 *iface = Pnacl_WrapperInfo_PPB_VarDicti onary_Dev_0_1.real_iface;
2049 return iface->Get(dict, key);
2050 }
2051
2052 static __attribute__((pnaclcall))
2053 PP_Bool Pnacl_M27_PPB_VarDictionary_Dev_Set(struct PP_Var dict, struct PP_Var ke y, struct PP_Var value) {
2054 const struct PPB_VarDictionary_Dev_0_1 *iface = Pnacl_WrapperInfo_PPB_VarDicti onary_Dev_0_1.real_iface;
2055 return iface->Set(dict, key, value);
2056 }
2057
2058 static __attribute__((pnaclcall))
2059 void Pnacl_M27_PPB_VarDictionary_Dev_Delete(struct PP_Var dict, struct PP_Var ke y) {
2060 const struct PPB_VarDictionary_Dev_0_1 *iface = Pnacl_WrapperInfo_PPB_VarDicti onary_Dev_0_1.real_iface;
2061 iface->Delete(dict, key);
2062 }
2063
2064 static __attribute__((pnaclcall))
2065 PP_Bool Pnacl_M27_PPB_VarDictionary_Dev_HasKey(struct PP_Var dict, struct PP_Var key) {
2066 const struct PPB_VarDictionary_Dev_0_1 *iface = Pnacl_WrapperInfo_PPB_VarDicti onary_Dev_0_1.real_iface;
2067 return iface->HasKey(dict, key);
2068 }
2069
2070 static __attribute__((pnaclcall))
2071 struct PP_Var Pnacl_M27_PPB_VarDictionary_Dev_GetKeys(struct PP_Var dict) {
2072 const struct PPB_VarDictionary_Dev_0_1 *iface = Pnacl_WrapperInfo_PPB_VarDicti onary_Dev_0_1.real_iface;
2073 return iface->GetKeys(dict);
2074 }
2075
2076 /* End wrapper methods for PPB_VarDictionary_Dev_0_1 */
2077
2042 /* Begin wrapper methods for PPB_VideoCapture_Dev_0_2 */ 2078 /* Begin wrapper methods for PPB_VideoCapture_Dev_0_2 */
2043 2079
2044 static __attribute__((pnaclcall)) 2080 static __attribute__((pnaclcall))
2045 PP_Resource Pnacl_M19_PPB_VideoCapture_Dev_Create(PP_Instance instance) { 2081 PP_Resource Pnacl_M19_PPB_VideoCapture_Dev_Create(PP_Instance instance) {
2046 const struct PPB_VideoCapture_Dev_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoCapt ure_Dev_0_2.real_iface; 2082 const struct PPB_VideoCapture_Dev_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoCapt ure_Dev_0_2.real_iface;
2047 return iface->Create(instance); 2083 return iface->Create(instance);
2048 } 2084 }
2049 2085
2050 static __attribute__((pnaclcall)) 2086 static __attribute__((pnaclcall))
2051 PP_Bool Pnacl_M19_PPB_VideoCapture_Dev_IsVideoCapture(PP_Resource video_capture) { 2087 PP_Bool Pnacl_M19_PPB_VideoCapture_Dev_IsVideoCapture(PP_Resource video_capture) {
(...skipping 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after
4068 .Canonicalize = (struct PP_Var (*)(struct PP_Var url, struct PP_URLComponent s_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_Canonicalize, 4104 .Canonicalize = (struct PP_Var (*)(struct PP_Var url, struct PP_URLComponent s_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_Canonicalize,
4069 .ResolveRelativeToURL = (struct PP_Var (*)(struct PP_Var base_url, struct PP _Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M17_PPB_UR LUtil_Dev_ResolveRelativeToURL, 4105 .ResolveRelativeToURL = (struct PP_Var (*)(struct PP_Var base_url, struct PP _Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M17_PPB_UR LUtil_Dev_ResolveRelativeToURL,
4070 .ResolveRelativeToDocument = (struct PP_Var (*)(PP_Instance instance, struct PP_Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M17_PPB _URLUtil_Dev_ResolveRelativeToDocument, 4106 .ResolveRelativeToDocument = (struct PP_Var (*)(PP_Instance instance, struct PP_Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M17_PPB _URLUtil_Dev_ResolveRelativeToDocument,
4071 .IsSameSecurityOrigin = (PP_Bool (*)(struct PP_Var url_a, struct PP_Var url_ b))&Pnacl_M17_PPB_URLUtil_Dev_IsSameSecurityOrigin, 4107 .IsSameSecurityOrigin = (PP_Bool (*)(struct PP_Var url_a, struct PP_Var url_ b))&Pnacl_M17_PPB_URLUtil_Dev_IsSameSecurityOrigin,
4072 .DocumentCanRequest = (PP_Bool (*)(PP_Instance instance, struct PP_Var url)) &Pnacl_M17_PPB_URLUtil_Dev_DocumentCanRequest, 4108 .DocumentCanRequest = (PP_Bool (*)(PP_Instance instance, struct PP_Var url)) &Pnacl_M17_PPB_URLUtil_Dev_DocumentCanRequest,
4073 .DocumentCanAccessDocument = (PP_Bool (*)(PP_Instance active, PP_Instance ta rget))&Pnacl_M17_PPB_URLUtil_Dev_DocumentCanAccessDocument, 4109 .DocumentCanAccessDocument = (PP_Bool (*)(PP_Instance active, PP_Instance ta rget))&Pnacl_M17_PPB_URLUtil_Dev_DocumentCanAccessDocument,
4074 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetDocumentURL, 4110 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetDocumentURL,
4075 .GetPluginInstanceURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL 4111 .GetPluginInstanceURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL
4076 }; 4112 };
4077 4113
4114 struct PPB_VarDictionary_Dev_0_1 Pnacl_Wrappers_PPB_VarDictionary_Dev_0_1 = {
4115 .Create = (struct PP_Var (*)(void))&Pnacl_M27_PPB_VarDictionary_Dev_Create,
4116 .Get = (struct PP_Var (*)(struct PP_Var dict, struct PP_Var key))&Pnacl_M27_ PPB_VarDictionary_Dev_Get,
4117 .Set = (PP_Bool (*)(struct PP_Var dict, struct PP_Var key, struct PP_Var val ue))&Pnacl_M27_PPB_VarDictionary_Dev_Set,
4118 .Delete = (void (*)(struct PP_Var dict, struct PP_Var key))&Pnacl_M27_PPB_Va rDictionary_Dev_Delete,
4119 .HasKey = (PP_Bool (*)(struct PP_Var dict, struct PP_Var key))&Pnacl_M27_PPB _VarDictionary_Dev_HasKey,
4120 .GetKeys = (struct PP_Var (*)(struct PP_Var dict))&Pnacl_M27_PPB_VarDictiona ry_Dev_GetKeys
4121 };
4122
4078 struct PPB_VideoCapture_Dev_0_2 Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2 = { 4123 struct PPB_VideoCapture_Dev_0_2 Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2 = {
4079 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_VideoCapture _Dev_Create, 4124 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_VideoCapture _Dev_Create,
4080 .IsVideoCapture = (PP_Bool (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Vid eoCapture_Dev_IsVideoCapture, 4125 .IsVideoCapture = (PP_Bool (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Vid eoCapture_Dev_IsVideoCapture,
4081 .EnumerateDevices = (int32_t (*)(PP_Resource video_capture, PP_Resource* dev ices, struct PP_CompletionCallback callback))&Pnacl_M19_PPB_VideoCapture_Dev_Enu merateDevices, 4126 .EnumerateDevices = (int32_t (*)(PP_Resource video_capture, PP_Resource* dev ices, struct PP_CompletionCallback callback))&Pnacl_M19_PPB_VideoCapture_Dev_Enu merateDevices,
4082 .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_M19_PPB_VideoCapture_Dev_Open, 4127 .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_M19_PPB_VideoCapture_Dev_Open,
4083 .StartCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Video Capture_Dev_StartCapture, 4128 .StartCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Video Capture_Dev_StartCapture,
4084 .ReuseBuffer = (int32_t (*)(PP_Resource video_capture, uint32_t buffer))&Pna cl_M19_PPB_VideoCapture_Dev_ReuseBuffer, 4129 .ReuseBuffer = (int32_t (*)(PP_Resource video_capture, uint32_t buffer))&Pna cl_M19_PPB_VideoCapture_Dev_ReuseBuffer,
4085 .StopCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoC apture_Dev_StopCapture, 4130 .StopCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoC apture_Dev_StopCapture,
4086 .Close = (void (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoCapture_De v_Close 4131 .Close = (void (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoCapture_De v_Close
4087 }; 4132 };
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
4923 .wrapped_iface = NULL /* Still need slot for real_iface */, 4968 .wrapped_iface = NULL /* Still need slot for real_iface */,
4924 .real_iface = NULL 4969 .real_iface = NULL
4925 }; 4970 };
4926 4971
4927 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6 = { 4972 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6 = {
4928 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_6, 4973 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_6,
4929 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_6, 4974 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_6,
4930 .real_iface = NULL 4975 .real_iface = NULL
4931 }; 4976 };
4932 4977
4978 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarDictionary_Dev_0_1 = {
4979 .iface_macro = PPB_VAR_DICTIONARY_DEV_INTERFACE_0_1,
4980 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VarDictionary_Dev_0_1,
4981 .real_iface = NULL
4982 };
4983
4933 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2 = { 4984 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2 = {
4934 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_2, 4985 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_2,
4935 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2, 4986 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2,
4936 .real_iface = NULL 4987 .real_iface = NULL
4937 }; 4988 };
4938 4989
4939 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3 = { 4990 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3 = {
4940 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_3, 4991 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_3,
4941 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_3, 4992 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_3,
4942 .real_iface = NULL 4993 .real_iface = NULL
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
5345 &Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1, 5396 &Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1,
5346 &Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5, 5397 &Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5,
5347 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_7, 5398 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_7,
5348 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_8, 5399 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_8,
5349 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_9, 5400 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_9,
5350 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_91, 5401 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_91,
5351 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1, 5402 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1,
5352 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2, 5403 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2,
5353 &Pnacl_WrapperInfo_PPB_Trace_Event_Dev_0_1, 5404 &Pnacl_WrapperInfo_PPB_Trace_Event_Dev_0_1,
5354 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6, 5405 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6,
5406 &Pnacl_WrapperInfo_PPB_VarDictionary_Dev_0_1,
5355 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2, 5407 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2,
5356 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3, 5408 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3,
5357 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16, 5409 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16,
5358 &Pnacl_WrapperInfo_PPB_View_Dev_0_1, 5410 &Pnacl_WrapperInfo_PPB_View_Dev_0_1,
5359 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_3, 5411 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_3,
5360 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_4, 5412 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_4,
5361 &Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2, 5413 &Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2,
5362 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_6, 5414 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_6,
5363 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1, 5415 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1,
5364 &Pnacl_WrapperInfo_PPB_Flash_12_4, 5416 &Pnacl_WrapperInfo_PPB_Flash_12_4,
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
5494 } 5546 }
5495 5547
5496 if (wrapper->wrapped_iface) { 5548 if (wrapper->wrapped_iface) {
5497 return wrapper->wrapped_iface; 5549 return wrapper->wrapped_iface;
5498 } else { 5550 } else {
5499 return wrapper->real_iface; 5551 return wrapper->real_iface;
5500 } 5552 }
5501 } 5553 }
5502 5554
5503 #endif 5555 #endif
OLDNEW
« no previous file with comments | « ppapi/cpp/var.cc ('k') | ppapi/ppapi_shared.gypi » ('j') | ppapi/shared_impl/dictionary_var.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698