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 "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "ppapi/c/dev/pp_video_dev.h" | 9 #include "ppapi/c/dev/pp_video_dev.h" |
10 #include "ppapi/c/dev/ppb_file_chooser_dev.h" | 10 #include "ppapi/c/dev/ppb_file_chooser_dev.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 PPB_Audio_Callback_1_0 audio_callback, | 117 PPB_Audio_Callback_1_0 audio_callback, |
118 void* user_data) = 0; | 118 void* user_data) = 0; |
119 virtual PP_Resource CreateAudio(PP_Instance instance, | 119 virtual PP_Resource CreateAudio(PP_Instance instance, |
120 PP_Resource config_id, | 120 PP_Resource config_id, |
121 PPB_Audio_Callback audio_callback, | 121 PPB_Audio_Callback audio_callback, |
122 void* user_data) = 0; | 122 void* user_data) = 0; |
123 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) = 0; | 123 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) = 0; |
124 virtual PP_Resource CreateAudioConfig(PP_Instance instance, | 124 virtual PP_Resource CreateAudioConfig(PP_Instance instance, |
125 PP_AudioSampleRate sample_rate, | 125 PP_AudioSampleRate sample_rate, |
126 uint32_t sample_frame_count) = 0; | 126 uint32_t sample_frame_count) = 0; |
| 127 virtual PP_Resource CreateCameraDevicePrivate(PP_Instance instance) = 0; |
127 virtual PP_Resource CreateCompositor(PP_Instance instance) = 0; | 128 virtual PP_Resource CreateCompositor(PP_Instance instance) = 0; |
128 virtual PP_Resource CreateFileChooser(PP_Instance instance, | 129 virtual PP_Resource CreateFileChooser(PP_Instance instance, |
129 PP_FileChooserMode_Dev mode, | 130 PP_FileChooserMode_Dev mode, |
130 const PP_Var& accept_types) = 0; | 131 const PP_Var& accept_types) = 0; |
131 virtual PP_Resource CreateGraphics2D(PP_Instance instance, | 132 virtual PP_Resource CreateGraphics2D(PP_Instance instance, |
132 const PP_Size* size, | 133 const PP_Size* size, |
133 PP_Bool is_always_opaque) = 0; | 134 PP_Bool is_always_opaque) = 0; |
134 virtual PP_Resource CreateGraphics3D(PP_Instance instance, | 135 virtual PP_Resource CreateGraphics3D(PP_Instance instance, |
135 PP_Resource share_context, | 136 PP_Resource share_context, |
136 const int32_t* attrib_list) = 0; | 137 const int32_t* attrib_list) = 0; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 virtual PP_Resource CreateVideoSource(PP_Instance instance) = 0; | 176 virtual PP_Resource CreateVideoSource(PP_Instance instance) = 0; |
176 virtual PP_Resource CreateWebSocket(PP_Instance instance) = 0; | 177 virtual PP_Resource CreateWebSocket(PP_Instance instance) = 0; |
177 virtual PP_Resource CreateX509CertificatePrivate(PP_Instance instance) = 0; | 178 virtual PP_Resource CreateX509CertificatePrivate(PP_Instance instance) = 0; |
178 #if !defined(OS_NACL) | 179 #if !defined(OS_NACL) |
179 virtual PP_Resource CreateAudioInput(PP_Instance instance) = 0; | 180 virtual PP_Resource CreateAudioInput(PP_Instance instance) = 0; |
180 virtual PP_Resource CreateBroker(PP_Instance instance) = 0; | 181 virtual PP_Resource CreateBroker(PP_Instance instance) = 0; |
181 virtual PP_Resource CreateBrowserFont( | 182 virtual PP_Resource CreateBrowserFont( |
182 PP_Instance instance, | 183 PP_Instance instance, |
183 const PP_BrowserFont_Trusted_Description* description) = 0; | 184 const PP_BrowserFont_Trusted_Description* description) = 0; |
184 virtual PP_Resource CreateBuffer(PP_Instance instance, uint32_t size) = 0; | 185 virtual PP_Resource CreateBuffer(PP_Instance instance, uint32_t size) = 0; |
185 virtual PP_Resource CreateCameraDevicePrivate(PP_Instance instance) = 0; | |
186 virtual PP_Resource CreateFlashDRM(PP_Instance instance) = 0; | 186 virtual PP_Resource CreateFlashDRM(PP_Instance instance) = 0; |
187 virtual PP_Resource CreateFlashFontFile( | 187 virtual PP_Resource CreateFlashFontFile( |
188 PP_Instance instance, | 188 PP_Instance instance, |
189 const PP_BrowserFont_Trusted_Description* description, | 189 const PP_BrowserFont_Trusted_Description* description, |
190 PP_PrivateFontCharset charset) = 0; | 190 PP_PrivateFontCharset charset) = 0; |
191 virtual PP_Resource CreateFlashMenu(PP_Instance instance, | 191 virtual PP_Resource CreateFlashMenu(PP_Instance instance, |
192 const PP_Flash_Menu* menu_data) = 0; | 192 const PP_Flash_Menu* menu_data) = 0; |
193 virtual PP_Resource CreateFlashMessageLoop(PP_Instance instance) = 0; | 193 virtual PP_Resource CreateFlashMessageLoop(PP_Instance instance) = 0; |
194 virtual PP_Resource CreatePlatformVerificationPrivate( | 194 virtual PP_Resource CreatePlatformVerificationPrivate( |
195 PP_Instance instance) = 0; | 195 PP_Instance instance) = 0; |
196 virtual PP_Resource CreateScrollbar(PP_Instance instance, | 196 virtual PP_Resource CreateScrollbar(PP_Instance instance, |
197 PP_Bool vertical) = 0; | 197 PP_Bool vertical) = 0; |
198 virtual PP_Resource CreateTalk(PP_Instance instance) = 0; | 198 virtual PP_Resource CreateTalk(PP_Instance instance) = 0; |
199 virtual PP_Resource CreateVideoCapture(PP_Instance instance) = 0; | 199 virtual PP_Resource CreateVideoCapture(PP_Instance instance) = 0; |
200 virtual PP_Resource CreateVideoDecoderDev( | 200 virtual PP_Resource CreateVideoDecoderDev( |
201 PP_Instance instance, | 201 PP_Instance instance, |
202 PP_Resource context3d_id, | 202 PP_Resource context3d_id, |
203 PP_VideoDecoder_Profile profile) = 0; | 203 PP_VideoDecoder_Profile profile) = 0; |
204 #endif // !defined(OS_NACL) | 204 #endif // !defined(OS_NACL) |
205 | 205 |
206 static const ApiID kApiID = API_ID_RESOURCE_CREATION; | 206 static const ApiID kApiID = API_ID_RESOURCE_CREATION; |
207 }; | 207 }; |
208 | 208 |
209 } // namespace thunk | 209 } // namespace thunk |
210 } // namespace ppapi | 210 } // namespace ppapi |
211 | 211 |
212 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 212 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
OLD | NEW |