OLD | NEW |
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/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.h" | 7 #include "ppapi/native_client/src/untrusted/pnacl_irt_shim/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" |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "ppapi/c/ppb_file_ref.h" | 27 #include "ppapi/c/ppb_file_ref.h" |
28 #include "ppapi/c/ppb_file_system.h" | 28 #include "ppapi/c/ppb_file_system.h" |
29 #include "ppapi/c/ppb_graphics_2d.h" | 29 #include "ppapi/c/ppb_graphics_2d.h" |
30 #include "ppapi/c/ppb_graphics_3d.h" | 30 #include "ppapi/c/ppb_graphics_3d.h" |
31 #include "ppapi/c/ppb_host_resolver.h" | 31 #include "ppapi/c/ppb_host_resolver.h" |
32 #include "ppapi/c/ppb_input_event.h" | 32 #include "ppapi/c/ppb_input_event.h" |
33 #include "ppapi/c/ppb_media_stream_audio_track.h" | 33 #include "ppapi/c/ppb_media_stream_audio_track.h" |
34 #include "ppapi/c/ppb_media_stream_video_track.h" | 34 #include "ppapi/c/ppb_media_stream_video_track.h" |
35 #include "ppapi/c/ppb_message_loop.h" | 35 #include "ppapi/c/ppb_message_loop.h" |
36 #include "ppapi/c/ppb_messaging.h" | 36 #include "ppapi/c/ppb_messaging.h" |
| 37 #include "ppapi/c/ppb_mojo.h" |
37 #include "ppapi/c/ppb_mouse_lock.h" | 38 #include "ppapi/c/ppb_mouse_lock.h" |
38 #include "ppapi/c/ppb_net_address.h" | 39 #include "ppapi/c/ppb_net_address.h" |
39 #include "ppapi/c/ppb_network_list.h" | 40 #include "ppapi/c/ppb_network_list.h" |
40 #include "ppapi/c/ppb_network_monitor.h" | 41 #include "ppapi/c/ppb_network_monitor.h" |
41 #include "ppapi/c/ppb_network_proxy.h" | 42 #include "ppapi/c/ppb_network_proxy.h" |
42 #include "ppapi/c/ppb_tcp_socket.h" | 43 #include "ppapi/c/ppb_tcp_socket.h" |
43 #include "ppapi/c/ppb_text_input_controller.h" | 44 #include "ppapi/c/ppb_text_input_controller.h" |
44 #include "ppapi/c/ppb_udp_socket.h" | 45 #include "ppapi/c/ppb_udp_socket.h" |
45 #include "ppapi/c/ppb_url_loader.h" | 46 #include "ppapi/c/ppb_url_loader.h" |
46 #include "ppapi/c/ppb_url_request_info.h" | 47 #include "ppapi/c/ppb_url_request_info.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0; | 119 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0; |
119 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_2; | 120 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_2; |
120 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0; | 121 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0; |
121 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_1_0; | 122 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_1_0; |
122 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaStreamAudioTrack_0_1
; | 123 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaStreamAudioTrack_0_1
; |
123 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaStreamVideoTrack_0_1
; | 124 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaStreamVideoTrack_0_1
; |
124 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaStreamVideoTrack_1_0
; | 125 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MediaStreamVideoTrack_1_0
; |
125 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MessageLoop_1_0; | 126 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MessageLoop_1_0; |
126 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Messaging_1_0; | 127 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Messaging_1_0; |
127 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Messaging_1_2; | 128 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Messaging_1_2; |
| 129 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Mojo_0_1; |
128 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseLock_1_0; | 130 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseLock_1_0; |
129 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_1_0; | 131 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_1_0; |
130 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkList_1_0; | 132 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkList_1_0; |
131 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkMonitor_1_0; | 133 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkMonitor_1_0; |
132 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkProxy_1_0; | 134 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetworkProxy_1_0; |
133 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_0; | 135 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_0; |
134 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_1; | 136 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TCPSocket_1_1; |
135 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInputController_1_0; | 137 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInputController_1_0; |
136 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_1_0; | 138 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_UDPSocket_1_0; |
137 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0; | 139 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0; |
(...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1341 return iface->RegisterMessageHandler(instance, user_data, handler, message_loo
p); | 1343 return iface->RegisterMessageHandler(instance, user_data, handler, message_loo
p); |
1342 } | 1344 } |
1343 | 1345 |
1344 static void Pnacl_M39_PPB_Messaging_UnregisterMessageHandler(PP_Instance instanc
e) { | 1346 static void Pnacl_M39_PPB_Messaging_UnregisterMessageHandler(PP_Instance instanc
e) { |
1345 const struct PPB_Messaging_1_2 *iface = Pnacl_WrapperInfo_PPB_Messaging_1_2.re
al_iface; | 1347 const struct PPB_Messaging_1_2 *iface = Pnacl_WrapperInfo_PPB_Messaging_1_2.re
al_iface; |
1346 iface->UnregisterMessageHandler(instance); | 1348 iface->UnregisterMessageHandler(instance); |
1347 } | 1349 } |
1348 | 1350 |
1349 /* End wrapper methods for PPB_Messaging_1_2 */ | 1351 /* End wrapper methods for PPB_Messaging_1_2 */ |
1350 | 1352 |
| 1353 /* Begin wrapper methods for PPB_Mojo_0_1 */ |
| 1354 |
| 1355 static int32_t Pnacl_M38_PPB_Mojo_GetHandle(PP_Instance instance, uint32_t* mojo
_handle, struct PP_CompletionCallback* callback) { |
| 1356 const struct PPB_Mojo_0_1 *iface = Pnacl_WrapperInfo_PPB_Mojo_0_1.real_iface; |
| 1357 return iface->GetHandle(instance, mojo_handle, *callback); |
| 1358 } |
| 1359 |
| 1360 /* End wrapper methods for PPB_Mojo_0_1 */ |
| 1361 |
1351 /* Not generating wrapper methods for PPB_MouseCursor_1_0 */ | 1362 /* Not generating wrapper methods for PPB_MouseCursor_1_0 */ |
1352 | 1363 |
1353 /* Begin wrapper methods for PPB_MouseLock_1_0 */ | 1364 /* Begin wrapper methods for PPB_MouseLock_1_0 */ |
1354 | 1365 |
1355 static int32_t Pnacl_M16_PPB_MouseLock_LockMouse(PP_Instance instance, struct PP
_CompletionCallback* callback) { | 1366 static int32_t Pnacl_M16_PPB_MouseLock_LockMouse(PP_Instance instance, struct PP
_CompletionCallback* callback) { |
1356 const struct PPB_MouseLock_1_0 *iface = Pnacl_WrapperInfo_PPB_MouseLock_1_0.re
al_iface; | 1367 const struct PPB_MouseLock_1_0 *iface = Pnacl_WrapperInfo_PPB_MouseLock_1_0.re
al_iface; |
1357 return iface->LockMouse(instance, *callback); | 1368 return iface->LockMouse(instance, *callback); |
1358 } | 1369 } |
1359 | 1370 |
1360 static void Pnacl_M16_PPB_MouseLock_UnlockMouse(PP_Instance instance) { | 1371 static void Pnacl_M16_PPB_MouseLock_UnlockMouse(PP_Instance instance) { |
(...skipping 3457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4818 static const struct PPB_Messaging_1_0 Pnacl_Wrappers_PPB_Messaging_1_0 = { | 4829 static const struct PPB_Messaging_1_0 Pnacl_Wrappers_PPB_Messaging_1_0 = { |
4819 .PostMessage = (void (*)(PP_Instance instance, struct PP_Var message))&Pnacl
_M14_PPB_Messaging_PostMessage | 4830 .PostMessage = (void (*)(PP_Instance instance, struct PP_Var message))&Pnacl
_M14_PPB_Messaging_PostMessage |
4820 }; | 4831 }; |
4821 | 4832 |
4822 static const struct PPB_Messaging_1_2 Pnacl_Wrappers_PPB_Messaging_1_2 = { | 4833 static const struct PPB_Messaging_1_2 Pnacl_Wrappers_PPB_Messaging_1_2 = { |
4823 .PostMessage = (void (*)(PP_Instance instance, struct PP_Var message))&Pnacl
_M39_PPB_Messaging_PostMessage, | 4834 .PostMessage = (void (*)(PP_Instance instance, struct PP_Var message))&Pnacl
_M39_PPB_Messaging_PostMessage, |
4824 .RegisterMessageHandler = (int32_t (*)(PP_Instance instance, void* user_data
, const struct PPP_MessageHandler_0_2* handler, PP_Resource message_loop))&Pnacl
_M39_PPB_Messaging_RegisterMessageHandler, | 4835 .RegisterMessageHandler = (int32_t (*)(PP_Instance instance, void* user_data
, const struct PPP_MessageHandler_0_2* handler, PP_Resource message_loop))&Pnacl
_M39_PPB_Messaging_RegisterMessageHandler, |
4825 .UnregisterMessageHandler = (void (*)(PP_Instance instance))&Pnacl_M39_PPB_M
essaging_UnregisterMessageHandler | 4836 .UnregisterMessageHandler = (void (*)(PP_Instance instance))&Pnacl_M39_PPB_M
essaging_UnregisterMessageHandler |
4826 }; | 4837 }; |
4827 | 4838 |
| 4839 static const struct PPB_Mojo_0_1 Pnacl_Wrappers_PPB_Mojo_0_1 = { |
| 4840 .GetHandle = (int32_t (*)(PP_Instance instance, uint32_t* mojo_handle, struc
t PP_CompletionCallback callback))&Pnacl_M38_PPB_Mojo_GetHandle |
| 4841 }; |
| 4842 |
4828 /* Not generating wrapper interface for PPB_MouseCursor_1_0 */ | 4843 /* Not generating wrapper interface for PPB_MouseCursor_1_0 */ |
4829 | 4844 |
4830 static const struct PPB_MouseLock_1_0 Pnacl_Wrappers_PPB_MouseLock_1_0 = { | 4845 static const struct PPB_MouseLock_1_0 Pnacl_Wrappers_PPB_MouseLock_1_0 = { |
4831 .LockMouse = (int32_t (*)(PP_Instance instance, struct PP_CompletionCallback
callback))&Pnacl_M16_PPB_MouseLock_LockMouse, | 4846 .LockMouse = (int32_t (*)(PP_Instance instance, struct PP_CompletionCallback
callback))&Pnacl_M16_PPB_MouseLock_LockMouse, |
4832 .UnlockMouse = (void (*)(PP_Instance instance))&Pnacl_M16_PPB_MouseLock_Unlo
ckMouse | 4847 .UnlockMouse = (void (*)(PP_Instance instance))&Pnacl_M16_PPB_MouseLock_Unlo
ckMouse |
4833 }; | 4848 }; |
4834 | 4849 |
4835 static const struct PPB_NetAddress_1_0 Pnacl_Wrappers_PPB_NetAddress_1_0 = { | 4850 static const struct PPB_NetAddress_1_0 Pnacl_Wrappers_PPB_NetAddress_1_0 = { |
4836 .CreateFromIPv4Address = (PP_Resource (*)(PP_Instance instance, const struct
PP_NetAddress_IPv4* ipv4_addr))&Pnacl_M29_PPB_NetAddress_CreateFromIPv4Address, | 4851 .CreateFromIPv4Address = (PP_Resource (*)(PP_Instance instance, const struct
PP_NetAddress_IPv4* ipv4_addr))&Pnacl_M29_PPB_NetAddress_CreateFromIPv4Address, |
4837 .CreateFromIPv6Address = (PP_Resource (*)(PP_Instance instance, const struct
PP_NetAddress_IPv6* ipv6_addr))&Pnacl_M29_PPB_NetAddress_CreateFromIPv6Address, | 4852 .CreateFromIPv6Address = (PP_Resource (*)(PP_Instance instance, const struct
PP_NetAddress_IPv6* ipv6_addr))&Pnacl_M29_PPB_NetAddress_CreateFromIPv6Address, |
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5895 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_Messaging_1_0, | 5910 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_Messaging_1_0, |
5896 .real_iface = NULL | 5911 .real_iface = NULL |
5897 }; | 5912 }; |
5898 | 5913 |
5899 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Messaging_1_2 = { | 5914 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Messaging_1_2 = { |
5900 .iface_macro = PPB_MESSAGING_INTERFACE_1_2, | 5915 .iface_macro = PPB_MESSAGING_INTERFACE_1_2, |
5901 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_Messaging_1_2, | 5916 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_Messaging_1_2, |
5902 .real_iface = NULL | 5917 .real_iface = NULL |
5903 }; | 5918 }; |
5904 | 5919 |
| 5920 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Mojo_0_1 = { |
| 5921 .iface_macro = PPB_MOJO_INTERFACE_0_1, |
| 5922 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_Mojo_0_1, |
| 5923 .real_iface = NULL |
| 5924 }; |
| 5925 |
5905 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseLock_1_0 = { | 5926 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseLock_1_0 = { |
5906 .iface_macro = PPB_MOUSELOCK_INTERFACE_1_0, | 5927 .iface_macro = PPB_MOUSELOCK_INTERFACE_1_0, |
5907 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_MouseLock_1_0, | 5928 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_MouseLock_1_0, |
5908 .real_iface = NULL | 5929 .real_iface = NULL |
5909 }; | 5930 }; |
5910 | 5931 |
5911 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_1_0 = { | 5932 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_1_0 = { |
5912 .iface_macro = PPB_NETADDRESS_INTERFACE_1_0, | 5933 .iface_macro = PPB_NETADDRESS_INTERFACE_1_0, |
5913 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_NetAddress_1_0, | 5934 .wrapped_iface = (const void *) &Pnacl_Wrappers_PPB_NetAddress_1_0, |
5914 .real_iface = NULL | 5935 .real_iface = NULL |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6405 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0, | 6426 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0, |
6406 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_2, | 6427 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_2, |
6407 &Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0, | 6428 &Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0, |
6408 &Pnacl_WrapperInfo_PPB_IMEInputEvent_1_0, | 6429 &Pnacl_WrapperInfo_PPB_IMEInputEvent_1_0, |
6409 &Pnacl_WrapperInfo_PPB_MediaStreamAudioTrack_0_1, | 6430 &Pnacl_WrapperInfo_PPB_MediaStreamAudioTrack_0_1, |
6410 &Pnacl_WrapperInfo_PPB_MediaStreamVideoTrack_0_1, | 6431 &Pnacl_WrapperInfo_PPB_MediaStreamVideoTrack_0_1, |
6411 &Pnacl_WrapperInfo_PPB_MediaStreamVideoTrack_1_0, | 6432 &Pnacl_WrapperInfo_PPB_MediaStreamVideoTrack_1_0, |
6412 &Pnacl_WrapperInfo_PPB_MessageLoop_1_0, | 6433 &Pnacl_WrapperInfo_PPB_MessageLoop_1_0, |
6413 &Pnacl_WrapperInfo_PPB_Messaging_1_0, | 6434 &Pnacl_WrapperInfo_PPB_Messaging_1_0, |
6414 &Pnacl_WrapperInfo_PPB_Messaging_1_2, | 6435 &Pnacl_WrapperInfo_PPB_Messaging_1_2, |
| 6436 &Pnacl_WrapperInfo_PPB_Mojo_0_1, |
6415 &Pnacl_WrapperInfo_PPB_MouseLock_1_0, | 6437 &Pnacl_WrapperInfo_PPB_MouseLock_1_0, |
6416 &Pnacl_WrapperInfo_PPB_NetAddress_1_0, | 6438 &Pnacl_WrapperInfo_PPB_NetAddress_1_0, |
6417 &Pnacl_WrapperInfo_PPB_NetworkList_1_0, | 6439 &Pnacl_WrapperInfo_PPB_NetworkList_1_0, |
6418 &Pnacl_WrapperInfo_PPB_NetworkMonitor_1_0, | 6440 &Pnacl_WrapperInfo_PPB_NetworkMonitor_1_0, |
6419 &Pnacl_WrapperInfo_PPB_NetworkProxy_1_0, | 6441 &Pnacl_WrapperInfo_PPB_NetworkProxy_1_0, |
6420 &Pnacl_WrapperInfo_PPB_TCPSocket_1_0, | 6442 &Pnacl_WrapperInfo_PPB_TCPSocket_1_0, |
6421 &Pnacl_WrapperInfo_PPB_TCPSocket_1_1, | 6443 &Pnacl_WrapperInfo_PPB_TCPSocket_1_1, |
6422 &Pnacl_WrapperInfo_PPB_TextInputController_1_0, | 6444 &Pnacl_WrapperInfo_PPB_TextInputController_1_0, |
6423 &Pnacl_WrapperInfo_PPB_UDPSocket_1_0, | 6445 &Pnacl_WrapperInfo_PPB_UDPSocket_1_0, |
6424 &Pnacl_WrapperInfo_PPB_URLLoader_1_0, | 6446 &Pnacl_WrapperInfo_PPB_URLLoader_1_0, |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6560 | 6582 |
6561 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ | 6583 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ |
6562 if (wrapper->real_iface == NULL) { | 6584 if (wrapper->real_iface == NULL) { |
6563 const void *iface = (*__real_PPPGetInterface)(name); | 6585 const void *iface = (*__real_PPPGetInterface)(name); |
6564 if (NULL == iface) return NULL; | 6586 if (NULL == iface) return NULL; |
6565 wrapper->real_iface = iface; | 6587 wrapper->real_iface = iface; |
6566 } | 6588 } |
6567 | 6589 |
6568 return wrapper->wrapped_iface; | 6590 return wrapper->wrapped_iface; |
6569 } | 6591 } |
OLD | NEW |