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

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: Rebase Created 7 years, 8 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
« no previous file with comments | « ppapi/examples/scaling/scaling.html ('k') | ppapi/ppapi_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Console_1_0; 141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Console_1_0;
142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0; 142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0;
143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0; 143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0;
144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_1; 144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_1;
145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_0; 145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_0;
146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1; 146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1;
147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileSystem_1_0; 147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileSystem_1_0;
148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Fullscreen_1_0; 148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Fullscreen_1_0;
149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Gamepad_1_0; 149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Gamepad_1_0;
150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0; 150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0;
151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_1;
151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3D_1_0; 152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3D_1_0;
152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ImageData_1_0; 153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ImageData_1_0;
153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_InputEvent_1_0; 154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_InputEvent_1_0;
154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0; 155 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0;
155 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1; 156 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1;
156 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0; 157 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0;
157 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0; 158 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0;
158 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0; 159 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0;
159 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Instance_1_0; 160 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Instance_1_0;
160 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MessageLoop_1_0; 161 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MessageLoop_1_0;
161 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Messaging_1_0; 162 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Messaging_1_0;
162 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseCursor_1_0; 163 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseCursor_1_0;
163 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseLock_1_0; 164 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseLock_1_0;
164 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0; 165 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLLoader_1_0;
165 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0; 166 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0;
166 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0; 167 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0;
167 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_0; 168 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_0;
168 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1; 169 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Var_1_1;
169 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0; 170 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0;
170 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoReader_0_1; 171 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoReader_0_1;
171 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoWriter_0_1; 172 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoWriter_0_1;
172 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_1_0; 173 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_1_0;
174 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_1_1;
173 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0; 175 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0;
174 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Graphics3D_1_0; 176 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Graphics3D_1_0;
175 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_InputEvent_0_1; 177 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_InputEvent_0_1;
176 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_1_0; 178 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_1_0;
177 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_1_1; 179 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Instance_1_1;
178 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0; 180 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Messaging_1_0;
179 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_MouseLock_1_0; 181 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_MouseLock_1_0;
180 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioTrusted_0_6; 182 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_AudioTrusted_0_6;
181 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_BrokerTrusted_0_2; 183 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_BrokerTrusted_0_2;
182 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_BrokerTrusted_0_3; 184 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_BrokerTrusted_0_3;
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 } 687 }
686 688
687 static __attribute__((pnaclcall)) 689 static __attribute__((pnaclcall))
688 int32_t Pnacl_M14_PPB_Graphics2D_Flush(PP_Resource graphics_2d, struct PP_Comple tionCallback callback) { 690 int32_t Pnacl_M14_PPB_Graphics2D_Flush(PP_Resource graphics_2d, struct PP_Comple tionCallback callback) {
689 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0. real_iface; 691 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0. real_iface;
690 return iface->Flush(graphics_2d, callback); 692 return iface->Flush(graphics_2d, callback);
691 } 693 }
692 694
693 /* End wrapper methods for PPB_Graphics2D_1_0 */ 695 /* End wrapper methods for PPB_Graphics2D_1_0 */
694 696
697 /* Begin wrapper methods for PPB_Graphics2D_1_1 */
698
699 static __attribute__((pnaclcall))
700 PP_Resource Pnacl_M27_PPB_Graphics2D_Create(PP_Instance instance, const struct P P_Size* size, PP_Bool is_always_opaque) {
701 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
702 return iface->Create(instance, size, is_always_opaque);
703 }
704
705 static __attribute__((pnaclcall))
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;
708 return iface->IsGraphics2D(resource);
709 }
710
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) {
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);
715 }
716
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) {
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);
721 }
722
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) {
725 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
726 iface->Scroll(graphics_2d, clip_rect, amount);
727 }
728
729 static __attribute__((pnaclcall))
730 void Pnacl_M27_PPB_Graphics2D_ReplaceContents(PP_Resource graphics_2d, PP_Resour ce image_data) {
731 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
732 iface->ReplaceContents(graphics_2d, image_data);
733 }
734
735 static __attribute__((pnaclcall))
736 int32_t Pnacl_M27_PPB_Graphics2D_Flush(PP_Resource graphics_2d, struct PP_Comple tionCallback callback) {
737 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
738 return iface->Flush(graphics_2d, callback);
739 }
740
741 static __attribute__((pnaclcall))
742 PP_Bool Pnacl_M27_PPB_Graphics2D_SetScale(PP_Resource resource, float scale) {
743 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
744 return iface->SetScale(resource, scale);
745 }
746
747 static __attribute__((pnaclcall))
748 float Pnacl_M27_PPB_Graphics2D_GetScale(PP_Resource resource) {
749 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
750 return iface->GetScale(resource);
751 }
752
753 /* End wrapper methods for PPB_Graphics2D_1_1 */
754
695 /* Begin wrapper methods for PPB_Graphics3D_1_0 */ 755 /* Begin wrapper methods for PPB_Graphics3D_1_0 */
696 756
697 static __attribute__((pnaclcall)) 757 static __attribute__((pnaclcall))
698 int32_t Pnacl_M15_PPB_Graphics3D_GetAttribMaxValue(PP_Resource instance, int32_t attribute, int32_t* value) { 758 int32_t Pnacl_M15_PPB_Graphics3D_GetAttribMaxValue(PP_Resource instance, int32_t attribute, int32_t* value) {
699 const struct PPB_Graphics3D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics3D_1_0. real_iface; 759 const struct PPB_Graphics3D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics3D_1_0. real_iface;
700 return iface->GetAttribMaxValue(instance, attribute, value); 760 return iface->GetAttribMaxValue(instance, attribute, value);
701 } 761 }
702 762
703 static __attribute__((pnaclcall)) 763 static __attribute__((pnaclcall))
704 PP_Resource Pnacl_M15_PPB_Graphics3D_Create(PP_Instance instance, PP_Resource sh are_context, const int32_t attrib_list[]) { 764 PP_Resource Pnacl_M15_PPB_Graphics3D_Create(PP_Instance instance, PP_Resource sh are_context, const int32_t attrib_list[]) {
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 static __attribute__((pnaclcall)) 1327 static __attribute__((pnaclcall))
1268 void Pnacl_M28_PPB_VideoWriter_Close(PP_Resource writer) { 1328 void Pnacl_M28_PPB_VideoWriter_Close(PP_Resource writer) {
1269 const struct PPB_VideoWriter_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoWriter_0_ 1.real_iface; 1329 const struct PPB_VideoWriter_0_1 *iface = Pnacl_WrapperInfo_PPB_VideoWriter_0_ 1.real_iface;
1270 iface->Close(writer); 1330 iface->Close(writer);
1271 } 1331 }
1272 1332
1273 /* End wrapper methods for PPB_VideoWriter_0_1 */ 1333 /* End wrapper methods for PPB_VideoWriter_0_1 */
1274 1334
1275 /* Not generating wrapper methods for PPB_View_1_0 */ 1335 /* Not generating wrapper methods for PPB_View_1_0 */
1276 1336
1337 /* Not generating wrapper methods for PPB_View_1_1 */
1338
1277 /* Begin wrapper methods for PPB_WebSocket_1_0 */ 1339 /* Begin wrapper methods for PPB_WebSocket_1_0 */
1278 1340
1279 static __attribute__((pnaclcall)) 1341 static __attribute__((pnaclcall))
1280 PP_Resource Pnacl_M18_PPB_WebSocket_Create(PP_Instance instance) { 1342 PP_Resource Pnacl_M18_PPB_WebSocket_Create(PP_Instance instance) {
1281 const struct PPB_WebSocket_1_0 *iface = Pnacl_WrapperInfo_PPB_WebSocket_1_0.re al_iface; 1343 const struct PPB_WebSocket_1_0 *iface = Pnacl_WrapperInfo_PPB_WebSocket_1_0.re al_iface;
1282 return iface->Create(instance); 1344 return iface->Create(instance);
1283 } 1345 }
1284 1346
1285 static __attribute__((pnaclcall)) 1347 static __attribute__((pnaclcall))
1286 PP_Bool Pnacl_M18_PPB_WebSocket_IsWebSocket(PP_Resource resource) { 1348 PP_Bool Pnacl_M18_PPB_WebSocket_IsWebSocket(PP_Resource resource) {
(...skipping 2843 matching lines...) Expand 10 before | Expand all | Expand 10 after
4130 struct PPB_Graphics2D_1_0 Pnacl_Wrappers_PPB_Graphics2D_1_0 = { 4192 struct PPB_Graphics2D_1_0 Pnacl_Wrappers_PPB_Graphics2D_1_0 = {
4131 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_Size* size, PP_Bool is_always_opaque))&Pnacl_M14_PPB_Graphics2D_Create, 4193 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_Size* size, PP_Bool is_always_opaque))&Pnacl_M14_PPB_Graphics2D_Create,
4132 .IsGraphics2D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_Graphics2D _IsGraphics2D, 4194 .IsGraphics2D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_Graphics2D _IsGraphics2D,
4133 .Describe = (PP_Bool (*)(PP_Resource graphics_2d, struct PP_Size* size, PP_B ool* is_always_opqaue))&Pnacl_M14_PPB_Graphics2D_Describe, 4195 .Describe = (PP_Bool (*)(PP_Resource graphics_2d, struct PP_Size* size, PP_B ool* is_always_opqaue))&Pnacl_M14_PPB_Graphics2D_Describe,
4134 .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, 4196 .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,
4135 .Scroll = (void (*)(PP_Resource graphics_2d, const struct PP_Rect* clip_rect , const struct PP_Point* amount))&Pnacl_M14_PPB_Graphics2D_Scroll, 4197 .Scroll = (void (*)(PP_Resource graphics_2d, const struct PP_Rect* clip_rect , const struct PP_Point* amount))&Pnacl_M14_PPB_Graphics2D_Scroll,
4136 .ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data ))&Pnacl_M14_PPB_Graphics2D_ReplaceContents, 4198 .ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data ))&Pnacl_M14_PPB_Graphics2D_ReplaceContents,
4137 .Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_Graphics2D_Flush 4199 .Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_Graphics2D_Flush
4138 }; 4200 };
4139 4201
4202 struct PPB_Graphics2D_1_1 Pnacl_Wrappers_PPB_Graphics2D_1_1 = {
4203 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_Size* size, PP_Bool is_always_opaque))&Pnacl_M27_PPB_Graphics2D_Create,
4204 .IsGraphics2D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D _IsGraphics2D,
4205 .Describe = (PP_Bool (*)(PP_Resource graphics_2d, struct PP_Size* size, PP_B ool* is_always_opqaue))&Pnacl_M27_PPB_Graphics2D_Describe,
4206 .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,
4207 .Scroll = (void (*)(PP_Resource graphics_2d, const struct PP_Rect* clip_rect , const struct PP_Point* amount))&Pnacl_M27_PPB_Graphics2D_Scroll,
4208 .ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data ))&Pnacl_M27_PPB_Graphics2D_ReplaceContents,
4209 .Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback callback))&Pnacl_M27_PPB_Graphics2D_Flush,
4210 .SetScale = (PP_Bool (*)(PP_Resource resource, float scale))&Pnacl_M27_PPB_G raphics2D_SetScale,
4211 .GetScale = (float (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D_GetSc ale
4212 };
4213
4140 struct PPB_Graphics3D_1_0 Pnacl_Wrappers_PPB_Graphics3D_1_0 = { 4214 struct PPB_Graphics3D_1_0 Pnacl_Wrappers_PPB_Graphics3D_1_0 = {
4141 .GetAttribMaxValue = (int32_t (*)(PP_Resource instance, int32_t attribute, i nt32_t* value))&Pnacl_M15_PPB_Graphics3D_GetAttribMaxValue, 4215 .GetAttribMaxValue = (int32_t (*)(PP_Resource instance, int32_t attribute, i nt32_t* value))&Pnacl_M15_PPB_Graphics3D_GetAttribMaxValue,
4142 .Create = (PP_Resource (*)(PP_Instance instance, PP_Resource share_context, const int32_t attrib_list[]))&Pnacl_M15_PPB_Graphics3D_Create, 4216 .Create = (PP_Resource (*)(PP_Instance instance, PP_Resource share_context, const int32_t attrib_list[]))&Pnacl_M15_PPB_Graphics3D_Create,
4143 .IsGraphics3D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M15_PPB_Graphics3D _IsGraphics3D, 4217 .IsGraphics3D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M15_PPB_Graphics3D _IsGraphics3D,
4144 .GetAttribs = (int32_t (*)(PP_Resource context, int32_t attrib_list[]))&Pnac l_M15_PPB_Graphics3D_GetAttribs, 4218 .GetAttribs = (int32_t (*)(PP_Resource context, int32_t attrib_list[]))&Pnac l_M15_PPB_Graphics3D_GetAttribs,
4145 .SetAttribs = (int32_t (*)(PP_Resource context, const int32_t attrib_list[]) )&Pnacl_M15_PPB_Graphics3D_SetAttribs, 4219 .SetAttribs = (int32_t (*)(PP_Resource context, const int32_t attrib_list[]) )&Pnacl_M15_PPB_Graphics3D_SetAttribs,
4146 .GetError = (int32_t (*)(PP_Resource context))&Pnacl_M15_PPB_Graphics3D_GetE rror, 4220 .GetError = (int32_t (*)(PP_Resource context))&Pnacl_M15_PPB_Graphics3D_GetE rror,
4147 .ResizeBuffers = (int32_t (*)(PP_Resource context, int32_t width, int32_t he ight))&Pnacl_M15_PPB_Graphics3D_ResizeBuffers, 4221 .ResizeBuffers = (int32_t (*)(PP_Resource context, int32_t width, int32_t he ight))&Pnacl_M15_PPB_Graphics3D_ResizeBuffers,
4148 .SwapBuffers = (int32_t (*)(PP_Resource context, struct PP_CompletionCallbac k callback))&Pnacl_M15_PPB_Graphics3D_SwapBuffers 4222 .SwapBuffers = (int32_t (*)(PP_Resource context, struct PP_CompletionCallbac k callback))&Pnacl_M15_PPB_Graphics3D_SwapBuffers
4149 }; 4223 };
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
4275 struct PPB_VideoWriter_0_1 Pnacl_Wrappers_PPB_VideoWriter_0_1 = { 4349 struct PPB_VideoWriter_0_1 Pnacl_Wrappers_PPB_VideoWriter_0_1 = {
4276 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M28_PPB_VideoWriter_ Create, 4350 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M28_PPB_VideoWriter_ Create,
4277 .IsVideoWriter = (PP_Bool (*)(PP_Resource resource))&Pnacl_M28_PPB_VideoWrit er_IsVideoWriter, 4351 .IsVideoWriter = (PP_Bool (*)(PP_Resource resource))&Pnacl_M28_PPB_VideoWrit er_IsVideoWriter,
4278 .Open = (int32_t (*)(PP_Resource writer, struct PP_Var* stream_id, struct PP _CompletionCallback callback))&Pnacl_M28_PPB_VideoWriter_Open, 4352 .Open = (int32_t (*)(PP_Resource writer, struct PP_Var* stream_id, struct PP _CompletionCallback callback))&Pnacl_M28_PPB_VideoWriter_Open,
4279 .PutFrame = (int32_t (*)(PP_Resource writer, const struct PP_VideoFrame* fra me))&Pnacl_M28_PPB_VideoWriter_PutFrame, 4353 .PutFrame = (int32_t (*)(PP_Resource writer, const struct PP_VideoFrame* fra me))&Pnacl_M28_PPB_VideoWriter_PutFrame,
4280 .Close = (void (*)(PP_Resource writer))&Pnacl_M28_PPB_VideoWriter_Close 4354 .Close = (void (*)(PP_Resource writer))&Pnacl_M28_PPB_VideoWriter_Close
4281 }; 4355 };
4282 4356
4283 /* Not generating wrapper interface for PPB_View_1_0 */ 4357 /* Not generating wrapper interface for PPB_View_1_0 */
4284 4358
4359 /* Not generating wrapper interface for PPB_View_1_1 */
4360
4285 struct PPB_WebSocket_1_0 Pnacl_Wrappers_PPB_WebSocket_1_0 = { 4361 struct PPB_WebSocket_1_0 Pnacl_Wrappers_PPB_WebSocket_1_0 = {
4286 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M18_PPB_WebSocket_Cr eate, 4362 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M18_PPB_WebSocket_Cr eate,
4287 .IsWebSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M18_PPB_WebSocket_I sWebSocket, 4363 .IsWebSocket = (PP_Bool (*)(PP_Resource resource))&Pnacl_M18_PPB_WebSocket_I sWebSocket,
4288 .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, 4364 .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,
4289 .Close = (int32_t (*)(PP_Resource web_socket, uint16_t code, struct PP_Var r eason, struct PP_CompletionCallback callback))&Pnacl_M18_PPB_WebSocket_Close, 4365 .Close = (int32_t (*)(PP_Resource web_socket, uint16_t code, struct PP_Var r eason, struct PP_CompletionCallback callback))&Pnacl_M18_PPB_WebSocket_Close,
4290 .ReceiveMessage = (int32_t (*)(PP_Resource web_socket, struct PP_Var* messag e, struct PP_CompletionCallback callback))&Pnacl_M18_PPB_WebSocket_ReceiveMessag e, 4366 .ReceiveMessage = (int32_t (*)(PP_Resource web_socket, struct PP_Var* messag e, struct PP_CompletionCallback callback))&Pnacl_M18_PPB_WebSocket_ReceiveMessag e,
4291 .SendMessage = (int32_t (*)(PP_Resource web_socket, struct PP_Var message))& Pnacl_M18_PPB_WebSocket_SendMessage, 4367 .SendMessage = (int32_t (*)(PP_Resource web_socket, struct PP_Var message))& Pnacl_M18_PPB_WebSocket_SendMessage,
4292 .GetBufferedAmount = (uint64_t (*)(PP_Resource web_socket))&Pnacl_M18_PPB_We bSocket_GetBufferedAmount, 4368 .GetBufferedAmount = (uint64_t (*)(PP_Resource web_socket))&Pnacl_M18_PPB_We bSocket_GetBufferedAmount,
4293 .GetCloseCode = (uint16_t (*)(PP_Resource web_socket))&Pnacl_M18_PPB_WebSock et_GetCloseCode, 4369 .GetCloseCode = (uint16_t (*)(PP_Resource web_socket))&Pnacl_M18_PPB_WebSock et_GetCloseCode,
4294 .GetCloseReason = (struct PP_Var (*)(PP_Resource web_socket))&Pnacl_M18_PPB_ WebSocket_GetCloseReason, 4370 .GetCloseReason = (struct PP_Var (*)(PP_Resource web_socket))&Pnacl_M18_PPB_ WebSocket_GetCloseReason,
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
5043 .wrapped_iface = NULL /* Still need slot for real_iface */, 5119 .wrapped_iface = NULL /* Still need slot for real_iface */,
5044 .real_iface = NULL 5120 .real_iface = NULL
5045 }; 5121 };
5046 5122
5047 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0 = { 5123 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0 = {
5048 .iface_macro = PPB_GRAPHICS_2D_INTERFACE_1_0, 5124 .iface_macro = PPB_GRAPHICS_2D_INTERFACE_1_0,
5049 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Graphics2D_1_0, 5125 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Graphics2D_1_0,
5050 .real_iface = NULL 5126 .real_iface = NULL
5051 }; 5127 };
5052 5128
5129 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_1 = {
5130 .iface_macro = PPB_GRAPHICS_2D_INTERFACE_1_1,
5131 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Graphics2D_1_1,
5132 .real_iface = NULL
5133 };
5134
5053 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3D_1_0 = { 5135 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3D_1_0 = {
5054 .iface_macro = PPB_GRAPHICS_3D_INTERFACE_1_0, 5136 .iface_macro = PPB_GRAPHICS_3D_INTERFACE_1_0,
5055 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Graphics3D_1_0, 5137 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Graphics3D_1_0,
5056 .real_iface = NULL 5138 .real_iface = NULL
5057 }; 5139 };
5058 5140
5059 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ImageData_1_0 = { 5141 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ImageData_1_0 = {
5060 .iface_macro = PPB_IMAGEDATA_INTERFACE_1_0, 5142 .iface_macro = PPB_IMAGEDATA_INTERFACE_1_0,
5061 .wrapped_iface = NULL /* Still need slot for real_iface */, 5143 .wrapped_iface = NULL /* Still need slot for real_iface */,
5062 .real_iface = NULL 5144 .real_iface = NULL
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
5175 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoWriter_0_1, 5257 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoWriter_0_1,
5176 .real_iface = NULL 5258 .real_iface = NULL
5177 }; 5259 };
5178 5260
5179 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_1_0 = { 5261 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_1_0 = {
5180 .iface_macro = PPB_VIEW_INTERFACE_1_0, 5262 .iface_macro = PPB_VIEW_INTERFACE_1_0,
5181 .wrapped_iface = NULL /* Still need slot for real_iface */, 5263 .wrapped_iface = NULL /* Still need slot for real_iface */,
5182 .real_iface = NULL 5264 .real_iface = NULL
5183 }; 5265 };
5184 5266
5267 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_1_1 = {
5268 .iface_macro = PPB_VIEW_INTERFACE_1_1,
5269 .wrapped_iface = NULL /* Still need slot for real_iface */,
5270 .real_iface = NULL
5271 };
5272
5185 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0 = { 5273 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WebSocket_1_0 = {
5186 .iface_macro = PPB_WEBSOCKET_INTERFACE_1_0, 5274 .iface_macro = PPB_WEBSOCKET_INTERFACE_1_0,
5187 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_WebSocket_1_0, 5275 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_WebSocket_1_0,
5188 .real_iface = NULL 5276 .real_iface = NULL
5189 }; 5277 };
5190 5278
5191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Graphics3D_1_0 = { 5279 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Graphics3D_1_0 = {
5192 .iface_macro = PPP_GRAPHICS_3D_INTERFACE_1_0, 5280 .iface_macro = PPP_GRAPHICS_3D_INTERFACE_1_0,
5193 .wrapped_iface = NULL /* Still need slot for real_iface */, 5281 .wrapped_iface = NULL /* Still need slot for real_iface */,
5194 .real_iface = NULL 5282 .real_iface = NULL
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
5861 &Pnacl_WrapperInfo_PPB_Console_1_0, 5949 &Pnacl_WrapperInfo_PPB_Console_1_0,
5862 &Pnacl_WrapperInfo_PPB_Core_1_0, 5950 &Pnacl_WrapperInfo_PPB_Core_1_0,
5863 &Pnacl_WrapperInfo_PPB_FileIO_1_0, 5951 &Pnacl_WrapperInfo_PPB_FileIO_1_0,
5864 &Pnacl_WrapperInfo_PPB_FileIO_1_1, 5952 &Pnacl_WrapperInfo_PPB_FileIO_1_1,
5865 &Pnacl_WrapperInfo_PPB_FileRef_1_0, 5953 &Pnacl_WrapperInfo_PPB_FileRef_1_0,
5866 &Pnacl_WrapperInfo_PPB_FileRef_1_1, 5954 &Pnacl_WrapperInfo_PPB_FileRef_1_1,
5867 &Pnacl_WrapperInfo_PPB_FileSystem_1_0, 5955 &Pnacl_WrapperInfo_PPB_FileSystem_1_0,
5868 &Pnacl_WrapperInfo_PPB_Fullscreen_1_0, 5956 &Pnacl_WrapperInfo_PPB_Fullscreen_1_0,
5869 &Pnacl_WrapperInfo_PPB_Gamepad_1_0, 5957 &Pnacl_WrapperInfo_PPB_Gamepad_1_0,
5870 &Pnacl_WrapperInfo_PPB_Graphics2D_1_0, 5958 &Pnacl_WrapperInfo_PPB_Graphics2D_1_0,
5959 &Pnacl_WrapperInfo_PPB_Graphics2D_1_1,
5871 &Pnacl_WrapperInfo_PPB_Graphics3D_1_0, 5960 &Pnacl_WrapperInfo_PPB_Graphics3D_1_0,
5872 &Pnacl_WrapperInfo_PPB_ImageData_1_0, 5961 &Pnacl_WrapperInfo_PPB_ImageData_1_0,
5873 &Pnacl_WrapperInfo_PPB_InputEvent_1_0, 5962 &Pnacl_WrapperInfo_PPB_InputEvent_1_0,
5874 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0, 5963 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0,
5875 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1, 5964 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1,
5876 &Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0, 5965 &Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0,
5877 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0, 5966 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0,
5878 &Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0, 5967 &Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0,
5879 &Pnacl_WrapperInfo_PPB_Instance_1_0, 5968 &Pnacl_WrapperInfo_PPB_Instance_1_0,
5880 &Pnacl_WrapperInfo_PPB_MessageLoop_1_0, 5969 &Pnacl_WrapperInfo_PPB_MessageLoop_1_0,
5881 &Pnacl_WrapperInfo_PPB_Messaging_1_0, 5970 &Pnacl_WrapperInfo_PPB_Messaging_1_0,
5882 &Pnacl_WrapperInfo_PPB_MouseCursor_1_0, 5971 &Pnacl_WrapperInfo_PPB_MouseCursor_1_0,
5883 &Pnacl_WrapperInfo_PPB_MouseLock_1_0, 5972 &Pnacl_WrapperInfo_PPB_MouseLock_1_0,
5884 &Pnacl_WrapperInfo_PPB_URLLoader_1_0, 5973 &Pnacl_WrapperInfo_PPB_URLLoader_1_0,
5885 &Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0, 5974 &Pnacl_WrapperInfo_PPB_URLRequestInfo_1_0,
5886 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0, 5975 &Pnacl_WrapperInfo_PPB_URLResponseInfo_1_0,
5887 &Pnacl_WrapperInfo_PPB_Var_1_0, 5976 &Pnacl_WrapperInfo_PPB_Var_1_0,
5888 &Pnacl_WrapperInfo_PPB_Var_1_1, 5977 &Pnacl_WrapperInfo_PPB_Var_1_1,
5889 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0, 5978 &Pnacl_WrapperInfo_PPB_VarArrayBuffer_1_0,
5890 &Pnacl_WrapperInfo_PPB_VideoReader_0_1, 5979 &Pnacl_WrapperInfo_PPB_VideoReader_0_1,
5891 &Pnacl_WrapperInfo_PPB_VideoWriter_0_1, 5980 &Pnacl_WrapperInfo_PPB_VideoWriter_0_1,
5892 &Pnacl_WrapperInfo_PPB_View_1_0, 5981 &Pnacl_WrapperInfo_PPB_View_1_0,
5982 &Pnacl_WrapperInfo_PPB_View_1_1,
5893 &Pnacl_WrapperInfo_PPB_WebSocket_1_0, 5983 &Pnacl_WrapperInfo_PPB_WebSocket_1_0,
5894 &Pnacl_WrapperInfo_PPB_AudioTrusted_0_6, 5984 &Pnacl_WrapperInfo_PPB_AudioTrusted_0_6,
5895 &Pnacl_WrapperInfo_PPB_BrokerTrusted_0_2, 5985 &Pnacl_WrapperInfo_PPB_BrokerTrusted_0_2,
5896 &Pnacl_WrapperInfo_PPB_BrokerTrusted_0_3, 5986 &Pnacl_WrapperInfo_PPB_BrokerTrusted_0_3,
5897 &Pnacl_WrapperInfo_PPB_BrowserFont_Trusted_1_0, 5987 &Pnacl_WrapperInfo_PPB_BrowserFont_Trusted_1_0,
5898 &Pnacl_WrapperInfo_PPB_BufferTrusted_0_1, 5988 &Pnacl_WrapperInfo_PPB_BufferTrusted_0_1,
5899 &Pnacl_WrapperInfo_PPB_CharSet_Trusted_1_0, 5989 &Pnacl_WrapperInfo_PPB_CharSet_Trusted_1_0,
5900 &Pnacl_WrapperInfo_PPB_FileChooserTrusted_0_5, 5990 &Pnacl_WrapperInfo_PPB_FileChooserTrusted_0_5,
5901 &Pnacl_WrapperInfo_PPB_FileChooserTrusted_0_6, 5991 &Pnacl_WrapperInfo_PPB_FileChooserTrusted_0_6,
5902 &Pnacl_WrapperInfo_PPB_FileIOTrusted_0_4, 5992 &Pnacl_WrapperInfo_PPB_FileIOTrusted_0_4,
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
6080 } 6170 }
6081 6171
6082 if (wrapper->wrapped_iface) { 6172 if (wrapper->wrapped_iface) {
6083 return wrapper->wrapped_iface; 6173 return wrapper->wrapped_iface;
6084 } else { 6174 } else {
6085 return wrapper->real_iface; 6175 return wrapper->real_iface;
6086 } 6176 }
6087 } 6177 }
6088 6178
6089 #endif 6179 #endif
OLDNEW
« no previous file with comments | « ppapi/examples/scaling/scaling.html ('k') | ppapi/ppapi_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698