| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 PP_Bool scroll_by_page) = 0; | 113 PP_Bool scroll_by_page) = 0; |
| 114 | 114 |
| 115 virtual PP_Resource CreateAudio1_0(PP_Instance instance, | 115 virtual PP_Resource CreateAudio1_0(PP_Instance instance, |
| 116 PP_Resource config_id, | 116 PP_Resource config_id, |
| 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 CreateAudioEncoder(PP_Instance instance) = 0; |
| 123 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) = 0; | 124 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) = 0; |
| 124 virtual PP_Resource CreateAudioConfig(PP_Instance instance, | 125 virtual PP_Resource CreateAudioConfig(PP_Instance instance, |
| 125 PP_AudioSampleRate sample_rate, | 126 PP_AudioSampleRate sample_rate, |
| 126 uint32_t sample_frame_count) = 0; | 127 uint32_t sample_frame_count) = 0; |
| 127 virtual PP_Resource CreateCameraDevicePrivate(PP_Instance instance) = 0; | 128 virtual PP_Resource CreateCameraDevicePrivate(PP_Instance instance) = 0; |
| 128 virtual PP_Resource CreateCompositor(PP_Instance instance) = 0; | 129 virtual PP_Resource CreateCompositor(PP_Instance instance) = 0; |
| 129 virtual PP_Resource CreateFileChooser(PP_Instance instance, | 130 virtual PP_Resource CreateFileChooser(PP_Instance instance, |
| 130 PP_FileChooserMode_Dev mode, | 131 PP_FileChooserMode_Dev mode, |
| 131 const PP_Var& accept_types) = 0; | 132 const PP_Var& accept_types) = 0; |
| 132 virtual PP_Resource CreateGraphics2D(PP_Instance instance, | 133 virtual PP_Resource CreateGraphics2D(PP_Instance instance, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 PP_VideoDecoder_Profile profile) = 0; | 203 PP_VideoDecoder_Profile profile) = 0; |
| 203 #endif // !defined(OS_NACL) | 204 #endif // !defined(OS_NACL) |
| 204 | 205 |
| 205 static const ApiID kApiID = API_ID_RESOURCE_CREATION; | 206 static const ApiID kApiID = API_ID_RESOURCE_CREATION; |
| 206 }; | 207 }; |
| 207 | 208 |
| 208 } // namespace thunk | 209 } // namespace thunk |
| 209 } // namespace ppapi | 210 } // namespace ppapi |
| 210 | 211 |
| 211 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 212 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
| OLD | NEW |