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/dev/ppb_video_layer_dev.h" | 10 #include "ppapi/c/dev/ppb_video_layer_dev.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 PPB_Audio_Callback audio_callback, | 96 PPB_Audio_Callback audio_callback, |
97 void* user_data) = 0; | 97 void* user_data) = 0; |
98 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) = 0; | 98 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) = 0; |
99 virtual PP_Resource CreateAudioConfig(PP_Instance instance, | 99 virtual PP_Resource CreateAudioConfig(PP_Instance instance, |
100 PP_AudioSampleRate sample_rate, | 100 PP_AudioSampleRate sample_rate, |
101 uint32_t sample_frame_count) = 0; | 101 uint32_t sample_frame_count) = 0; |
102 virtual PP_Resource CreateImageData(PP_Instance instance, | 102 virtual PP_Resource CreateImageData(PP_Instance instance, |
103 PP_ImageDataFormat format, | 103 PP_ImageDataFormat format, |
104 const PP_Size& size, | 104 const PP_Size& size, |
105 PP_Bool init_to_zero) = 0; | 105 PP_Bool init_to_zero) = 0; |
| 106 virtual PP_Resource CreateImageDataNaCl(PP_Instance instance, |
| 107 PP_ImageDataFormat format, |
| 108 const PP_Size& size, |
| 109 PP_Bool init_to_zero) = 0; |
106 virtual PP_Resource CreateGraphics2D(PP_Instance instance, | 110 virtual PP_Resource CreateGraphics2D(PP_Instance instance, |
107 const PP_Size& size, | 111 const PP_Size& size, |
108 PP_Bool is_always_opaque) = 0; | 112 PP_Bool is_always_opaque) = 0; |
109 #if !defined(OS_NACL) | 113 #if !defined(OS_NACL) |
110 virtual PP_Resource CreateAudioInput0_1( | 114 virtual PP_Resource CreateAudioInput0_1( |
111 PP_Instance instance, | 115 PP_Instance instance, |
112 PP_Resource config_id, | 116 PP_Resource config_id, |
113 PPB_AudioInput_Callback audio_input_callback, | 117 PPB_AudioInput_Callback audio_input_callback, |
114 void* user_data) = 0; | 118 void* user_data) = 0; |
115 virtual PP_Resource CreateAudioInput(PP_Instance instance) = 0; | 119 virtual PP_Resource CreateAudioInput(PP_Instance instance) = 0; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 virtual PP_Resource CreateX509CertificatePrivate(PP_Instance instance) = 0; | 159 virtual PP_Resource CreateX509CertificatePrivate(PP_Instance instance) = 0; |
156 #endif // !defined(OS_NACL) | 160 #endif // !defined(OS_NACL) |
157 | 161 |
158 static const ApiID kApiID = API_ID_RESOURCE_CREATION; | 162 static const ApiID kApiID = API_ID_RESOURCE_CREATION; |
159 }; | 163 }; |
160 | 164 |
161 } // namespace thunk | 165 } // namespace thunk |
162 } // namespace ppapi | 166 } // namespace ppapi |
163 | 167 |
164 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 168 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
OLD | NEW |