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

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

Issue 10905227: Introduce PPB_Flash_Font. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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/cpp/private/flash_font_file.cc ('k') | ppapi/ppapi_proxy.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) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 /* Last generated from IDL: Mon Oct 8 10:50:14 2012. */ 6 /* Last generated from IDL: Mon Oct 8 16:28:58 2012. */
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"
11 #include "ppapi/c/dev/ppb_buffer_dev.h" 11 #include "ppapi/c/dev/ppb_buffer_dev.h"
12 #include "ppapi/c/dev/ppb_console_dev.h" 12 #include "ppapi/c/dev/ppb_console_dev.h"
13 #include "ppapi/c/dev/ppb_cursor_control_dev.h" 13 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
14 #include "ppapi/c/dev/ppb_device_ref_dev.h" 14 #include "ppapi/c/dev/ppb_device_ref_dev.h"
15 #include "ppapi/c/dev/ppb_file_chooser_dev.h" 15 #include "ppapi/c/dev/ppb_file_chooser_dev.h"
16 #include "ppapi/c/dev/ppb_find_dev.h" 16 #include "ppapi/c/dev/ppb_find_dev.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 #include "ppapi/c/ppp_graphics_3d.h" 63 #include "ppapi/c/ppp_graphics_3d.h"
64 #include "ppapi/c/ppp_input_event.h" 64 #include "ppapi/c/ppp_input_event.h"
65 #include "ppapi/c/ppp_instance.h" 65 #include "ppapi/c/ppp_instance.h"
66 #include "ppapi/c/ppp_messaging.h" 66 #include "ppapi/c/ppp_messaging.h"
67 #include "ppapi/c/ppp_mouse_lock.h" 67 #include "ppapi/c/ppp_mouse_lock.h"
68 #include "ppapi/c/private/ppb_content_decryptor_private.h" 68 #include "ppapi/c/private/ppb_content_decryptor_private.h"
69 #include "ppapi/c/private/ppb_file_ref_private.h" 69 #include "ppapi/c/private/ppb_file_ref_private.h"
70 #include "ppapi/c/private/ppb_flash.h" 70 #include "ppapi/c/private/ppb_flash.h"
71 #include "ppapi/c/private/ppb_flash_clipboard.h" 71 #include "ppapi/c/private/ppb_flash_clipboard.h"
72 #include "ppapi/c/private/ppb_flash_device_id.h" 72 #include "ppapi/c/private/ppb_flash_device_id.h"
73 #include "ppapi/c/private/ppb_flash_font_file.h"
73 #include "ppapi/c/private/ppb_flash_fullscreen.h" 74 #include "ppapi/c/private/ppb_flash_fullscreen.h"
74 #include "ppapi/c/private/ppb_flash_message_loop.h" 75 #include "ppapi/c/private/ppb_flash_message_loop.h"
75 #include "ppapi/c/private/ppb_flash_print.h" 76 #include "ppapi/c/private/ppb_flash_print.h"
76 #include "ppapi/c/private/ppb_flash_tcp_socket.h" 77 #include "ppapi/c/private/ppb_flash_tcp_socket.h"
77 #include "ppapi/c/private/ppb_host_resolver_private.h" 78 #include "ppapi/c/private/ppb_host_resolver_private.h"
78 #include "ppapi/c/private/ppb_instance_private.h" 79 #include "ppapi/c/private/ppb_instance_private.h"
79 #include "ppapi/c/private/ppb_net_address_private.h" 80 #include "ppapi/c/private/ppb_net_address_private.h"
80 #include "ppapi/c/private/ppb_network_list_private.h" 81 #include "ppapi/c/private/ppb_network_list_private.h"
81 #include "ppapi/c/private/ppb_network_monitor_private.h" 82 #include "ppapi/c/private/ppb_network_monitor_private.h"
82 #include "ppapi/c/private/ppb_talk_private.h" 83 #include "ppapi/c/private/ppb_talk_private.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1; 206 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1;
206 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_0; 207 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_0;
207 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_1; 208 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_1;
208 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_2; 209 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_2;
209 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_3; 210 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_3;
210 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_4; 211 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_4;
211 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_5; 212 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_5;
212 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_Clipboard_3_0; 213 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_Clipboard_3_0;
213 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_Clipboard_4_0; 214 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_Clipboard_4_0;
214 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_DeviceID_1_0; 215 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_DeviceID_1_0;
216 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_FontFile_0_1;
215 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FlashFullscreen_0_1; 217 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FlashFullscreen_0_1;
216 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FlashFullscreen_1_0; 218 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FlashFullscreen_1_0;
217 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_MessageLoop_0_1; 219 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_MessageLoop_0_1;
218 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_Print_1_0; 220 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_Print_1_0;
219 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_TCPSocket_0_2; 221 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_TCPSocket_0_2;
220 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_HostResolver_Private_0_1; 222 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_HostResolver_Private_0_1;
221 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Instance_Private_0_1; 223 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Instance_Private_0_1;
222 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_Private_0_1; 224 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_Private_0_1;
223 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_Private_1_0; 225 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_Private_1_0;
224 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_Private_1_1; 226 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_NetAddress_Private_1_1;
(...skipping 2332 matching lines...) Expand 10 before | Expand all | Expand 10 after
2557 } 2559 }
2558 2560
2559 static __attribute__((pnaclcall)) 2561 static __attribute__((pnaclcall))
2560 int32_t Pnacl_M21_PPB_Flash_DeviceID_GetDeviceID(PP_Resource device_id, struct P P_Var* id, struct PP_CompletionCallback callback) { 2562 int32_t Pnacl_M21_PPB_Flash_DeviceID_GetDeviceID(PP_Resource device_id, struct P P_Var* id, struct PP_CompletionCallback callback) {
2561 const struct PPB_Flash_DeviceID_1_0 *iface = Pnacl_WrapperInfo_PPB_Flash_Devic eID_1_0.real_iface; 2563 const struct PPB_Flash_DeviceID_1_0 *iface = Pnacl_WrapperInfo_PPB_Flash_Devic eID_1_0.real_iface;
2562 return iface->GetDeviceID(device_id, id, callback); 2564 return iface->GetDeviceID(device_id, id, callback);
2563 } 2565 }
2564 2566
2565 /* End wrapper methods for PPB_Flash_DeviceID_1_0 */ 2567 /* End wrapper methods for PPB_Flash_DeviceID_1_0 */
2566 2568
2569 /* Not generating wrapper methods for PPB_Flash_FontFile_0_1 */
2570
2567 /* Not generating wrapper methods for PPB_FlashFullscreen_0_1 */ 2571 /* Not generating wrapper methods for PPB_FlashFullscreen_0_1 */
2568 2572
2569 /* Not generating wrapper methods for PPB_FlashFullscreen_1_0 */ 2573 /* Not generating wrapper methods for PPB_FlashFullscreen_1_0 */
2570 2574
2571 /* Not generating wrapper methods for PPB_Flash_MessageLoop_0_1 */ 2575 /* Not generating wrapper methods for PPB_Flash_MessageLoop_0_1 */
2572 2576
2573 /* Not generating wrapper methods for PPB_Flash_Print_1_0 */ 2577 /* Not generating wrapper methods for PPB_Flash_Print_1_0 */
2574 2578
2575 /* Begin wrapper methods for PPB_Flash_TCPSocket_0_2 */ 2579 /* Begin wrapper methods for PPB_Flash_TCPSocket_0_2 */
2576 2580
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
3940 .IsFormatAvailable = (PP_Bool (*)(PP_Instance instance_id, PP_Flash_Clipboar d_Type clipboard_type, PP_Flash_Clipboard_Format format))&Pnacl_M19_PPB_Flash_Cl ipboard_IsFormatAvailable, 3944 .IsFormatAvailable = (PP_Bool (*)(PP_Instance instance_id, PP_Flash_Clipboar d_Type clipboard_type, PP_Flash_Clipboard_Format format))&Pnacl_M19_PPB_Flash_Cl ipboard_IsFormatAvailable,
3941 .ReadData = (struct PP_Var (*)(PP_Instance instance_id, PP_Flash_Clipboard_T ype clipboard_type, PP_Flash_Clipboard_Format format))&Pnacl_M19_PPB_Flash_Clipb oard_ReadData, 3945 .ReadData = (struct PP_Var (*)(PP_Instance instance_id, PP_Flash_Clipboard_T ype clipboard_type, PP_Flash_Clipboard_Format format))&Pnacl_M19_PPB_Flash_Clipb oard_ReadData,
3942 .WriteData = (int32_t (*)(PP_Instance instance_id, PP_Flash_Clipboard_Type c lipboard_type, uint32_t data_item_count, const PP_Flash_Clipboard_Format formats [], const struct PP_Var data_items[]))&Pnacl_M19_PPB_Flash_Clipboard_WriteData 3946 .WriteData = (int32_t (*)(PP_Instance instance_id, PP_Flash_Clipboard_Type c lipboard_type, uint32_t data_item_count, const PP_Flash_Clipboard_Format formats [], const struct PP_Var data_items[]))&Pnacl_M19_PPB_Flash_Clipboard_WriteData
3943 }; 3947 };
3944 3948
3945 struct PPB_Flash_DeviceID_1_0 Pnacl_Wrappers_PPB_Flash_DeviceID_1_0 = { 3949 struct PPB_Flash_DeviceID_1_0 Pnacl_Wrappers_PPB_Flash_DeviceID_1_0 = {
3946 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M21_PPB_Flash_Device ID_Create, 3950 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M21_PPB_Flash_Device ID_Create,
3947 .GetDeviceID = (int32_t (*)(PP_Resource device_id, struct PP_Var* id, struct PP_CompletionCallback callback))&Pnacl_M21_PPB_Flash_DeviceID_GetDeviceID 3951 .GetDeviceID = (int32_t (*)(PP_Resource device_id, struct PP_Var* id, struct PP_CompletionCallback callback))&Pnacl_M21_PPB_Flash_DeviceID_GetDeviceID
3948 }; 3952 };
3949 3953
3954 /* Not generating wrapper interface for PPB_Flash_FontFile_0_1 */
3955
3950 /* Not generating wrapper interface for PPB_FlashFullscreen_0_1 */ 3956 /* Not generating wrapper interface for PPB_FlashFullscreen_0_1 */
3951 3957
3952 /* Not generating wrapper interface for PPB_FlashFullscreen_1_0 */ 3958 /* Not generating wrapper interface for PPB_FlashFullscreen_1_0 */
3953 3959
3954 /* Not generating wrapper interface for PPB_Flash_MessageLoop_0_1 */ 3960 /* Not generating wrapper interface for PPB_Flash_MessageLoop_0_1 */
3955 3961
3956 /* Not generating wrapper interface for PPB_Flash_Print_1_0 */ 3962 /* Not generating wrapper interface for PPB_Flash_Print_1_0 */
3957 3963
3958 struct PPB_Flash_TCPSocket_0_2 Pnacl_Wrappers_PPB_Flash_TCPSocket_0_2 = { 3964 struct PPB_Flash_TCPSocket_0_2 Pnacl_Wrappers_PPB_Flash_TCPSocket_0_2 = {
3959 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M15_PPB_Flash_TCPSoc ket_Create, 3965 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M15_PPB_Flash_TCPSoc ket_Create,
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
4733 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Flash_Clipboard_4_0, 4739 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Flash_Clipboard_4_0,
4734 .real_iface = NULL 4740 .real_iface = NULL
4735 }; 4741 };
4736 4742
4737 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_DeviceID_1_0 = { 4743 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_DeviceID_1_0 = {
4738 .iface_macro = PPB_FLASH_DEVICEID_INTERFACE_1_0, 4744 .iface_macro = PPB_FLASH_DEVICEID_INTERFACE_1_0,
4739 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Flash_DeviceID_1_0, 4745 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Flash_DeviceID_1_0,
4740 .real_iface = NULL 4746 .real_iface = NULL
4741 }; 4747 };
4742 4748
4749 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_FontFile_0_1 = {
4750 .iface_macro = PPB_FLASH_FONTFILE_INTERFACE_0_1,
4751 .wrapped_iface = NULL /* Still need slot for real_iface */,
4752 .real_iface = NULL
4753 };
4754
4743 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FlashFullscreen_0_1 = { 4755 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FlashFullscreen_0_1 = {
4744 .iface_macro = PPB_FLASHFULLSCREEN_INTERFACE_0_1, 4756 .iface_macro = PPB_FLASHFULLSCREEN_INTERFACE_0_1,
4745 .wrapped_iface = NULL /* Still need slot for real_iface */, 4757 .wrapped_iface = NULL /* Still need slot for real_iface */,
4746 .real_iface = NULL 4758 .real_iface = NULL
4747 }; 4759 };
4748 4760
4749 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FlashFullscreen_1_0 = { 4761 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FlashFullscreen_1_0 = {
4750 .iface_macro = PPB_FLASHFULLSCREEN_INTERFACE_1_0, 4762 .iface_macro = PPB_FLASHFULLSCREEN_INTERFACE_1_0,
4751 .wrapped_iface = NULL /* Still need slot for real_iface */, 4763 .wrapped_iface = NULL /* Still need slot for real_iface */,
4752 .real_iface = NULL 4764 .real_iface = NULL
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
4977 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1, 4989 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1,
4978 &Pnacl_WrapperInfo_PPB_Flash_12_0, 4990 &Pnacl_WrapperInfo_PPB_Flash_12_0,
4979 &Pnacl_WrapperInfo_PPB_Flash_12_1, 4991 &Pnacl_WrapperInfo_PPB_Flash_12_1,
4980 &Pnacl_WrapperInfo_PPB_Flash_12_2, 4992 &Pnacl_WrapperInfo_PPB_Flash_12_2,
4981 &Pnacl_WrapperInfo_PPB_Flash_12_3, 4993 &Pnacl_WrapperInfo_PPB_Flash_12_3,
4982 &Pnacl_WrapperInfo_PPB_Flash_12_4, 4994 &Pnacl_WrapperInfo_PPB_Flash_12_4,
4983 &Pnacl_WrapperInfo_PPB_Flash_12_5, 4995 &Pnacl_WrapperInfo_PPB_Flash_12_5,
4984 &Pnacl_WrapperInfo_PPB_Flash_Clipboard_3_0, 4996 &Pnacl_WrapperInfo_PPB_Flash_Clipboard_3_0,
4985 &Pnacl_WrapperInfo_PPB_Flash_Clipboard_4_0, 4997 &Pnacl_WrapperInfo_PPB_Flash_Clipboard_4_0,
4986 &Pnacl_WrapperInfo_PPB_Flash_DeviceID_1_0, 4998 &Pnacl_WrapperInfo_PPB_Flash_DeviceID_1_0,
4999 &Pnacl_WrapperInfo_PPB_Flash_FontFile_0_1,
4987 &Pnacl_WrapperInfo_PPB_FlashFullscreen_0_1, 5000 &Pnacl_WrapperInfo_PPB_FlashFullscreen_0_1,
4988 &Pnacl_WrapperInfo_PPB_FlashFullscreen_1_0, 5001 &Pnacl_WrapperInfo_PPB_FlashFullscreen_1_0,
4989 &Pnacl_WrapperInfo_PPB_Flash_MessageLoop_0_1, 5002 &Pnacl_WrapperInfo_PPB_Flash_MessageLoop_0_1,
4990 &Pnacl_WrapperInfo_PPB_Flash_Print_1_0, 5003 &Pnacl_WrapperInfo_PPB_Flash_Print_1_0,
4991 &Pnacl_WrapperInfo_PPB_Flash_TCPSocket_0_2, 5004 &Pnacl_WrapperInfo_PPB_Flash_TCPSocket_0_2,
4992 &Pnacl_WrapperInfo_PPB_HostResolver_Private_0_1, 5005 &Pnacl_WrapperInfo_PPB_HostResolver_Private_0_1,
4993 &Pnacl_WrapperInfo_PPB_Instance_Private_0_1, 5006 &Pnacl_WrapperInfo_PPB_Instance_Private_0_1,
4994 &Pnacl_WrapperInfo_PPB_NetAddress_Private_0_1, 5007 &Pnacl_WrapperInfo_PPB_NetAddress_Private_0_1,
4995 &Pnacl_WrapperInfo_PPB_NetAddress_Private_1_0, 5008 &Pnacl_WrapperInfo_PPB_NetAddress_Private_1_0,
4996 &Pnacl_WrapperInfo_PPB_NetAddress_Private_1_1, 5009 &Pnacl_WrapperInfo_PPB_NetAddress_Private_1_1,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
5102 } 5115 }
5103 5116
5104 if (wrapper->wrapped_iface) { 5117 if (wrapper->wrapped_iface) {
5105 return wrapper->wrapped_iface; 5118 return wrapper->wrapped_iface;
5106 } else { 5119 } else {
5107 return wrapper->real_iface; 5120 return wrapper->real_iface;
5108 } 5121 }
5109 } 5122 }
5110 5123
5111 #endif 5124 #endif
OLDNEW
« no previous file with comments | « ppapi/cpp/private/flash_font_file.cc ('k') | ppapi/ppapi_proxy.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698