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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 return iface->Create(instance, size, is_always_opaque); | 656 return iface->Create(instance, size, is_always_opaque); |
657 } | 657 } |
658 | 658 |
659 static __attribute__((pnaclcall)) | 659 static __attribute__((pnaclcall)) |
660 PP_Bool Pnacl_M14_PPB_Graphics2D_IsGraphics2D(PP_Resource resource) { | 660 PP_Bool Pnacl_M14_PPB_Graphics2D_IsGraphics2D(PP_Resource resource) { |
661 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0.
real_iface; | 661 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0.
real_iface; |
662 return iface->IsGraphics2D(resource); | 662 return iface->IsGraphics2D(resource); |
663 } | 663 } |
664 | 664 |
665 static __attribute__((pnaclcall)) | 665 static __attribute__((pnaclcall)) |
666 PP_Bool Pnacl_M14_PPB_Graphics2D_Describe(PP_Resource graphics_2d, struct PP_Siz
e* size, PP_Bool* is_always_opqaue) { | 666 PP_Bool Pnacl_M14_PPB_Graphics2D_Describe(PP_Resource graphics_2d, struct PP_Siz
e* size, PP_Bool* is_always_opaque) { |
667 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0.
real_iface; | 667 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0.
real_iface; |
668 return iface->Describe(graphics_2d, size, is_always_opqaue); | 668 return iface->Describe(graphics_2d, size, is_always_opaque); |
669 } | 669 } |
670 | 670 |
671 static __attribute__((pnaclcall)) | 671 static __attribute__((pnaclcall)) |
672 void Pnacl_M14_PPB_Graphics2D_PaintImageData(PP_Resource graphics_2d, PP_Resourc
e image_data, const struct PP_Point* top_left, const struct PP_Rect* src_rect) { | 672 void Pnacl_M14_PPB_Graphics2D_PaintImageData(PP_Resource graphics_2d, PP_Resourc
e image_data, const struct PP_Point* top_left, const struct PP_Rect* src_rect) { |
673 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0.
real_iface; | 673 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0.
real_iface; |
674 iface->PaintImageData(graphics_2d, image_data, top_left, src_rect); | 674 iface->PaintImageData(graphics_2d, image_data, top_left, src_rect); |
675 } | 675 } |
676 | 676 |
677 static __attribute__((pnaclcall)) | 677 static __attribute__((pnaclcall)) |
678 void Pnacl_M14_PPB_Graphics2D_Scroll(PP_Resource graphics_2d, const struct PP_Re
ct* clip_rect, const struct PP_Point* amount) { | 678 void Pnacl_M14_PPB_Graphics2D_Scroll(PP_Resource graphics_2d, const struct PP_Re
ct* clip_rect, const struct PP_Point* amount) { |
(...skipping 23 matching lines...) Expand all Loading... |
702 return iface->Create(instance, size, is_always_opaque); | 702 return iface->Create(instance, size, is_always_opaque); |
703 } | 703 } |
704 | 704 |
705 static __attribute__((pnaclcall)) | 705 static __attribute__((pnaclcall)) |
706 PP_Bool Pnacl_M27_PPB_Graphics2D_IsGraphics2D(PP_Resource resource) { | 706 PP_Bool Pnacl_M27_PPB_Graphics2D_IsGraphics2D(PP_Resource resource) { |
707 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1.
real_iface; | 707 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1.
real_iface; |
708 return iface->IsGraphics2D(resource); | 708 return iface->IsGraphics2D(resource); |
709 } | 709 } |
710 | 710 |
711 static __attribute__((pnaclcall)) | 711 static __attribute__((pnaclcall)) |
712 PP_Bool Pnacl_M27_PPB_Graphics2D_Describe(PP_Resource graphics_2d, struct PP_Siz
e* size, PP_Bool* is_always_opqaue) { | 712 PP_Bool Pnacl_M27_PPB_Graphics2D_Describe(PP_Resource graphics_2d, struct PP_Siz
e* size, PP_Bool* is_always_opaque) { |
713 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1.
real_iface; | 713 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1.
real_iface; |
714 return iface->Describe(graphics_2d, size, is_always_opqaue); | 714 return iface->Describe(graphics_2d, size, is_always_opaque); |
715 } | 715 } |
716 | 716 |
717 static __attribute__((pnaclcall)) | 717 static __attribute__((pnaclcall)) |
718 void Pnacl_M27_PPB_Graphics2D_PaintImageData(PP_Resource graphics_2d, PP_Resourc
e image_data, const struct PP_Point* top_left, const struct PP_Rect* src_rect) { | 718 void Pnacl_M27_PPB_Graphics2D_PaintImageData(PP_Resource graphics_2d, PP_Resourc
e image_data, const struct PP_Point* top_left, const struct PP_Rect* src_rect) { |
719 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1.
real_iface; | 719 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1.
real_iface; |
720 iface->PaintImageData(graphics_2d, image_data, top_left, src_rect); | 720 iface->PaintImageData(graphics_2d, image_data, top_left, src_rect); |
721 } | 721 } |
722 | 722 |
723 static __attribute__((pnaclcall)) | 723 static __attribute__((pnaclcall)) |
724 void Pnacl_M27_PPB_Graphics2D_Scroll(PP_Resource graphics_2d, const struct PP_Re
ct* clip_rect, const struct PP_Point* amount) { | 724 void Pnacl_M27_PPB_Graphics2D_Scroll(PP_Resource graphics_2d, const struct PP_Re
ct* clip_rect, const struct PP_Point* amount) { |
(...skipping 3522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4247 .GetType = (PP_FileSystemType (*)(PP_Resource file_system))&Pnacl_M14_PPB_Fi
leSystem_GetType | 4247 .GetType = (PP_FileSystemType (*)(PP_Resource file_system))&Pnacl_M14_PPB_Fi
leSystem_GetType |
4248 }; | 4248 }; |
4249 | 4249 |
4250 /* Not generating wrapper interface for PPB_Fullscreen_1_0 */ | 4250 /* Not generating wrapper interface for PPB_Fullscreen_1_0 */ |
4251 | 4251 |
4252 /* Not generating wrapper interface for PPB_Gamepad_1_0 */ | 4252 /* Not generating wrapper interface for PPB_Gamepad_1_0 */ |
4253 | 4253 |
4254 struct PPB_Graphics2D_1_0 Pnacl_Wrappers_PPB_Graphics2D_1_0 = { | 4254 struct PPB_Graphics2D_1_0 Pnacl_Wrappers_PPB_Graphics2D_1_0 = { |
4255 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_Size* size,
PP_Bool is_always_opaque))&Pnacl_M14_PPB_Graphics2D_Create, | 4255 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_Size* size,
PP_Bool is_always_opaque))&Pnacl_M14_PPB_Graphics2D_Create, |
4256 .IsGraphics2D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_Graphics2D
_IsGraphics2D, | 4256 .IsGraphics2D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_Graphics2D
_IsGraphics2D, |
4257 .Describe = (PP_Bool (*)(PP_Resource graphics_2d, struct PP_Size* size, PP_B
ool* is_always_opqaue))&Pnacl_M14_PPB_Graphics2D_Describe, | 4257 .Describe = (PP_Bool (*)(PP_Resource graphics_2d, struct PP_Size* size, PP_B
ool* is_always_opaque))&Pnacl_M14_PPB_Graphics2D_Describe, |
4258 .PaintImageData = (void (*)(PP_Resource graphics_2d, PP_Resource image_data,
const struct PP_Point* top_left, const struct PP_Rect* src_rect))&Pnacl_M14_PPB
_Graphics2D_PaintImageData, | 4258 .PaintImageData = (void (*)(PP_Resource graphics_2d, PP_Resource image_data,
const struct PP_Point* top_left, const struct PP_Rect* src_rect))&Pnacl_M14_PPB
_Graphics2D_PaintImageData, |
4259 .Scroll = (void (*)(PP_Resource graphics_2d, const struct PP_Rect* clip_rect
, const struct PP_Point* amount))&Pnacl_M14_PPB_Graphics2D_Scroll, | 4259 .Scroll = (void (*)(PP_Resource graphics_2d, const struct PP_Rect* clip_rect
, const struct PP_Point* amount))&Pnacl_M14_PPB_Graphics2D_Scroll, |
4260 .ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data
))&Pnacl_M14_PPB_Graphics2D_ReplaceContents, | 4260 .ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data
))&Pnacl_M14_PPB_Graphics2D_ReplaceContents, |
4261 .Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback
callback))&Pnacl_M14_PPB_Graphics2D_Flush | 4261 .Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback
callback))&Pnacl_M14_PPB_Graphics2D_Flush |
4262 }; | 4262 }; |
4263 | 4263 |
4264 struct PPB_Graphics2D_1_1 Pnacl_Wrappers_PPB_Graphics2D_1_1 = { | 4264 struct PPB_Graphics2D_1_1 Pnacl_Wrappers_PPB_Graphics2D_1_1 = { |
4265 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_Size* size,
PP_Bool is_always_opaque))&Pnacl_M27_PPB_Graphics2D_Create, | 4265 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_Size* size,
PP_Bool is_always_opaque))&Pnacl_M27_PPB_Graphics2D_Create, |
4266 .IsGraphics2D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D
_IsGraphics2D, | 4266 .IsGraphics2D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D
_IsGraphics2D, |
4267 .Describe = (PP_Bool (*)(PP_Resource graphics_2d, struct PP_Size* size, PP_B
ool* is_always_opqaue))&Pnacl_M27_PPB_Graphics2D_Describe, | 4267 .Describe = (PP_Bool (*)(PP_Resource graphics_2d, struct PP_Size* size, PP_B
ool* is_always_opaque))&Pnacl_M27_PPB_Graphics2D_Describe, |
4268 .PaintImageData = (void (*)(PP_Resource graphics_2d, PP_Resource image_data,
const struct PP_Point* top_left, const struct PP_Rect* src_rect))&Pnacl_M27_PPB
_Graphics2D_PaintImageData, | 4268 .PaintImageData = (void (*)(PP_Resource graphics_2d, PP_Resource image_data,
const struct PP_Point* top_left, const struct PP_Rect* src_rect))&Pnacl_M27_PPB
_Graphics2D_PaintImageData, |
4269 .Scroll = (void (*)(PP_Resource graphics_2d, const struct PP_Rect* clip_rect
, const struct PP_Point* amount))&Pnacl_M27_PPB_Graphics2D_Scroll, | 4269 .Scroll = (void (*)(PP_Resource graphics_2d, const struct PP_Rect* clip_rect
, const struct PP_Point* amount))&Pnacl_M27_PPB_Graphics2D_Scroll, |
4270 .ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data
))&Pnacl_M27_PPB_Graphics2D_ReplaceContents, | 4270 .ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data
))&Pnacl_M27_PPB_Graphics2D_ReplaceContents, |
4271 .Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback
callback))&Pnacl_M27_PPB_Graphics2D_Flush, | 4271 .Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback
callback))&Pnacl_M27_PPB_Graphics2D_Flush, |
4272 .SetScale = (PP_Bool (*)(PP_Resource resource, float scale))&Pnacl_M27_PPB_G
raphics2D_SetScale, | 4272 .SetScale = (PP_Bool (*)(PP_Resource resource, float scale))&Pnacl_M27_PPB_G
raphics2D_SetScale, |
4273 .GetScale = (float (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D_GetSc
ale | 4273 .GetScale = (float (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D_GetSc
ale |
4274 }; | 4274 }; |
4275 | 4275 |
4276 struct PPB_Graphics3D_1_0 Pnacl_Wrappers_PPB_Graphics3D_1_0 = { | 4276 struct PPB_Graphics3D_1_0 Pnacl_Wrappers_PPB_Graphics3D_1_0 = { |
4277 .GetAttribMaxValue = (int32_t (*)(PP_Resource instance, int32_t attribute, i
nt32_t* value))&Pnacl_M15_PPB_Graphics3D_GetAttribMaxValue, | 4277 .GetAttribMaxValue = (int32_t (*)(PP_Resource instance, int32_t attribute, i
nt32_t* value))&Pnacl_M15_PPB_Graphics3D_GetAttribMaxValue, |
(...skipping 1965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6243 } | 6243 } |
6244 | 6244 |
6245 if (wrapper->wrapped_iface) { | 6245 if (wrapper->wrapped_iface) { |
6246 return wrapper->wrapped_iface; | 6246 return wrapper->wrapped_iface; |
6247 } else { | 6247 } else { |
6248 return wrapper->real_iface; | 6248 return wrapper->real_iface; |
6249 } | 6249 } |
6250 } | 6250 } |
6251 | 6251 |
6252 #endif | 6252 #endif |
OLD | NEW |