Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c

Issue 12989006: Move HiDPI-related Pepper interfaces to stable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Win build, add test Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioConfig_1_1; 136 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioConfig_1_1;
137 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Console_1_0; 137 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Console_1_0;
138 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0; 138 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0;
139 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0; 139 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0;
140 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_1; 140 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_1;
141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_0; 141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_0;
142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileSystem_1_0; 142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileSystem_1_0;
143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Fullscreen_1_0; 143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Fullscreen_1_0;
144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Gamepad_1_0; 144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Gamepad_1_0;
145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0; 145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0;
146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_1;
146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3D_1_0; 147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3D_1_0;
147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ImageData_1_0; 148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ImageData_1_0;
148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_InputEvent_1_0; 149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_InputEvent_1_0;
149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0; 150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0;
150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1; 151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1;
151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0; 152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0;
152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0; 153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0;
153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0; 154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0;
154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Instance_1_0; 155 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Instance_1_0;
155 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MessageLoop_1_0; 156 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MessageLoop_1_0;
156 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Messaging_1_0; 157 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Messaging_1_0;
157 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseCursor_1_0; 158 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseCursor_1_0;
158 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseLock_1_0; 159 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseLock_1_0;
159 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0; 160 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0;
160 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0; 161 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0;
161 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0; 162 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0;
162 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_0; 163 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_0;
163 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1; 164 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1;
164 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0; 165 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0;
165 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_1_0; 166 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_1_0;
167 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_1_1;
166 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0; 168 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0;
167 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Graphics3D_1_0; 169 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Graphics3D_1_0;
168 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_InputEvent_0_1; 170 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_InputEvent_0_1;
169 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_1_0; 171 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_1_0;
170 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_1_1; 172 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_1_1;
171 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0; 173 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0;
172 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_MouseLock_1_0; 174 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_MouseLock_1_0;
173 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioTrusted_0_6; 175 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioTrusted_0_6;
174 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_BrokerTrusted_0_2; 176 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_BrokerTrusted_0_2;
175 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_BrokerTrusted_0_3; 177 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_BrokerTrusted_0_3;
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 } 608 }
607 609
608 static __attribute__((pnaclcall)) 610 static __attribute__((pnaclcall))
609 int32_t Pnacl_M14_PPB_Graphics2D_Flush(PP_Resource graphics_2d, struct PP_Comple tionCallback callback) { 611 int32_t Pnacl_M14_PPB_Graphics2D_Flush(PP_Resource graphics_2d, struct PP_Comple tionCallback callback) {
610 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0. real_iface; 612 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0. real_iface;
611 return iface->Flush(graphics_2d, callback); 613 return iface->Flush(graphics_2d, callback);
612 } 614 }
613 615
614 /* End wrapper methods for PPB_Graphics2D_1_0 */ 616 /* End wrapper methods for PPB_Graphics2D_1_0 */
615 617
618 /* Begin wrapper methods for PPB_Graphics2D_1_1 */
619
620 static __attribute__((pnaclcall))
621 PP_Resource Pnacl_M27_PPB_Graphics2D_Create(PP_Instance instance, const struct P P_Size* size, PP_Bool is_always_opaque) {
622 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
623 return iface->Create(instance, size, is_always_opaque);
624 }
625
626 static __attribute__((pnaclcall))
627 PP_Bool Pnacl_M27_PPB_Graphics2D_IsGraphics2D(PP_Resource resource) {
628 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
629 return iface->IsGraphics2D(resource);
630 }
631
632 static __attribute__((pnaclcall))
633 PP_Bool Pnacl_M27_PPB_Graphics2D_Describe(PP_Resource graphics_2d, struct PP_Siz e* size, PP_Bool* is_always_opqaue) {
634 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
635 return iface->Describe(graphics_2d, size, is_always_opqaue);
636 }
637
638 static __attribute__((pnaclcall))
639 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) {
640 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
641 iface->PaintImageData(graphics_2d, image_data, top_left, src_rect);
642 }
643
644 static __attribute__((pnaclcall))
645 void Pnacl_M27_PPB_Graphics2D_Scroll(PP_Resource graphics_2d, const struct PP_Re ct* clip_rect, const struct PP_Point* amount) {
646 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
647 iface->Scroll(graphics_2d, clip_rect, amount);
648 }
649
650 static __attribute__((pnaclcall))
651 void Pnacl_M27_PPB_Graphics2D_ReplaceContents(PP_Resource graphics_2d, PP_Resour ce image_data) {
652 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
653 iface->ReplaceContents(graphics_2d, image_data);
654 }
655
656 static __attribute__((pnaclcall))
657 int32_t Pnacl_M27_PPB_Graphics2D_Flush(PP_Resource graphics_2d, struct PP_Comple tionCallback callback) {
658 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
659 return iface->Flush(graphics_2d, callback);
660 }
661
662 static __attribute__((pnaclcall))
663 PP_Bool Pnacl_M27_PPB_Graphics2D_SetScale(PP_Resource resource, float scale) {
664 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
665 return iface->SetScale(resource, scale);
666 }
667
668 static __attribute__((pnaclcall))
669 float Pnacl_M27_PPB_Graphics2D_GetScale(PP_Resource resource) {
670 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
671 return iface->GetScale(resource);
672 }
673
674 /* End wrapper methods for PPB_Graphics2D_1_1 */
675
616 /* Begin wrapper methods for PPB_Graphics3D_1_0 */ 676 /* Begin wrapper methods for PPB_Graphics3D_1_0 */
617 677
618 static __attribute__((pnaclcall)) 678 static __attribute__((pnaclcall))
619 int32_t Pnacl_M15_PPB_Graphics3D_GetAttribMaxValue(PP_Resource instance, int32_t attribute, int32_t* value) { 679 int32_t Pnacl_M15_PPB_Graphics3D_GetAttribMaxValue(PP_Resource instance, int32_t attribute, int32_t* value) {
620 const struct PPB_Graphics3D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics3D_1_0. real_iface; 680 const struct PPB_Graphics3D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics3D_1_0. real_iface;
621 return iface->GetAttribMaxValue(instance, attribute, value); 681 return iface->GetAttribMaxValue(instance, attribute, value);
622 } 682 }
623 683
624 static __attribute__((pnaclcall)) 684 static __attribute__((pnaclcall))
625 PP_Resource Pnacl_M15_PPB_Graphics3D_Create(PP_Instance instance, PP_Resource sh are_context, const int32_t attrib_list[]) { 685 PP_Resource Pnacl_M15_PPB_Graphics3D_Create(PP_Instance instance, PP_Resource sh are_context, const int32_t attrib_list[]) {
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 static __attribute__((pnaclcall)) 1180 static __attribute__((pnaclcall))
1121 void Pnacl_M18_PPB_VarArrayBuffer_Unmap(struct PP_Var array) { 1181 void Pnacl_M18_PPB_VarArrayBuffer_Unmap(struct PP_Var array) {
1122 const struct PPB_VarArrayBuffer_1_0 *iface = Pnacl_WrapperInfo_PPB_VarArrayBuf fer_1_0.real_iface; 1182 const struct PPB_VarArrayBuffer_1_0 *iface = Pnacl_WrapperInfo_PPB_VarArrayBuf fer_1_0.real_iface;
1123 iface->Unmap(array); 1183 iface->Unmap(array);
1124 } 1184 }
1125 1185
1126 /* End wrapper methods for PPB_VarArrayBuffer_1_0 */ 1186 /* End wrapper methods for PPB_VarArrayBuffer_1_0 */
1127 1187
1128 /* Not generating wrapper methods for PPB_View_1_0 */ 1188 /* Not generating wrapper methods for PPB_View_1_0 */
1129 1189
1190 /* Not generating wrapper methods for PPB_View_1_1 */
1191
1130 /* Begin wrapper methods for PPB_WebSocket_1_0 */ 1192 /* Begin wrapper methods for PPB_WebSocket_1_0 */
1131 1193
1132 static __attribute__((pnaclcall)) 1194 static __attribute__((pnaclcall))
1133 PP_Resource Pnacl_M18_PPB_WebSocket_Create(PP_Instance instance) { 1195 PP_Resource Pnacl_M18_PPB_WebSocket_Create(PP_Instance instance) {
1134 const struct PPB_WebSocket_1_0 *iface = Pnacl_WrapperInfo_PPB_WebSocket_1_0.re al_iface; 1196 const struct PPB_WebSocket_1_0 *iface = Pnacl_WrapperInfo_PPB_WebSocket_1_0.re al_iface;
1135 return iface->Create(instance); 1197 return iface->Create(instance);
1136 } 1198 }
1137 1199
1138 static __attribute__((pnaclcall)) 1200 static __attribute__((pnaclcall))
1139 PP_Bool Pnacl_M18_PPB_WebSocket_IsWebSocket(PP_Resource resource) { 1201 PP_Bool Pnacl_M18_PPB_WebSocket_IsWebSocket(PP_Resource resource) {
(...skipping 2725 matching lines...) Expand 10 before | Expand all | Expand 10 after
3865 struct PPB_Graphics2D_1_0 Pnacl_Wrappers_PPB_Graphics2D_1_0 = { 3927 struct PPB_Graphics2D_1_0 Pnacl_Wrappers_PPB_Graphics2D_1_0 = {
3866 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_Size* size, PP_Bool is_always_opaque))&Pnacl_M14_PPB_Graphics2D_Create, 3928 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_Size* size, PP_Bool is_always_opaque))&Pnacl_M14_PPB_Graphics2D_Create,
3867 .IsGraphics2D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_Graphics2D _IsGraphics2D, 3929 .IsGraphics2D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_Graphics2D _IsGraphics2D,
3868 .Describe = (PP_Bool (*)(PP_Resource graphics_2d, struct PP_Size* size, PP_B ool* is_always_opqaue))&Pnacl_M14_PPB_Graphics2D_Describe, 3930 .Describe = (PP_Bool (*)(PP_Resource graphics_2d, struct PP_Size* size, PP_B ool* is_always_opqaue))&Pnacl_M14_PPB_Graphics2D_Describe,
3869 .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, 3931 .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,
3870 .Scroll = (void (*)(PP_Resource graphics_2d, const struct PP_Rect* clip_rect , const struct PP_Point* amount))&Pnacl_M14_PPB_Graphics2D_Scroll, 3932 .Scroll = (void (*)(PP_Resource graphics_2d, const struct PP_Rect* clip_rect , const struct PP_Point* amount))&Pnacl_M14_PPB_Graphics2D_Scroll,
3871 .ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data ))&Pnacl_M14_PPB_Graphics2D_ReplaceContents, 3933 .ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data ))&Pnacl_M14_PPB_Graphics2D_ReplaceContents,
3872 .Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_Graphics2D_Flush 3934 .Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_Graphics2D_Flush
3873 }; 3935 };
3874 3936
3937 struct PPB_Graphics2D_1_1 Pnacl_Wrappers_PPB_Graphics2D_1_1 = {
3938 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_Size* size, PP_Bool is_always_opaque))&Pnacl_M27_PPB_Graphics2D_Create,
3939 .IsGraphics2D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D _IsGraphics2D,
3940 .Describe = (PP_Bool (*)(PP_Resource graphics_2d, struct PP_Size* size, PP_B ool* is_always_opqaue))&Pnacl_M27_PPB_Graphics2D_Describe,
3941 .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,
3942 .Scroll = (void (*)(PP_Resource graphics_2d, const struct PP_Rect* clip_rect , const struct PP_Point* amount))&Pnacl_M27_PPB_Graphics2D_Scroll,
3943 .ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data ))&Pnacl_M27_PPB_Graphics2D_ReplaceContents,
3944 .Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback callback))&Pnacl_M27_PPB_Graphics2D_Flush,
3945 .SetScale = (PP_Bool (*)(PP_Resource resource, float scale))&Pnacl_M27_PPB_G raphics2D_SetScale,
3946 .GetScale = (float (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D_GetSc ale
3947 };
3948
3875 struct PPB_Graphics3D_1_0 Pnacl_Wrappers_PPB_Graphics3D_1_0 = { 3949 struct PPB_Graphics3D_1_0 Pnacl_Wrappers_PPB_Graphics3D_1_0 = {
3876 .GetAttribMaxValue = (int32_t (*)(PP_Resource instance, int32_t attribute, i nt32_t* value))&Pnacl_M15_PPB_Graphics3D_GetAttribMaxValue, 3950 .GetAttribMaxValue = (int32_t (*)(PP_Resource instance, int32_t attribute, i nt32_t* value))&Pnacl_M15_PPB_Graphics3D_GetAttribMaxValue,
3877 .Create = (PP_Resource (*)(PP_Instance instance, PP_Resource share_context, const int32_t attrib_list[]))&Pnacl_M15_PPB_Graphics3D_Create, 3951 .Create = (PP_Resource (*)(PP_Instance instance, PP_Resource share_context, const int32_t attrib_list[]))&Pnacl_M15_PPB_Graphics3D_Create,
3878 .IsGraphics3D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M15_PPB_Graphics3D _IsGraphics3D, 3952 .IsGraphics3D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M15_PPB_Graphics3D _IsGraphics3D,
3879 .GetAttribs = (int32_t (*)(PP_Resource context, int32_t attrib_list[]))&Pnac l_M15_PPB_Graphics3D_GetAttribs, 3953 .GetAttribs = (int32_t (*)(PP_Resource context, int32_t attrib_list[]))&Pnac l_M15_PPB_Graphics3D_GetAttribs,
3880 .SetAttribs = (int32_t (*)(PP_Resource context, const int32_t attrib_list[]) )&Pnacl_M15_PPB_Graphics3D_SetAttribs, 3954 .SetAttribs = (int32_t (*)(PP_Resource context, const int32_t attrib_list[]) )&Pnacl_M15_PPB_Graphics3D_SetAttribs,
3881 .GetError = (int32_t (*)(PP_Resource context))&Pnacl_M15_PPB_Graphics3D_GetE rror, 3955 .GetError = (int32_t (*)(PP_Resource context))&Pnacl_M15_PPB_Graphics3D_GetE rror,
3882 .ResizeBuffers = (int32_t (*)(PP_Resource context, int32_t width, int32_t he ight))&Pnacl_M15_PPB_Graphics3D_ResizeBuffers, 3956 .ResizeBuffers = (int32_t (*)(PP_Resource context, int32_t width, int32_t he ight))&Pnacl_M15_PPB_Graphics3D_ResizeBuffers,
3883 .SwapBuffers = (int32_t (*)(PP_Resource context, struct PP_CompletionCallbac k callback))&Pnacl_M15_PPB_Graphics3D_SwapBuffers 3957 .SwapBuffers = (int32_t (*)(PP_Resource context, struct PP_CompletionCallbac k callback))&Pnacl_M15_PPB_Graphics3D_SwapBuffers
3884 }; 3958 };
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
3994 4068
3995 struct PPB_VarArrayBuffer_1_0 Pnacl_Wrappers_PPB_VarArrayBuffer_1_0 = { 4069 struct PPB_VarArrayBuffer_1_0 Pnacl_Wrappers_PPB_VarArrayBuffer_1_0 = {
3996 .Create = (struct PP_Var (*)(uint32_t size_in_bytes))&Pnacl_M18_PPB_VarArray Buffer_Create, 4070 .Create = (struct PP_Var (*)(uint32_t size_in_bytes))&Pnacl_M18_PPB_VarArray Buffer_Create,
3997 .ByteLength = (PP_Bool (*)(struct PP_Var array, uint32_t* byte_length))&Pnac l_M18_PPB_VarArrayBuffer_ByteLength, 4071 .ByteLength = (PP_Bool (*)(struct PP_Var array, uint32_t* byte_length))&Pnac l_M18_PPB_VarArrayBuffer_ByteLength,
3998 .Map = (void* (*)(struct PP_Var array))&Pnacl_M18_PPB_VarArrayBuffer_Map, 4072 .Map = (void* (*)(struct PP_Var array))&Pnacl_M18_PPB_VarArrayBuffer_Map,
3999 .Unmap = (void (*)(struct PP_Var array))&Pnacl_M18_PPB_VarArrayBuffer_Unmap 4073 .Unmap = (void (*)(struct PP_Var array))&Pnacl_M18_PPB_VarArrayBuffer_Unmap
4000 }; 4074 };
4001 4075
4002 /* Not generating wrapper interface for PPB_View_1_0 */ 4076 /* Not generating wrapper interface for PPB_View_1_0 */
4003 4077
4078 /* Not generating wrapper interface for PPB_View_1_1 */
4079
4004 struct PPB_WebSocket_1_0 Pnacl_Wrappers_PPB_WebSocket_1_0 = { 4080 struct PPB_WebSocket_1_0 Pnacl_Wrappers_PPB_WebSocket_1_0 = {
4005 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M18_PPB_WebSocket_Cr eate, 4081 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M18_PPB_WebSocket_Cr eate,
4006 .IsWebSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M18_PPB_WebSocket_I sWebSocket, 4082 .IsWebSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M18_PPB_WebSocket_I sWebSocket,
4007 .Connect = (int32_t (*)(PP_Resource web_socket, struct PP_Var url, const str uct PP_Var protocols[], uint32_t protocol_count, struct PP_CompletionCallback ca llback))&Pnacl_M18_PPB_WebSocket_Connect, 4083 .Connect = (int32_t (*)(PP_Resource web_socket, struct PP_Var url, const str uct PP_Var protocols[], uint32_t protocol_count, struct PP_CompletionCallback ca llback))&Pnacl_M18_PPB_WebSocket_Connect,
4008 .Close = (int32_t (*)(PP_Resource web_socket, uint16_t code, struct PP_Var r eason, struct PP_CompletionCallback callback))&Pnacl_M18_PPB_WebSocket_Close, 4084 .Close = (int32_t (*)(PP_Resource web_socket, uint16_t code, struct PP_Var r eason, struct PP_CompletionCallback callback))&Pnacl_M18_PPB_WebSocket_Close,
4009 .ReceiveMessage = (int32_t (*)(PP_Resource web_socket, struct PP_Var* messag e, struct PP_CompletionCallback callback))&Pnacl_M18_PPB_WebSocket_ReceiveMessag e, 4085 .ReceiveMessage = (int32_t (*)(PP_Resource web_socket, struct PP_Var* messag e, struct PP_CompletionCallback callback))&Pnacl_M18_PPB_WebSocket_ReceiveMessag e,
4010 .SendMessage = (int32_t (*)(PP_Resource web_socket, struct PP_Var message))& Pnacl_M18_PPB_WebSocket_SendMessage, 4086 .SendMessage = (int32_t (*)(PP_Resource web_socket, struct PP_Var message))& Pnacl_M18_PPB_WebSocket_SendMessage,
4011 .GetBufferedAmount = (uint64_t (*)(PP_Resource web_socket))&Pnacl_M18_PPB_We bSocket_GetBufferedAmount, 4087 .GetBufferedAmount = (uint64_t (*)(PP_Resource web_socket))&Pnacl_M18_PPB_We bSocket_GetBufferedAmount,
4012 .GetCloseCode = (uint16_t (*)(PP_Resource web_socket))&Pnacl_M18_PPB_WebSock et_GetCloseCode, 4088 .GetCloseCode = (uint16_t (*)(PP_Resource web_socket))&Pnacl_M18_PPB_WebSock et_GetCloseCode,
4013 .GetCloseReason = (struct PP_Var (*)(PP_Resource web_socket))&Pnacl_M18_PPB_ WebSocket_GetCloseReason, 4089 .GetCloseReason = (struct PP_Var (*)(PP_Resource web_socket))&Pnacl_M18_PPB_ WebSocket_GetCloseReason,
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
4734 .wrapped_iface = NULL /* Still need slot for real_iface */, 4810 .wrapped_iface = NULL /* Still need slot for real_iface */,
4735 .real_iface = NULL 4811 .real_iface = NULL
4736 }; 4812 };
4737 4813
4738 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0 = { 4814 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0 = {
4739 .iface_macro = PPB_GRAPHICS_2D_INTERFACE_1_0, 4815 .iface_macro = PPB_GRAPHICS_2D_INTERFACE_1_0,
4740 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Graphics2D_1_0, 4816 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Graphics2D_1_0,
4741 .real_iface = NULL 4817 .real_iface = NULL
4742 }; 4818 };
4743 4819
4820 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_1 = {
4821 .iface_macro = PPB_GRAPHICS_2D_INTERFACE_1_1,
4822 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Graphics2D_1_1,
4823 .real_iface = NULL
4824 };
4825
4744 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3D_1_0 = { 4826 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3D_1_0 = {
4745 .iface_macro = PPB_GRAPHICS_3D_INTERFACE_1_0, 4827 .iface_macro = PPB_GRAPHICS_3D_INTERFACE_1_0,
4746 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Graphics3D_1_0, 4828 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Graphics3D_1_0,
4747 .real_iface = NULL 4829 .real_iface = NULL
4748 }; 4830 };
4749 4831
4750 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ImageData_1_0 = { 4832 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ImageData_1_0 = {
4751 .iface_macro = PPB_IMAGEDATA_INTERFACE_1_0, 4833 .iface_macro = PPB_IMAGEDATA_INTERFACE_1_0,
4752 .wrapped_iface = NULL /* Still need slot for real_iface */, 4834 .wrapped_iface = NULL /* Still need slot for real_iface */,
4753 .real_iface = NULL 4835 .real_iface = NULL
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
4854 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VarArrayBuffer_1_0, 4936 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VarArrayBuffer_1_0,
4855 .real_iface = NULL 4937 .real_iface = NULL
4856 }; 4938 };
4857 4939
4858 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_1_0 = { 4940 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_1_0 = {
4859 .iface_macro = PPB_VIEW_INTERFACE_1_0, 4941 .iface_macro = PPB_VIEW_INTERFACE_1_0,
4860 .wrapped_iface = NULL /* Still need slot for real_iface */, 4942 .wrapped_iface = NULL /* Still need slot for real_iface */,
4861 .real_iface = NULL 4943 .real_iface = NULL
4862 }; 4944 };
4863 4945
4946 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_1_1 = {
4947 .iface_macro = PPB_VIEW_INTERFACE_1_1,
4948 .wrapped_iface = NULL /* Still need slot for real_iface */,
4949 .real_iface = NULL
4950 };
4951
4864 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0 = { 4952 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0 = {
4865 .iface_macro = PPB_WEBSOCKET_INTERFACE_1_0, 4953 .iface_macro = PPB_WEBSOCKET_INTERFACE_1_0,
4866 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_WebSocket_1_0, 4954 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_WebSocket_1_0,
4867 .real_iface = NULL 4955 .real_iface = NULL
4868 }; 4956 };
4869 4957
4870 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Graphics3D_1_0 = { 4958 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Graphics3D_1_0 = {
4871 .iface_macro = PPP_GRAPHICS_3D_INTERFACE_1_0, 4959 .iface_macro = PPP_GRAPHICS_3D_INTERFACE_1_0,
4872 .wrapped_iface = NULL /* Still need slot for real_iface */, 4960 .wrapped_iface = NULL /* Still need slot for real_iface */,
4873 .real_iface = NULL 4961 .real_iface = NULL
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
5527 &Pnacl_WrapperInfo_PPB_AudioConfig_1_1, 5615 &Pnacl_WrapperInfo_PPB_AudioConfig_1_1,
5528 &Pnacl_WrapperInfo_PPB_Console_1_0, 5616 &Pnacl_WrapperInfo_PPB_Console_1_0,
5529 &Pnacl_WrapperInfo_PPB_Core_1_0, 5617 &Pnacl_WrapperInfo_PPB_Core_1_0,
5530 &Pnacl_WrapperInfo_PPB_FileIO_1_0, 5618 &Pnacl_WrapperInfo_PPB_FileIO_1_0,
5531 &Pnacl_WrapperInfo_PPB_FileIO_1_1, 5619 &Pnacl_WrapperInfo_PPB_FileIO_1_1,
5532 &Pnacl_WrapperInfo_PPB_FileRef_1_0, 5620 &Pnacl_WrapperInfo_PPB_FileRef_1_0,
5533 &Pnacl_WrapperInfo_PPB_FileSystem_1_0, 5621 &Pnacl_WrapperInfo_PPB_FileSystem_1_0,
5534 &Pnacl_WrapperInfo_PPB_Fullscreen_1_0, 5622 &Pnacl_WrapperInfo_PPB_Fullscreen_1_0,
5535 &Pnacl_WrapperInfo_PPB_Gamepad_1_0, 5623 &Pnacl_WrapperInfo_PPB_Gamepad_1_0,
5536 &Pnacl_WrapperInfo_PPB_Graphics2D_1_0, 5624 &Pnacl_WrapperInfo_PPB_Graphics2D_1_0,
5625 &Pnacl_WrapperInfo_PPB_Graphics2D_1_1,
5537 &Pnacl_WrapperInfo_PPB_Graphics3D_1_0, 5626 &Pnacl_WrapperInfo_PPB_Graphics3D_1_0,
5538 &Pnacl_WrapperInfo_PPB_ImageData_1_0, 5627 &Pnacl_WrapperInfo_PPB_ImageData_1_0,
5539 &Pnacl_WrapperInfo_PPB_InputEvent_1_0, 5628 &Pnacl_WrapperInfo_PPB_InputEvent_1_0,
5540 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0, 5629 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0,
5541 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1, 5630 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1,
5542 &Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0, 5631 &Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0,
5543 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0, 5632 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0,
5544 &Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0, 5633 &Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0,
5545 &Pnacl_WrapperInfo_PPB_Instance_1_0, 5634 &Pnacl_WrapperInfo_PPB_Instance_1_0,
5546 &Pnacl_WrapperInfo_PPB_MessageLoop_1_0, 5635 &Pnacl_WrapperInfo_PPB_MessageLoop_1_0,
5547 &Pnacl_WrapperInfo_PPB_Messaging_1_0, 5636 &Pnacl_WrapperInfo_PPB_Messaging_1_0,
5548 &Pnacl_WrapperInfo_PPB_MouseCursor_1_0, 5637 &Pnacl_WrapperInfo_PPB_MouseCursor_1_0,
5549 &Pnacl_WrapperInfo_PPB_MouseLock_1_0, 5638 &Pnacl_WrapperInfo_PPB_MouseLock_1_0,
5550 &Pnacl_WrapperInfo_PPB_URLLoader_1_0, 5639 &Pnacl_WrapperInfo_PPB_URLLoader_1_0,
5551 &Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0, 5640 &Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0,
5552 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0, 5641 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0,
5553 &Pnacl_WrapperInfo_PPB_Var_1_0, 5642 &Pnacl_WrapperInfo_PPB_Var_1_0,
5554 &Pnacl_WrapperInfo_PPB_Var_1_1, 5643 &Pnacl_WrapperInfo_PPB_Var_1_1,
5555 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0, 5644 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0,
5556 &Pnacl_WrapperInfo_PPB_View_1_0, 5645 &Pnacl_WrapperInfo_PPB_View_1_0,
5646 &Pnacl_WrapperInfo_PPB_View_1_1,
5557 &Pnacl_WrapperInfo_PPB_WebSocket_1_0, 5647 &Pnacl_WrapperInfo_PPB_WebSocket_1_0,
5558 &Pnacl_WrapperInfo_PPB_AudioTrusted_0_6, 5648 &Pnacl_WrapperInfo_PPB_AudioTrusted_0_6,
5559 &Pnacl_WrapperInfo_PPB_BrokerTrusted_0_2, 5649 &Pnacl_WrapperInfo_PPB_BrokerTrusted_0_2,
5560 &Pnacl_WrapperInfo_PPB_BrokerTrusted_0_3, 5650 &Pnacl_WrapperInfo_PPB_BrokerTrusted_0_3,
5561 &Pnacl_WrapperInfo_PPB_BrowserFont_Trusted_1_0, 5651 &Pnacl_WrapperInfo_PPB_BrowserFont_Trusted_1_0,
5562 &Pnacl_WrapperInfo_PPB_BufferTrusted_0_1, 5652 &Pnacl_WrapperInfo_PPB_BufferTrusted_0_1,
5563 &Pnacl_WrapperInfo_PPB_CharSet_Trusted_1_0, 5653 &Pnacl_WrapperInfo_PPB_CharSet_Trusted_1_0,
5564 &Pnacl_WrapperInfo_PPB_FileChooserTrusted_0_5, 5654 &Pnacl_WrapperInfo_PPB_FileChooserTrusted_0_5,
5565 &Pnacl_WrapperInfo_PPB_FileChooserTrusted_0_6, 5655 &Pnacl_WrapperInfo_PPB_FileChooserTrusted_0_6,
5566 &Pnacl_WrapperInfo_PPB_FileIOTrusted_0_4, 5656 &Pnacl_WrapperInfo_PPB_FileIOTrusted_0_4,
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
5742 } 5832 }
5743 5833
5744 if (wrapper->wrapped_iface) { 5834 if (wrapper->wrapped_iface) {
5745 return wrapper->wrapped_iface; 5835 return wrapper->wrapped_iface;
5746 } else { 5836 } else {
5747 return wrapper->real_iface; 5837 return wrapper->real_iface;
5748 } 5838 }
5749 } 5839 }
5750 5840
5751 #endif 5841 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698