| 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_alarms_dev.h" | 10 #include "ppapi/c/dev/ppb_alarms_dev.h" |
| (...skipping 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2013 return iface->IsFileChooser(resource); | 2013 return iface->IsFileChooser(resource); |
| 2014 } | 2014 } |
| 2015 | 2015 |
| 2016 static int32_t Pnacl_M19_PPB_FileChooser_Dev_Show(PP_Resource chooser, struct PP
_ArrayOutput* output, struct PP_CompletionCallback* callback) { | 2016 static int32_t Pnacl_M19_PPB_FileChooser_Dev_Show(PP_Resource chooser, struct PP
_ArrayOutput* output, struct PP_CompletionCallback* callback) { |
| 2017 const struct PPB_FileChooser_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_FileChoose
r_Dev_0_6.real_iface; | 2017 const struct PPB_FileChooser_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_FileChoose
r_Dev_0_6.real_iface; |
| 2018 return iface->Show(chooser, *output, *callback); | 2018 return iface->Show(chooser, *output, *callback); |
| 2019 } | 2019 } |
| 2020 | 2020 |
| 2021 /* End wrapper methods for PPB_FileChooser_Dev_0_6 */ | 2021 /* End wrapper methods for PPB_FileChooser_Dev_0_6 */ |
| 2022 | 2022 |
| 2023 /* Not generating wrapper methods for PPB_Find_Dev_0_3 */ | |
| 2024 | |
| 2025 /* Begin wrapper methods for PPB_Font_Dev_0_6 */ | 2023 /* Begin wrapper methods for PPB_Font_Dev_0_6 */ |
| 2026 | 2024 |
| 2027 static void Pnacl_M14_PPB_Font_Dev_GetFontFamilies(struct PP_Var* _struct_result
, PP_Instance instance) { | 2025 static void Pnacl_M14_PPB_Font_Dev_GetFontFamilies(struct PP_Var* _struct_result
, PP_Instance instance) { |
| 2028 const struct PPB_Font_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_Font_Dev_0_6.real
_iface; | 2026 const struct PPB_Font_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_Font_Dev_0_6.real
_iface; |
| 2029 *_struct_result = iface->GetFontFamilies(instance); | 2027 *_struct_result = iface->GetFontFamilies(instance); |
| 2030 } | 2028 } |
| 2031 | 2029 |
| 2032 static PP_Resource Pnacl_M14_PPB_Font_Dev_Create(PP_Instance instance, const str
uct PP_FontDescription_Dev* description) { | 2030 static PP_Resource Pnacl_M14_PPB_Font_Dev_Create(PP_Instance instance, const str
uct PP_FontDescription_Dev* description) { |
| 2033 const struct PPB_Font_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_Font_Dev_0_6.real
_iface; | 2031 const struct PPB_Font_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_Font_Dev_0_6.real
_iface; |
| 2034 return iface->Create(instance, description); | 2032 return iface->Create(instance, description); |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2536 | 2534 |
| 2537 /* Begin wrapper methods for PPB_FileRefPrivate_0_1 */ | 2535 /* Begin wrapper methods for PPB_FileRefPrivate_0_1 */ |
| 2538 | 2536 |
| 2539 static void Pnacl_M15_PPB_FileRefPrivate_GetAbsolutePath(struct PP_Var* _struct_
result, PP_Resource file_ref) { | 2537 static void Pnacl_M15_PPB_FileRefPrivate_GetAbsolutePath(struct PP_Var* _struct_
result, PP_Resource file_ref) { |
| 2540 const struct PPB_FileRefPrivate_0_1 *iface = Pnacl_WrapperInfo_PPB_FileRefPriv
ate_0_1.real_iface; | 2538 const struct PPB_FileRefPrivate_0_1 *iface = Pnacl_WrapperInfo_PPB_FileRefPriv
ate_0_1.real_iface; |
| 2541 *_struct_result = iface->GetAbsolutePath(file_ref); | 2539 *_struct_result = iface->GetAbsolutePath(file_ref); |
| 2542 } | 2540 } |
| 2543 | 2541 |
| 2544 /* End wrapper methods for PPB_FileRefPrivate_0_1 */ | 2542 /* End wrapper methods for PPB_FileRefPrivate_0_1 */ |
| 2545 | 2543 |
| 2544 /* Not generating wrapper methods for PPB_Find_Private_0_3 */ |
| 2545 |
| 2546 /* Begin wrapper methods for PPB_Flash_12_4 */ | 2546 /* Begin wrapper methods for PPB_Flash_12_4 */ |
| 2547 | 2547 |
| 2548 static void Pnacl_M21_PPB_Flash_SetInstanceAlwaysOnTop(PP_Instance instance, PP_
Bool on_top) { | 2548 static void Pnacl_M21_PPB_Flash_SetInstanceAlwaysOnTop(PP_Instance instance, PP_
Bool on_top) { |
| 2549 const struct PPB_Flash_12_4 *iface = Pnacl_WrapperInfo_PPB_Flash_12_4.real_ifa
ce; | 2549 const struct PPB_Flash_12_4 *iface = Pnacl_WrapperInfo_PPB_Flash_12_4.real_ifa
ce; |
| 2550 iface->SetInstanceAlwaysOnTop(instance, on_top); | 2550 iface->SetInstanceAlwaysOnTop(instance, on_top); |
| 2551 } | 2551 } |
| 2552 | 2552 |
| 2553 static PP_Bool Pnacl_M21_PPB_Flash_DrawGlyphs(PP_Instance instance, PP_Resource
pp_image_data, const struct PP_BrowserFont_Trusted_Description* font_desc, uint3
2_t color, const struct PP_Point* position, const struct PP_Rect* clip, const fl
oat transformation[3][3], PP_Bool allow_subpixel_aa, uint32_t glyph_count, const
uint16_t glyph_indices[], const struct PP_Point glyph_advances[]) { | 2553 static PP_Bool Pnacl_M21_PPB_Flash_DrawGlyphs(PP_Instance instance, PP_Resource
pp_image_data, const struct PP_BrowserFont_Trusted_Description* font_desc, uint3
2_t color, const struct PP_Point* position, const struct PP_Rect* clip, const fl
oat transformation[3][3], PP_Bool allow_subpixel_aa, uint32_t glyph_count, const
uint16_t glyph_indices[], const struct PP_Point glyph_advances[]) { |
| 2554 const struct PPB_Flash_12_4 *iface = Pnacl_WrapperInfo_PPB_Flash_12_4.real_ifa
ce; | 2554 const struct PPB_Flash_12_4 *iface = Pnacl_WrapperInfo_PPB_Flash_12_4.real_ifa
ce; |
| 2555 return iface->DrawGlyphs(instance, pp_image_data, font_desc, color, position,
clip, transformation, allow_subpixel_aa, glyph_count, glyph_indices, glyph_advan
ces); | 2555 return iface->DrawGlyphs(instance, pp_image_data, font_desc, color, position,
clip, transformation, allow_subpixel_aa, glyph_count, glyph_indices, glyph_advan
ces); |
| (...skipping 2163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4719 .Show = (int32_t (*)(PP_Resource chooser, struct PP_CompletionCallback callb
ack))&Pnacl_M16_PPB_FileChooser_Dev_Show, | 4719 .Show = (int32_t (*)(PP_Resource chooser, struct PP_CompletionCallback callb
ack))&Pnacl_M16_PPB_FileChooser_Dev_Show, |
| 4720 .GetNextChosenFile = (PP_Resource (*)(PP_Resource chooser))&Pnacl_M16_PPB_Fi
leChooser_Dev_GetNextChosenFile | 4720 .GetNextChosenFile = (PP_Resource (*)(PP_Resource chooser))&Pnacl_M16_PPB_Fi
leChooser_Dev_GetNextChosenFile |
| 4721 }; | 4721 }; |
| 4722 | 4722 |
| 4723 static const struct PPB_FileChooser_Dev_0_6 Pnacl_Wrappers_PPB_FileChooser_Dev_0
_6 = { | 4723 static const struct PPB_FileChooser_Dev_0_6 Pnacl_Wrappers_PPB_FileChooser_Dev_0
_6 = { |
| 4724 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileChooserMode_Dev mode
, struct PP_Var accept_types))&Pnacl_M19_PPB_FileChooser_Dev_Create, | 4724 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileChooserMode_Dev mode
, struct PP_Var accept_types))&Pnacl_M19_PPB_FileChooser_Dev_Create, |
| 4725 .IsFileChooser = (PP_Bool (*)(PP_Resource resource))&Pnacl_M19_PPB_FileChoos
er_Dev_IsFileChooser, | 4725 .IsFileChooser = (PP_Bool (*)(PP_Resource resource))&Pnacl_M19_PPB_FileChoos
er_Dev_IsFileChooser, |
| 4726 .Show = (int32_t (*)(PP_Resource chooser, struct PP_ArrayOutput output, stru
ct PP_CompletionCallback callback))&Pnacl_M19_PPB_FileChooser_Dev_Show | 4726 .Show = (int32_t (*)(PP_Resource chooser, struct PP_ArrayOutput output, stru
ct PP_CompletionCallback callback))&Pnacl_M19_PPB_FileChooser_Dev_Show |
| 4727 }; | 4727 }; |
| 4728 | 4728 |
| 4729 /* Not generating wrapper interface for PPB_Find_Dev_0_3 */ | |
| 4730 | |
| 4731 static const struct PPB_Font_Dev_0_6 Pnacl_Wrappers_PPB_Font_Dev_0_6 = { | 4729 static const struct PPB_Font_Dev_0_6 Pnacl_Wrappers_PPB_Font_Dev_0_6 = { |
| 4732 .GetFontFamilies = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M14_PPB_F
ont_Dev_GetFontFamilies, | 4730 .GetFontFamilies = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M14_PPB_F
ont_Dev_GetFontFamilies, |
| 4733 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_FontDescrip
tion_Dev* description))&Pnacl_M14_PPB_Font_Dev_Create, | 4731 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_FontDescrip
tion_Dev* description))&Pnacl_M14_PPB_Font_Dev_Create, |
| 4734 .IsFont = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_Font_Dev_IsFont, | 4732 .IsFont = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_Font_Dev_IsFont, |
| 4735 .Describe = (PP_Bool (*)(PP_Resource font, struct PP_FontDescription_Dev* de
scription, struct PP_FontMetrics_Dev* metrics))&Pnacl_M14_PPB_Font_Dev_Describe, | 4733 .Describe = (PP_Bool (*)(PP_Resource font, struct PP_FontDescription_Dev* de
scription, struct PP_FontMetrics_Dev* metrics))&Pnacl_M14_PPB_Font_Dev_Describe, |
| 4736 .DrawTextAt = (PP_Bool (*)(PP_Resource font, PP_Resource image_data, const s
truct PP_TextRun_Dev* text, const struct PP_Point* position, uint32_t color, con
st struct PP_Rect* clip, PP_Bool image_data_is_opaque))&Pnacl_M14_PPB_Font_Dev_D
rawTextAt, | 4734 .DrawTextAt = (PP_Bool (*)(PP_Resource font, PP_Resource image_data, const s
truct PP_TextRun_Dev* text, const struct PP_Point* position, uint32_t color, con
st struct PP_Rect* clip, PP_Bool image_data_is_opaque))&Pnacl_M14_PPB_Font_Dev_D
rawTextAt, |
| 4737 .MeasureText = (int32_t (*)(PP_Resource font, const struct PP_TextRun_Dev* t
ext))&Pnacl_M14_PPB_Font_Dev_MeasureText, | 4735 .MeasureText = (int32_t (*)(PP_Resource font, const struct PP_TextRun_Dev* t
ext))&Pnacl_M14_PPB_Font_Dev_MeasureText, |
| 4738 .CharacterOffsetForPixel = (uint32_t (*)(PP_Resource font, const struct PP_T
extRun_Dev* text, int32_t pixel_position))&Pnacl_M14_PPB_Font_Dev_CharacterOffse
tForPixel, | 4736 .CharacterOffsetForPixel = (uint32_t (*)(PP_Resource font, const struct PP_T
extRun_Dev* text, int32_t pixel_position))&Pnacl_M14_PPB_Font_Dev_CharacterOffse
tForPixel, |
| 4739 .PixelOffsetForCharacter = (int32_t (*)(PP_Resource font, const struct PP_Te
xtRun_Dev* text, uint32_t char_offset))&Pnacl_M14_PPB_Font_Dev_PixelOffsetForCha
racter | 4737 .PixelOffsetForCharacter = (int32_t (*)(PP_Resource font, const struct PP_Te
xtRun_Dev* text, uint32_t char_offset))&Pnacl_M14_PPB_Font_Dev_PixelOffsetForCha
racter |
| 4740 }; | 4738 }; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4891 }; | 4889 }; |
| 4892 | 4890 |
| 4893 static const struct PPB_FileIO_Private_0_1 Pnacl_Wrappers_PPB_FileIO_Private_0_1
= { | 4891 static const struct PPB_FileIO_Private_0_1 Pnacl_Wrappers_PPB_FileIO_Private_0_1
= { |
| 4894 .RequestOSFileHandle = (int32_t (*)(PP_Resource file_io, PP_FileHandle* hand
le, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileIO_Private_Request
OSFileHandle | 4892 .RequestOSFileHandle = (int32_t (*)(PP_Resource file_io, PP_FileHandle* hand
le, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileIO_Private_Request
OSFileHandle |
| 4895 }; | 4893 }; |
| 4896 | 4894 |
| 4897 static const struct PPB_FileRefPrivate_0_1 Pnacl_Wrappers_PPB_FileRefPrivate_0_1
= { | 4895 static const struct PPB_FileRefPrivate_0_1 Pnacl_Wrappers_PPB_FileRefPrivate_0_1
= { |
| 4898 .GetAbsolutePath = (struct PP_Var (*)(PP_Resource file_ref))&Pnacl_M15_PPB_F
ileRefPrivate_GetAbsolutePath | 4896 .GetAbsolutePath = (struct PP_Var (*)(PP_Resource file_ref))&Pnacl_M15_PPB_F
ileRefPrivate_GetAbsolutePath |
| 4899 }; | 4897 }; |
| 4900 | 4898 |
| 4899 /* Not generating wrapper interface for PPB_Find_Private_0_3 */ |
| 4900 |
| 4901 static const struct PPB_Flash_12_4 Pnacl_Wrappers_PPB_Flash_12_4 = { | 4901 static const struct PPB_Flash_12_4 Pnacl_Wrappers_PPB_Flash_12_4 = { |
| 4902 .SetInstanceAlwaysOnTop = (void (*)(PP_Instance instance, PP_Bool on_top))&P
nacl_M21_PPB_Flash_SetInstanceAlwaysOnTop, | 4902 .SetInstanceAlwaysOnTop = (void (*)(PP_Instance instance, PP_Bool on_top))&P
nacl_M21_PPB_Flash_SetInstanceAlwaysOnTop, |
| 4903 .DrawGlyphs = (PP_Bool (*)(PP_Instance instance, PP_Resource pp_image_data,
const struct PP_BrowserFont_Trusted_Description* font_desc, uint32_t color, cons
t struct PP_Point* position, const struct PP_Rect* clip, const float transformat
ion[3][3], PP_Bool allow_subpixel_aa, uint32_t glyph_count, const uint16_t glyph
_indices[], const struct PP_Point glyph_advances[]))&Pnacl_M21_PPB_Flash_DrawGly
phs, | 4903 .DrawGlyphs = (PP_Bool (*)(PP_Instance instance, PP_Resource pp_image_data,
const struct PP_BrowserFont_Trusted_Description* font_desc, uint32_t color, cons
t struct PP_Point* position, const struct PP_Rect* clip, const float transformat
ion[3][3], PP_Bool allow_subpixel_aa, uint32_t glyph_count, const uint16_t glyph
_indices[], const struct PP_Point glyph_advances[]))&Pnacl_M21_PPB_Flash_DrawGly
phs, |
| 4904 .GetProxyForURL = (struct PP_Var (*)(PP_Instance instance, const char* url))
&Pnacl_M21_PPB_Flash_GetProxyForURL, | 4904 .GetProxyForURL = (struct PP_Var (*)(PP_Instance instance, const char* url))
&Pnacl_M21_PPB_Flash_GetProxyForURL, |
| 4905 .Navigate = (int32_t (*)(PP_Resource request_info, const char* target, PP_Bo
ol from_user_action))&Pnacl_M21_PPB_Flash_Navigate, | 4905 .Navigate = (int32_t (*)(PP_Resource request_info, const char* target, PP_Bo
ol from_user_action))&Pnacl_M21_PPB_Flash_Navigate, |
| 4906 .RunMessageLoop = (void (*)(PP_Instance instance))&Pnacl_M21_PPB_Flash_RunMe
ssageLoop, | 4906 .RunMessageLoop = (void (*)(PP_Instance instance))&Pnacl_M21_PPB_Flash_RunMe
ssageLoop, |
| 4907 .QuitMessageLoop = (void (*)(PP_Instance instance))&Pnacl_M21_PPB_Flash_Quit
MessageLoop, | 4907 .QuitMessageLoop = (void (*)(PP_Instance instance))&Pnacl_M21_PPB_Flash_Quit
MessageLoop, |
| 4908 .GetLocalTimeZoneOffset = (double (*)(PP_Instance instance, PP_Time t))&Pnac
l_M21_PPB_Flash_GetLocalTimeZoneOffset, | 4908 .GetLocalTimeZoneOffset = (double (*)(PP_Instance instance, PP_Time t))&Pnac
l_M21_PPB_Flash_GetLocalTimeZoneOffset, |
| 4909 .GetCommandLineArgs = (struct PP_Var (*)(PP_Module module))&Pnacl_M21_PPB_Fl
ash_GetCommandLineArgs, | 4909 .GetCommandLineArgs = (struct PP_Var (*)(PP_Module module))&Pnacl_M21_PPB_Fl
ash_GetCommandLineArgs, |
| 4910 .PreloadFontWin = (void (*)(const void* logfontw))&Pnacl_M21_PPB_Flash_Prelo
adFontWin, | 4910 .PreloadFontWin = (void (*)(const void* logfontw))&Pnacl_M21_PPB_Flash_Prelo
adFontWin, |
| (...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6121 | 6121 |
| 6122 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ | 6122 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ |
| 6123 if (wrapper->real_iface == NULL) { | 6123 if (wrapper->real_iface == NULL) { |
| 6124 const void *iface = (*__real_PPPGetInterface)(name); | 6124 const void *iface = (*__real_PPPGetInterface)(name); |
| 6125 if (NULL == iface) return NULL; | 6125 if (NULL == iface) return NULL; |
| 6126 wrapper->real_iface = iface; | 6126 wrapper->real_iface = iface; |
| 6127 } | 6127 } |
| 6128 | 6128 |
| 6129 return wrapper->wrapped_iface; | 6129 return wrapper->wrapped_iface; |
| 6130 } | 6130 } |
| OLD | NEW |