| 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_audio_input_dev.h" | 8 #include "ppapi/c/dev/ppb_audio_input_dev.h" |
| 9 #include "ppapi/c/dev/ppb_file_chooser_dev.h" | 9 #include "ppapi/c/dev/ppb_file_chooser_dev.h" |
| 10 #include "ppapi/c/pp_bool.h" | 10 #include "ppapi/c/pp_bool.h" |
| 11 #include "ppapi/c/pp_instance.h" | 11 #include "ppapi/c/pp_instance.h" |
| 12 #include "ppapi/c/pp_resource.h" | 12 #include "ppapi/c/pp_resource.h" |
| 13 #include "ppapi/c/ppb_audio.h" | 13 #include "ppapi/c/ppb_audio.h" |
| 14 #include "ppapi/c/ppb_audio_config.h" | 14 #include "ppapi/c/ppb_audio_config.h" |
| 15 #include "ppapi/c/ppb_file_system.h" | 15 #include "ppapi/c/ppb_file_system.h" |
| 16 #include "ppapi/c/ppb_graphics_3d.h" | 16 #include "ppapi/c/ppb_graphics_3d.h" |
| 17 #include "ppapi/c/ppb_image_data.h" | 17 #include "ppapi/c/ppb_image_data.h" |
| 18 #include "ppapi/c/ppb_input_event.h" | 18 #include "ppapi/c/ppb_input_event.h" |
| 19 #include "ppapi/c/ppb_websocket.h" | 19 #include "ppapi/c/ppb_websocket.h" |
| 20 #include "ppapi/c/dev/pp_video_dev.h" | 20 #include "ppapi/c/dev/pp_video_dev.h" |
| 21 #include "ppapi/c/private/pp_private_font_charset.h" |
| 21 #include "ppapi/c/private/ppb_network_monitor_private.h" | 22 #include "ppapi/c/private/ppb_network_monitor_private.h" |
| 22 #include "ppapi/shared_impl/api_id.h" | 23 #include "ppapi/shared_impl/api_id.h" |
| 23 | 24 |
| 24 struct PP_Flash_Menu; | 25 struct PP_Flash_Menu; |
| 26 struct PP_FontDescription_Dev; |
| 25 struct PP_BrowserFont_Trusted_Description; | 27 struct PP_BrowserFont_Trusted_Description; |
| 26 struct PP_Size; | 28 struct PP_Size; |
| 27 | 29 |
| 28 namespace ppapi { | 30 namespace ppapi { |
| 29 | 31 |
| 30 struct URLRequestInfoData; | 32 struct URLRequestInfoData; |
| 31 | 33 |
| 32 namespace thunk { | 34 namespace thunk { |
| 33 | 35 |
| 34 // A functional API for creating resource types. Separating out the creation | 36 // A functional API for creating resource types. Separating out the creation |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 virtual PP_Resource CreateBrowserFont( | 138 virtual PP_Resource CreateBrowserFont( |
| 137 PP_Instance instance, | 139 PP_Instance instance, |
| 138 const PP_BrowserFont_Trusted_Description* description) = 0; | 140 const PP_BrowserFont_Trusted_Description* description) = 0; |
| 139 virtual PP_Resource CreateBuffer(PP_Instance instance, uint32_t size) = 0; | 141 virtual PP_Resource CreateBuffer(PP_Instance instance, uint32_t size) = 0; |
| 140 virtual PP_Resource CreateDirectoryReader(PP_Resource directory_ref) = 0; | 142 virtual PP_Resource CreateDirectoryReader(PP_Resource directory_ref) = 0; |
| 141 virtual PP_Resource CreateFileChooser( | 143 virtual PP_Resource CreateFileChooser( |
| 142 PP_Instance instance, | 144 PP_Instance instance, |
| 143 PP_FileChooserMode_Dev mode, | 145 PP_FileChooserMode_Dev mode, |
| 144 const char* accept_types) = 0; | 146 const char* accept_types) = 0; |
| 145 virtual PP_Resource CreateFlashDeviceID(PP_Instance instance) = 0; | 147 virtual PP_Resource CreateFlashDeviceID(PP_Instance instance) = 0; |
| 148 virtual PP_Resource CreateFlashFontFile( |
| 149 PP_Instance instance, |
| 150 const PP_FontDescription_Dev* description, |
| 151 PP_PrivateFontCharset charset) = 0; |
| 146 virtual PP_Resource CreateFlashMenu(PP_Instance instance, | 152 virtual PP_Resource CreateFlashMenu(PP_Instance instance, |
| 147 const PP_Flash_Menu* menu_data) = 0; | 153 const PP_Flash_Menu* menu_data) = 0; |
| 148 virtual PP_Resource CreateFlashMessageLoop(PP_Instance instance) = 0; | 154 virtual PP_Resource CreateFlashMessageLoop(PP_Instance instance) = 0; |
| 149 virtual PP_Resource CreatePrinting(PP_Instance instance) = 0; | 155 virtual PP_Resource CreatePrinting(PP_Instance instance) = 0; |
| 150 virtual PP_Resource CreateScrollbar(PP_Instance instance, | 156 virtual PP_Resource CreateScrollbar(PP_Instance instance, |
| 151 PP_Bool vertical) = 0; | 157 PP_Bool vertical) = 0; |
| 152 virtual PP_Resource CreateTalk(PP_Instance instance) = 0; | 158 virtual PP_Resource CreateTalk(PP_Instance instance) = 0; |
| 153 virtual PP_Resource CreateVideoCapture(PP_Instance instance) = 0; | 159 virtual PP_Resource CreateVideoCapture(PP_Instance instance) = 0; |
| 154 virtual PP_Resource CreateVideoDecoder( | 160 virtual PP_Resource CreateVideoDecoder( |
| 155 PP_Instance instance, | 161 PP_Instance instance, |
| 156 PP_Resource context3d_id, | 162 PP_Resource context3d_id, |
| 157 PP_VideoDecoder_Profile profile) = 0; | 163 PP_VideoDecoder_Profile profile) = 0; |
| 158 #endif // !defined(OS_NACL) | 164 #endif // !defined(OS_NACL) |
| 159 | 165 |
| 160 static const ApiID kApiID = API_ID_RESOURCE_CREATION; | 166 static const ApiID kApiID = API_ID_RESOURCE_CREATION; |
| 161 }; | 167 }; |
| 162 | 168 |
| 163 } // namespace thunk | 169 } // namespace thunk |
| 164 } // namespace ppapi | 170 } // namespace ppapi |
| 165 | 171 |
| 166 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 172 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
| OLD | NEW |