| OLD | NEW |
| 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 #ifndef PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 5 #ifndef PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
| 6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/dev/ppb_file_chooser_dev.h" | 8 #include "ppapi/c/dev/ppb_file_chooser_dev.h" |
| 9 #include "ppapi/c/pp_bool.h" | 9 #include "ppapi/c/pp_bool.h" |
| 10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
| 11 #include "ppapi/c/pp_resource.h" | 11 #include "ppapi/c/pp_resource.h" |
| 12 #include "ppapi/c/ppb_audio.h" | 12 #include "ppapi/c/ppb_audio.h" |
| 13 #include "ppapi/c/ppb_audio_config.h" | 13 #include "ppapi/c/ppb_audio_config.h" |
| 14 #include "ppapi/c/ppb_file_system.h" | 14 #include "ppapi/c/ppb_file_system.h" |
| 15 #include "ppapi/c/ppb_graphics_3d.h" | 15 #include "ppapi/c/ppb_graphics_3d.h" |
| 16 #include "ppapi/c/ppb_image_data.h" | 16 #include "ppapi/c/ppb_image_data.h" |
| 17 #include "ppapi/c/ppb_input_event.h" | 17 #include "ppapi/c/ppb_input_event.h" |
| 18 #include "ppapi/c/ppb_websocket.h" | 18 #include "ppapi/c/ppb_websocket.h" |
| 19 #include "ppapi/c/dev/pp_video_dev.h" | 19 #include "ppapi/c/dev/pp_video_dev.h" |
| 20 #include "ppapi/c/dev/ppb_truetype_font_dev.h" | 20 #include "ppapi/c/dev/ppb_truetype_font_dev.h" |
| 21 #include "ppapi/c/private/pp_private_font_charset.h" | 21 #include "ppapi/c/private/pp_private_font_charset.h" |
| 22 #include "ppapi/c/private/ppb_network_monitor_private.h" | 22 #include "ppapi/c/private/ppb_network_monitor_private.h" |
| 23 #include "ppapi/shared_impl/api_id.h" | 23 #include "ppapi/shared_impl/api_id.h" |
| 24 #include "ppapi/shared_impl/ppb_image_data_shared.h" |
| 24 | 25 |
| 25 struct PP_Flash_Menu; | 26 struct PP_Flash_Menu; |
| 26 struct PP_FontDescription_Dev; | 27 struct PP_FontDescription_Dev; |
| 27 struct PP_BrowserFont_Trusted_Description; | 28 struct PP_BrowserFont_Trusted_Description; |
| 28 struct PP_Size; | 29 struct PP_Size; |
| 29 | 30 |
| 30 namespace ppapi { | 31 namespace ppapi { |
| 31 | 32 |
| 32 struct PPB_FileRef_CreateInfo; | 33 struct PPB_FileRef_CreateInfo; |
| 33 struct URLRequestInfoData; | 34 struct URLRequestInfoData; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 const PP_Size* size, | 122 const PP_Size* size, |
| 122 PP_Bool is_always_opaque) = 0; | 123 PP_Bool is_always_opaque) = 0; |
| 123 virtual PP_Resource CreateGraphics3D(PP_Instance instance, | 124 virtual PP_Resource CreateGraphics3D(PP_Instance instance, |
| 124 PP_Resource share_context, | 125 PP_Resource share_context, |
| 125 const int32_t* attrib_list) = 0; | 126 const int32_t* attrib_list) = 0; |
| 126 virtual PP_Resource CreateGraphics3DRaw(PP_Instance instance, | 127 virtual PP_Resource CreateGraphics3DRaw(PP_Instance instance, |
| 127 PP_Resource share_context, | 128 PP_Resource share_context, |
| 128 const int32_t* attrib_list) = 0; | 129 const int32_t* attrib_list) = 0; |
| 129 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) = 0; | 130 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) = 0; |
| 130 virtual PP_Resource CreateImageData(PP_Instance instance, | 131 virtual PP_Resource CreateImageData(PP_Instance instance, |
| 132 PPB_ImageData_Shared::ImageDataType type, |
| 131 PP_ImageDataFormat format, | 133 PP_ImageDataFormat format, |
| 132 const PP_Size* size, | 134 const PP_Size* size, |
| 133 PP_Bool init_to_zero) = 0; | 135 PP_Bool init_to_zero) = 0; |
| 134 virtual PP_Resource CreateImageDataNaCl(PP_Instance instance, | |
| 135 PP_ImageDataFormat format, | |
| 136 const PP_Size* size, | |
| 137 PP_Bool init_to_zero) = 0; | |
| 138 virtual PP_Resource CreateNetworkMonitor( | 136 virtual PP_Resource CreateNetworkMonitor( |
| 139 PP_Instance instance, | 137 PP_Instance instance, |
| 140 PPB_NetworkMonitor_Callback callback, | 138 PPB_NetworkMonitor_Callback callback, |
| 141 void* user_data) = 0; | 139 void* user_data) = 0; |
| 142 virtual PP_Resource CreatePrinting(PP_Instance instance) = 0; | 140 virtual PP_Resource CreatePrinting(PP_Instance instance) = 0; |
| 143 virtual PP_Resource CreateTCPServerSocketPrivate(PP_Instance instance) = 0; | 141 virtual PP_Resource CreateTCPServerSocketPrivate(PP_Instance instance) = 0; |
| 144 virtual PP_Resource CreateTCPSocketPrivate(PP_Instance instace) = 0; | 142 virtual PP_Resource CreateTCPSocketPrivate(PP_Instance instace) = 0; |
| 145 virtual PP_Resource CreateUDPSocketPrivate(PP_Instance instace) = 0; | 143 virtual PP_Resource CreateUDPSocketPrivate(PP_Instance instace) = 0; |
| 146 virtual PP_Resource CreateWebSocket(PP_Instance instance) = 0; | 144 virtual PP_Resource CreateWebSocket(PP_Instance instance) = 0; |
| 147 virtual PP_Resource CreateX509CertificatePrivate(PP_Instance instance) = 0; | 145 virtual PP_Resource CreateX509CertificatePrivate(PP_Instance instance) = 0; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 172 virtual PP_Resource CreateVideoSource(PP_Instance instance) = 0; | 170 virtual PP_Resource CreateVideoSource(PP_Instance instance) = 0; |
| 173 #endif // !defined(OS_NACL) | 171 #endif // !defined(OS_NACL) |
| 174 | 172 |
| 175 static const ApiID kApiID = API_ID_RESOURCE_CREATION; | 173 static const ApiID kApiID = API_ID_RESOURCE_CREATION; |
| 176 }; | 174 }; |
| 177 | 175 |
| 178 } // namespace thunk | 176 } // namespace thunk |
| 179 } // namespace ppapi | 177 } // namespace ppapi |
| 180 | 178 |
| 181 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 179 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
| OLD | NEW |