OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 /* Last generated from IDL: Thu Oct 25 16:40:11 2012. */ | 6 /* Last generated from IDL: Tue Oct 30 17:39:39 2012. */ |
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_console_dev.h" | 12 #include "ppapi/c/dev/ppb_console_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_file_chooser_dev.h" | 15 #include "ppapi/c/dev/ppb_file_chooser_dev.h" |
16 #include "ppapi/c/dev/ppb_find_dev.h" | 16 #include "ppapi/c/dev/ppb_find_dev.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7; | 181 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7; |
182 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1; | 182 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1; |
183 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5; | 183 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5; |
184 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_7; | 184 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_7; |
185 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_8; | 185 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_8; |
186 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_9; | 186 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_9; |
187 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_91; | 187 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_91; |
188 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1; | 188 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1; |
189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2; | 189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2; |
190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6; | 190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6; |
191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_1; | |
192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2; | 191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2; |
193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16; | 192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16; |
194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_Dev_0_1; | 193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_Dev_0_1; |
195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Widget_Dev_0_3; | 194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Widget_Dev_0_3; |
196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Widget_Dev_0_4; | 195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Widget_Dev_0_4; |
197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2; | 196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2; |
198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Printing_Dev_0_6; | 197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Printing_Dev_0_6; |
199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_TextInput_Dev_0_1; | 198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_TextInput_Dev_0_1; |
200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_VideoCapture_Dev_0_1; | 199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_VideoCapture_Dev_0_1; |
201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_VideoDecoder_Dev_0_9; | 200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_VideoDecoder_Dev_0_9; |
(...skipping 1616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1818 } | 1817 } |
1819 | 1818 |
1820 static __attribute__((pnaclcall)) | 1819 static __attribute__((pnaclcall)) |
1821 struct PP_Var Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL(PP_Instance instanc
e, struct PP_URLComponents_Dev* components) { | 1820 struct PP_Var Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL(PP_Instance instanc
e, struct PP_URLComponents_Dev* components) { |
1822 const struct PPB_URLUtil_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_
6.real_iface; | 1821 const struct PPB_URLUtil_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_
6.real_iface; |
1823 return iface->GetPluginInstanceURL(instance, components); | 1822 return iface->GetPluginInstanceURL(instance, components); |
1824 } | 1823 } |
1825 | 1824 |
1826 /* End wrapper methods for PPB_URLUtil_Dev_0_6 */ | 1825 /* End wrapper methods for PPB_URLUtil_Dev_0_6 */ |
1827 | 1826 |
1828 /* Not generating wrapper methods for PPB_VideoCapture_Dev_0_1 */ | |
1829 | |
1830 /* Begin wrapper methods for PPB_VideoCapture_Dev_0_2 */ | 1827 /* Begin wrapper methods for PPB_VideoCapture_Dev_0_2 */ |
1831 | 1828 |
1832 static __attribute__((pnaclcall)) | 1829 static __attribute__((pnaclcall)) |
1833 PP_Resource Pnacl_M19_PPB_VideoCapture_Dev_Create(PP_Instance instance) { | 1830 PP_Resource Pnacl_M19_PPB_VideoCapture_Dev_Create(PP_Instance instance) { |
1834 const struct PPB_VideoCapture_Dev_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoCapt
ure_Dev_0_2.real_iface; | 1831 const struct PPB_VideoCapture_Dev_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoCapt
ure_Dev_0_2.real_iface; |
1835 return iface->Create(instance); | 1832 return iface->Create(instance); |
1836 } | 1833 } |
1837 | 1834 |
1838 static __attribute__((pnaclcall)) | 1835 static __attribute__((pnaclcall)) |
1839 PP_Bool Pnacl_M19_PPB_VideoCapture_Dev_IsVideoCapture(PP_Resource video_capture)
{ | 1836 PP_Bool Pnacl_M19_PPB_VideoCapture_Dev_IsVideoCapture(PP_Resource video_capture)
{ |
(...skipping 2081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3921 .Canonicalize = (struct PP_Var (*)(struct PP_Var url, struct PP_URLComponent
s_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_Canonicalize, | 3918 .Canonicalize = (struct PP_Var (*)(struct PP_Var url, struct PP_URLComponent
s_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_Canonicalize, |
3922 .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, | 3919 .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, |
3923 .ResolveRelativeToDocument = (struct PP_Var (*)(PP_Instance instance, struct
PP_Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M17_PPB
_URLUtil_Dev_ResolveRelativeToDocument, | 3920 .ResolveRelativeToDocument = (struct PP_Var (*)(PP_Instance instance, struct
PP_Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M17_PPB
_URLUtil_Dev_ResolveRelativeToDocument, |
3924 .IsSameSecurityOrigin = (PP_Bool (*)(struct PP_Var url_a, struct PP_Var url_
b))&Pnacl_M17_PPB_URLUtil_Dev_IsSameSecurityOrigin, | 3921 .IsSameSecurityOrigin = (PP_Bool (*)(struct PP_Var url_a, struct PP_Var url_
b))&Pnacl_M17_PPB_URLUtil_Dev_IsSameSecurityOrigin, |
3925 .DocumentCanRequest = (PP_Bool (*)(PP_Instance instance, struct PP_Var url))
&Pnacl_M17_PPB_URLUtil_Dev_DocumentCanRequest, | 3922 .DocumentCanRequest = (PP_Bool (*)(PP_Instance instance, struct PP_Var url))
&Pnacl_M17_PPB_URLUtil_Dev_DocumentCanRequest, |
3926 .DocumentCanAccessDocument = (PP_Bool (*)(PP_Instance active, PP_Instance ta
rget))&Pnacl_M17_PPB_URLUtil_Dev_DocumentCanAccessDocument, | 3923 .DocumentCanAccessDocument = (PP_Bool (*)(PP_Instance active, PP_Instance ta
rget))&Pnacl_M17_PPB_URLUtil_Dev_DocumentCanAccessDocument, |
3927 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp
onents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetDocumentURL, | 3924 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp
onents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetDocumentURL, |
3928 .GetPluginInstanceURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U
RLComponents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL | 3925 .GetPluginInstanceURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U
RLComponents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL |
3929 }; | 3926 }; |
3930 | 3927 |
3931 /* Not generating wrapper interface for PPB_VideoCapture_Dev_0_1 */ | |
3932 | |
3933 struct PPB_VideoCapture_Dev_0_2 Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2 = { | 3928 struct PPB_VideoCapture_Dev_0_2 Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2 = { |
3934 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_VideoCapture
_Dev_Create, | 3929 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_VideoCapture
_Dev_Create, |
3935 .IsVideoCapture = (PP_Bool (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Vid
eoCapture_Dev_IsVideoCapture, | 3930 .IsVideoCapture = (PP_Bool (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Vid
eoCapture_Dev_IsVideoCapture, |
3936 .EnumerateDevices = (int32_t (*)(PP_Resource video_capture, PP_Resource* dev
ices, struct PP_CompletionCallback callback))&Pnacl_M19_PPB_VideoCapture_Dev_Enu
merateDevices, | 3931 .EnumerateDevices = (int32_t (*)(PP_Resource video_capture, PP_Resource* dev
ices, struct PP_CompletionCallback callback))&Pnacl_M19_PPB_VideoCapture_Dev_Enu
merateDevices, |
3937 .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, | 3932 .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, |
3938 .StartCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Video
Capture_Dev_StartCapture, | 3933 .StartCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Video
Capture_Dev_StartCapture, |
3939 .ReuseBuffer = (int32_t (*)(PP_Resource video_capture, uint32_t buffer))&Pna
cl_M19_PPB_VideoCapture_Dev_ReuseBuffer, | 3934 .ReuseBuffer = (int32_t (*)(PP_Resource video_capture, uint32_t buffer))&Pna
cl_M19_PPB_VideoCapture_Dev_ReuseBuffer, |
3940 .StopCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoC
apture_Dev_StopCapture, | 3935 .StopCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoC
apture_Dev_StopCapture, |
3941 .Close = (void (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoCapture_De
v_Close | 3936 .Close = (void (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoCapture_De
v_Close |
3942 }; | 3937 }; |
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4765 .wrapped_iface = NULL /* Still need slot for real_iface */, | 4760 .wrapped_iface = NULL /* Still need slot for real_iface */, |
4766 .real_iface = NULL | 4761 .real_iface = NULL |
4767 }; | 4762 }; |
4768 | 4763 |
4769 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6 = { | 4764 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6 = { |
4770 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_6, | 4765 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_6, |
4771 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_6, | 4766 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_6, |
4772 .real_iface = NULL | 4767 .real_iface = NULL |
4773 }; | 4768 }; |
4774 | 4769 |
4775 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_1 = { | |
4776 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_1, | |
4777 .wrapped_iface = NULL /* Still need slot for real_iface */, | |
4778 .real_iface = NULL | |
4779 }; | |
4780 | |
4781 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2 = { | 4770 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2 = { |
4782 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_2, | 4771 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_2, |
4783 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2, | 4772 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2, |
4784 .real_iface = NULL | 4773 .real_iface = NULL |
4785 }; | 4774 }; |
4786 | 4775 |
4787 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16 = { | 4776 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16 = { |
4788 .iface_macro = PPB_VIDEODECODER_DEV_INTERFACE_0_16, | 4777 .iface_macro = PPB_VIDEODECODER_DEV_INTERFACE_0_16, |
4789 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoDecoder_Dev_0_16, | 4778 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoDecoder_Dev_0_16, |
4790 .real_iface = NULL | 4779 .real_iface = NULL |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5165 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7, | 5154 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7, |
5166 &Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1, | 5155 &Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1, |
5167 &Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5, | 5156 &Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5, |
5168 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_7, | 5157 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_7, |
5169 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_8, | 5158 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_8, |
5170 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_9, | 5159 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_9, |
5171 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_91, | 5160 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_91, |
5172 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1, | 5161 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1, |
5173 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2, | 5162 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2, |
5174 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6, | 5163 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6, |
5175 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_1, | |
5176 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2, | 5164 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2, |
5177 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16, | 5165 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16, |
5178 &Pnacl_WrapperInfo_PPB_View_Dev_0_1, | 5166 &Pnacl_WrapperInfo_PPB_View_Dev_0_1, |
5179 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_3, | 5167 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_3, |
5180 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_4, | 5168 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_4, |
5181 &Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2, | 5169 &Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2, |
5182 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_5, | 5170 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_5, |
5183 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1, | 5171 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1, |
5184 &Pnacl_WrapperInfo_PPB_Flash_12_0, | 5172 &Pnacl_WrapperInfo_PPB_Flash_12_0, |
5185 &Pnacl_WrapperInfo_PPB_Flash_12_1, | 5173 &Pnacl_WrapperInfo_PPB_Flash_12_1, |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5311 } | 5299 } |
5312 | 5300 |
5313 if (wrapper->wrapped_iface) { | 5301 if (wrapper->wrapped_iface) { |
5314 return wrapper->wrapped_iface; | 5302 return wrapper->wrapped_iface; |
5315 } else { | 5303 } else { |
5316 return wrapper->real_iface; | 5304 return wrapper->real_iface; |
5317 } | 5305 } |
5318 } | 5306 } |
5319 | 5307 |
5320 #endif | 5308 #endif |
OLD | NEW |