| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/dev/ppb_video_layer_dev.h" | 9 #include "ppapi/c/dev/ppb_video_layer_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/dev/ppb_audio_input_dev.h" |
| 15 #include "ppapi/c/ppb_file_system.h" | 16 #include "ppapi/c/ppb_file_system.h" |
| 16 #include "ppapi/c/ppb_graphics_3d.h" | 17 #include "ppapi/c/ppb_graphics_3d.h" |
| 17 #include "ppapi/c/ppb_image_data.h" | 18 #include "ppapi/c/ppb_image_data.h" |
| 18 #include "ppapi/c/ppb_input_event.h" | 19 #include "ppapi/c/ppb_input_event.h" |
| 19 #include "ppapi/c/dev/ppb_transport_dev.h" | 20 #include "ppapi/c/dev/ppb_transport_dev.h" |
| 20 #include "ppapi/proxy/interface_id.h" | 21 #include "ppapi/proxy/interface_id.h" |
| 21 | 22 |
| 22 struct PP_Flash_Menu; | 23 struct PP_Flash_Menu; |
| 23 struct PP_FontDescription_Dev; | 24 struct PP_FontDescription_Dev; |
| 24 struct PP_VideoCaptureDeviceInfo_Dev; | 25 struct PP_VideoCaptureDeviceInfo_Dev; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 36 // creation functions are not per-object (since there's no object during | 37 // creation functions are not per-object (since there's no object during |
| 37 // creation) so need functional routing based on the instance ID. | 38 // creation) so need functional routing based on the instance ID. |
| 38 class ResourceCreationAPI { | 39 class ResourceCreationAPI { |
| 39 public: | 40 public: |
| 40 virtual ~ResourceCreationAPI() {} | 41 virtual ~ResourceCreationAPI() {} |
| 41 | 42 |
| 42 virtual PP_Resource CreateAudio(PP_Instance instance, | 43 virtual PP_Resource CreateAudio(PP_Instance instance, |
| 43 PP_Resource config_id, | 44 PP_Resource config_id, |
| 44 PPB_Audio_Callback audio_callback, | 45 PPB_Audio_Callback audio_callback, |
| 45 void* user_data) = 0; | 46 void* user_data) = 0; |
| 46 virtual PP_Resource CreateAudioTrusted(PP_Instance instace) = 0; | 47 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) = 0; |
| 47 virtual PP_Resource CreateAudioConfig(PP_Instance instance, | 48 virtual PP_Resource CreateAudioConfig(PP_Instance instance, |
| 48 PP_AudioSampleRate sample_rate, | 49 PP_AudioSampleRate sample_rate, |
| 49 uint32_t sample_frame_count) = 0; | 50 uint32_t sample_frame_count) = 0; |
| 51 virtual PP_Resource CreateAudioInput(PP_Instance instance, |
| 52 PPB_AudioInput_Callback audio_input_callback, |
| 53 void* user_data) = 0; |
| 54 virtual PP_Resource CreateAudioInputTrusted(PP_Instance instance) = 0; |
| 50 virtual PP_Resource CreateBroker(PP_Instance instance) = 0; | 55 virtual PP_Resource CreateBroker(PP_Instance instance) = 0; |
| 51 virtual PP_Resource CreateBuffer(PP_Instance instance, uint32_t size) = 0; | 56 virtual PP_Resource CreateBuffer(PP_Instance instance, uint32_t size) = 0; |
| 52 virtual PP_Resource CreateContext3D(PP_Instance instance, | 57 virtual PP_Resource CreateContext3D(PP_Instance instance, |
| 53 PP_Config3D_Dev config, | 58 PP_Config3D_Dev config, |
| 54 PP_Resource share_context, | 59 PP_Resource share_context, |
| 55 const int32_t* attrib_list) = 0; | 60 const int32_t* attrib_list) = 0; |
| 56 virtual PP_Resource CreateContext3DRaw(PP_Instance instance, | 61 virtual PP_Resource CreateContext3DRaw(PP_Instance instance, |
| 57 PP_Config3D_Dev config, | 62 PP_Config3D_Dev config, |
| 58 PP_Resource share_context, | 63 PP_Resource share_context, |
| 59 const int32_t* attrib_list) = 0; | 64 const int32_t* attrib_list) = 0; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 PP_Bool scroll_by_page) = 0; | 138 PP_Bool scroll_by_page) = 0; |
| 134 | 139 |
| 135 static const proxy::InterfaceID interface_id = | 140 static const proxy::InterfaceID interface_id = |
| 136 proxy::INTERFACE_ID_RESOURCE_CREATION; | 141 proxy::INTERFACE_ID_RESOURCE_CREATION; |
| 137 }; | 142 }; |
| 138 | 143 |
| 139 } // namespace thunk | 144 } // namespace thunk |
| 140 } // namespace ppapi | 145 } // namespace ppapi |
| 141 | 146 |
| 142 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 147 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
| OLD | NEW |