OLD | NEW |
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" |
(...skipping 2725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2736 | 2736 |
2737 static void Pnacl_M13_PPB_Instance_Private_ExecuteScript(struct PP_Var* _struct_
result, PP_Instance instance, struct PP_Var* script, struct PP_Var* exception) { | 2737 static void Pnacl_M13_PPB_Instance_Private_ExecuteScript(struct PP_Var* _struct_
result, PP_Instance instance, struct PP_Var* script, struct PP_Var* exception) { |
2738 const struct PPB_Instance_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_Instance_
Private_0_1.real_iface; | 2738 const struct PPB_Instance_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_Instance_
Private_0_1.real_iface; |
2739 *_struct_result = iface->ExecuteScript(instance, *script, exception); | 2739 *_struct_result = iface->ExecuteScript(instance, *script, exception); |
2740 } | 2740 } |
2741 | 2741 |
2742 /* End wrapper methods for PPB_Instance_Private_0_1 */ | 2742 /* End wrapper methods for PPB_Instance_Private_0_1 */ |
2743 | 2743 |
2744 /* Begin wrapper methods for PPB_NaCl_Private_1_0 */ | 2744 /* Begin wrapper methods for PPB_NaCl_Private_1_0 */ |
2745 | 2745 |
2746 static PP_NaClResult Pnacl_M13_PPB_NaCl_Private_LaunchSelLdr(PP_Instance instanc
e, const char* alleged_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool enable
_ppapi_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling,
void* imc_handle) { | 2746 static PP_NaClResult Pnacl_M13_PPB_NaCl_Private_LaunchSelLdr(PP_Instance instanc
e, const char* alleged_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool enable
_ppapi_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling,
void* imc_handle, struct PP_Var* error_message) { |
2747 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 2747 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
2748 return iface->LaunchSelLdr(instance, alleged_url, uses_irt, uses_ppapi, enable
_ppapi_dev, enable_dyncode_syscalls, enable_exception_handling, imc_handle); | 2748 return iface->LaunchSelLdr(instance, alleged_url, uses_irt, uses_ppapi, enable
_ppapi_dev, enable_dyncode_syscalls, enable_exception_handling, imc_handle, erro
r_message); |
2749 } | 2749 } |
2750 | 2750 |
2751 static PP_NaClResult Pnacl_M13_PPB_NaCl_Private_StartPpapiProxy(PP_Instance inst
ance) { | 2751 static PP_NaClResult Pnacl_M13_PPB_NaCl_Private_StartPpapiProxy(PP_Instance inst
ance) { |
2752 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 2752 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
2753 return iface->StartPpapiProxy(instance); | 2753 return iface->StartPpapiProxy(instance); |
2754 } | 2754 } |
2755 | 2755 |
2756 static int32_t Pnacl_M13_PPB_NaCl_Private_UrandomFD(void) { | 2756 static int32_t Pnacl_M13_PPB_NaCl_Private_UrandomFD(void) { |
2757 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; | 2757 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_
1_0.real_iface; |
2758 return iface->UrandomFD(); | 2758 return iface->UrandomFD(); |
(...skipping 1801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4560 .GetNetAddress = (PP_Bool (*)(PP_Resource host_resolver, uint32_t index, str
uct PP_NetAddress_Private* addr))&Pnacl_M19_PPB_HostResolver_Private_GetNetAddre
ss | 4560 .GetNetAddress = (PP_Bool (*)(PP_Resource host_resolver, uint32_t index, str
uct PP_NetAddress_Private* addr))&Pnacl_M19_PPB_HostResolver_Private_GetNetAddre
ss |
4561 }; | 4561 }; |
4562 | 4562 |
4563 struct PPB_Instance_Private_0_1 Pnacl_Wrappers_PPB_Instance_Private_0_1 = { | 4563 struct PPB_Instance_Private_0_1 Pnacl_Wrappers_PPB_Instance_Private_0_1 = { |
4564 .GetWindowObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13_PPB_I
nstance_Private_GetWindowObject, | 4564 .GetWindowObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13_PPB_I
nstance_Private_GetWindowObject, |
4565 .GetOwnerElementObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13
_PPB_Instance_Private_GetOwnerElementObject, | 4565 .GetOwnerElementObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13
_PPB_Instance_Private_GetOwnerElementObject, |
4566 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri
pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript | 4566 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri
pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript |
4567 }; | 4567 }; |
4568 | 4568 |
4569 struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { | 4569 struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { |
4570 .LaunchSelLdr = (PP_NaClResult (*)(PP_Instance instance, const char* alleged
_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool enable_ppapi_dev, PP_Bool en
able_dyncode_syscalls, PP_Bool enable_exception_handling, void* imc_handle))&Pna
cl_M13_PPB_NaCl_Private_LaunchSelLdr, | 4570 .LaunchSelLdr = (PP_NaClResult (*)(PP_Instance instance, const char* alleged
_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool enable_ppapi_dev, PP_Bool en
able_dyncode_syscalls, PP_Bool enable_exception_handling, void* imc_handle, stru
ct PP_Var* error_message))&Pnacl_M13_PPB_NaCl_Private_LaunchSelLdr, |
4571 .StartPpapiProxy = (PP_NaClResult (*)(PP_Instance instance))&Pnacl_M13_PPB_N
aCl_Private_StartPpapiProxy, | 4571 .StartPpapiProxy = (PP_NaClResult (*)(PP_Instance instance))&Pnacl_M13_PPB_N
aCl_Private_StartPpapiProxy, |
4572 .UrandomFD = (int32_t (*)(void))&Pnacl_M13_PPB_NaCl_Private_UrandomFD, | 4572 .UrandomFD = (int32_t (*)(void))&Pnacl_M13_PPB_NaCl_Private_UrandomFD, |
4573 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M13_PPB_NaCl_Private_Ar
e3DInterfacesDisabled, | 4573 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M13_PPB_NaCl_Private_Ar
e3DInterfacesDisabled, |
4574 .BrokerDuplicateHandle = (int32_t (*)(PP_FileHandle source_handle, uint32_t
process_id, PP_FileHandle* target_handle, uint32_t desired_access, uint32_t opti
ons))&Pnacl_M13_PPB_NaCl_Private_BrokerDuplicateHandle, | 4574 .BrokerDuplicateHandle = (int32_t (*)(PP_FileHandle source_handle, uint32_t
process_id, PP_FileHandle* target_handle, uint32_t desired_access, uint32_t opti
ons))&Pnacl_M13_PPB_NaCl_Private_BrokerDuplicateHandle, |
4575 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M13_PP
B_NaCl_Private_GetReadonlyPnaclFd, | 4575 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M13_PP
B_NaCl_Private_GetReadonlyPnaclFd, |
4576 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M13_P
PB_NaCl_Private_CreateTemporaryFile, | 4576 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M13_P
PB_NaCl_Private_CreateTemporaryFile, |
4577 .GetNexeFd = (int32_t (*)(PP_Instance instance, const char* pexe_url, uint32
_t abi_version, uint32_t opt_level, const char* last_modified, const char* etag,
PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback callb
ack))&Pnacl_M13_PPB_NaCl_Private_GetNexeFd, | 4577 .GetNexeFd = (int32_t (*)(PP_Instance instance, const char* pexe_url, uint32
_t abi_version, uint32_t opt_level, const char* last_modified, const char* etag,
PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback callb
ack))&Pnacl_M13_PPB_NaCl_Private_GetNexeFd, |
4578 .ReportTranslationFinished = (void (*)(PP_Instance instance))&Pnacl_M13_PPB_
NaCl_Private_ReportTranslationFinished, | 4578 .ReportTranslationFinished = (void (*)(PP_Instance instance))&Pnacl_M13_PPB_
NaCl_Private_ReportTranslationFinished, |
4579 .IsOffTheRecord = (PP_Bool (*)(void))&Pnacl_M13_PPB_NaCl_Private_IsOffTheRec
ord, | 4579 .IsOffTheRecord = (PP_Bool (*)(void))&Pnacl_M13_PPB_NaCl_Private_IsOffTheRec
ord, |
4580 .IsPnaclEnabled = (PP_Bool (*)(void))&Pnacl_M13_PPB_NaCl_Private_IsPnaclEnab
led, | 4580 .IsPnaclEnabled = (PP_Bool (*)(void))&Pnacl_M13_PPB_NaCl_Private_IsPnaclEnab
led, |
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5560 if (NULL == iface) return NULL; | 5560 if (NULL == iface) return NULL; |
5561 wrapper->real_iface = iface; | 5561 wrapper->real_iface = iface; |
5562 } | 5562 } |
5563 | 5563 |
5564 if (wrapper->wrapped_iface) { | 5564 if (wrapper->wrapped_iface) { |
5565 return wrapper->wrapped_iface; | 5565 return wrapper->wrapped_iface; |
5566 } else { | 5566 } else { |
5567 return wrapper->real_iface; | 5567 return wrapper->real_iface; |
5568 } | 5568 } |
5569 } | 5569 } |
OLD | NEW |