Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: ppapi/c/dev/ppb_audio_input_dev.h

Issue 115343006: Pepper: Remove unused interface versions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/api/dev/ppb_video_capture_dev.idl ('k') | ppapi/c/dev/ppb_video_capture_dev.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 5
6 /* From dev/ppb_audio_input_dev.idl modified Fri May 10 16:06:35 2013. */ 6 /* From dev/ppb_audio_input_dev.idl modified Thu Dec 12 15:35:39 2013. */
7 7
8 #ifndef PPAPI_C_DEV_PPB_AUDIO_INPUT_DEV_H_ 8 #ifndef PPAPI_C_DEV_PPB_AUDIO_INPUT_DEV_H_
9 #define PPAPI_C_DEV_PPB_AUDIO_INPUT_DEV_H_ 9 #define PPAPI_C_DEV_PPB_AUDIO_INPUT_DEV_H_
10 10
11 #include "ppapi/c/dev/ppb_device_ref_dev.h" 11 #include "ppapi/c/dev/ppb_device_ref_dev.h"
12 #include "ppapi/c/pp_array_output.h" 12 #include "ppapi/c/pp_array_output.h"
13 #include "ppapi/c/pp_bool.h" 13 #include "ppapi/c/pp_bool.h"
14 #include "ppapi/c/pp_completion_callback.h" 14 #include "ppapi/c/pp_completion_callback.h"
15 #include "ppapi/c/pp_instance.h" 15 #include "ppapi/c/pp_instance.h"
16 #include "ppapi/c/pp_macros.h" 16 #include "ppapi/c/pp_macros.h"
17 #include "ppapi/c/pp_resource.h" 17 #include "ppapi/c/pp_resource.h"
18 #include "ppapi/c/pp_stdint.h" 18 #include "ppapi/c/pp_stdint.h"
19 #include "ppapi/c/pp_time.h" 19 #include "ppapi/c/pp_time.h"
20 20
21 #define PPB_AUDIO_INPUT_DEV_INTERFACE_0_2 "PPB_AudioInput(Dev);0.2"
22 #define PPB_AUDIO_INPUT_DEV_INTERFACE_0_3 "PPB_AudioInput(Dev);0.3" 21 #define PPB_AUDIO_INPUT_DEV_INTERFACE_0_3 "PPB_AudioInput(Dev);0.3"
23 #define PPB_AUDIO_INPUT_DEV_INTERFACE_0_4 "PPB_AudioInput(Dev);0.4" 22 #define PPB_AUDIO_INPUT_DEV_INTERFACE_0_4 "PPB_AudioInput(Dev);0.4"
24 #define PPB_AUDIO_INPUT_DEV_INTERFACE PPB_AUDIO_INPUT_DEV_INTERFACE_0_4 23 #define PPB_AUDIO_INPUT_DEV_INTERFACE PPB_AUDIO_INPUT_DEV_INTERFACE_0_4
25 24
26 /** 25 /**
27 * @file 26 * @file
28 * This file defines the <code>PPB_AudioInput_Dev</code> interface, which 27 * This file defines the <code>PPB_AudioInput_Dev</code> interface, which
29 * provides realtime audio input capture. 28 * provides realtime audio input capture.
30 */ 29 */
31 30
(...skipping 11 matching lines...) Expand all
43 * @param[in] buffer_size_in_bytes The size of the buffer in bytes. 42 * @param[in] buffer_size_in_bytes The size of the buffer in bytes.
44 * @param[in] latency The time that has elapsed since the data was recorded. 43 * @param[in] latency The time that has elapsed since the data was recorded.
45 * @param[inout] user_data An opaque pointer that was passed into 44 * @param[inout] user_data An opaque pointer that was passed into
46 * <code>PPB_AudioInput_Dev.Open()</code>. 45 * <code>PPB_AudioInput_Dev.Open()</code>.
47 */ 46 */
48 typedef void (*PPB_AudioInput_Callback)(const void* sample_buffer, 47 typedef void (*PPB_AudioInput_Callback)(const void* sample_buffer,
49 uint32_t buffer_size_in_bytes, 48 uint32_t buffer_size_in_bytes,
50 PP_TimeDelta latency, 49 PP_TimeDelta latency,
51 void* user_data); 50 void* user_data);
52 51
53 typedef void (*PPB_AudioInput_Callback_0_2)(const void* sample_buffer, 52 typedef void (*PPB_AudioInput_Callback_0_3)(const void* sample_buffer,
54 uint32_t buffer_size_in_bytes, 53 uint32_t buffer_size_in_bytes,
55 void* user_data); 54 void* user_data);
56 /** 55 /**
57 * @} 56 * @}
58 */ 57 */
59 58
60 /** 59 /**
61 * @addtogroup Interfaces 60 * @addtogroup Interfaces
62 * @{ 61 * @{
63 */ 62 */
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 * it will be implicitly closed, so you are not required to call this method. 203 * it will be implicitly closed, so you are not required to call this method.
205 * 204 *
206 * @param[in] audio_input A <code>PP_Resource</code> corresponding to an audio 205 * @param[in] audio_input A <code>PP_Resource</code> corresponding to an audio
207 * input resource. 206 * input resource.
208 */ 207 */
209 void (*Close)(PP_Resource audio_input); 208 void (*Close)(PP_Resource audio_input);
210 }; 209 };
211 210
212 typedef struct PPB_AudioInput_Dev_0_4 PPB_AudioInput_Dev; 211 typedef struct PPB_AudioInput_Dev_0_4 PPB_AudioInput_Dev;
213 212
214 struct PPB_AudioInput_Dev_0_2 {
215 PP_Resource (*Create)(PP_Instance instance);
216 PP_Bool (*IsAudioInput)(PP_Resource resource);
217 int32_t (*EnumerateDevices)(PP_Resource audio_input,
218 PP_Resource* devices,
219 struct PP_CompletionCallback callback);
220 int32_t (*Open)(PP_Resource audio_input,
221 PP_Resource device_ref,
222 PP_Resource config,
223 PPB_AudioInput_Callback_0_2 audio_input_callback,
224 void* user_data,
225 struct PP_CompletionCallback callback);
226 PP_Resource (*GetCurrentConfig)(PP_Resource audio_input);
227 PP_Bool (*StartCapture)(PP_Resource audio_input);
228 PP_Bool (*StopCapture)(PP_Resource audio_input);
229 void (*Close)(PP_Resource audio_input);
230 };
231
232 struct PPB_AudioInput_Dev_0_3 { 213 struct PPB_AudioInput_Dev_0_3 {
233 PP_Resource (*Create)(PP_Instance instance); 214 PP_Resource (*Create)(PP_Instance instance);
234 PP_Bool (*IsAudioInput)(PP_Resource resource); 215 PP_Bool (*IsAudioInput)(PP_Resource resource);
235 int32_t (*EnumerateDevices)(PP_Resource audio_input, 216 int32_t (*EnumerateDevices)(PP_Resource audio_input,
236 struct PP_ArrayOutput output, 217 struct PP_ArrayOutput output,
237 struct PP_CompletionCallback callback); 218 struct PP_CompletionCallback callback);
238 int32_t (*MonitorDeviceChange)(PP_Resource audio_input, 219 int32_t (*MonitorDeviceChange)(PP_Resource audio_input,
239 PP_MonitorDeviceChangeCallback callback, 220 PP_MonitorDeviceChangeCallback callback,
240 void* user_data); 221 void* user_data);
241 int32_t (*Open)(PP_Resource audio_input, 222 int32_t (*Open)(PP_Resource audio_input,
242 PP_Resource device_ref, 223 PP_Resource device_ref,
243 PP_Resource config, 224 PP_Resource config,
244 PPB_AudioInput_Callback_0_2 audio_input_callback, 225 PPB_AudioInput_Callback_0_3 audio_input_callback,
245 void* user_data, 226 void* user_data,
246 struct PP_CompletionCallback callback); 227 struct PP_CompletionCallback callback);
247 PP_Resource (*GetCurrentConfig)(PP_Resource audio_input); 228 PP_Resource (*GetCurrentConfig)(PP_Resource audio_input);
248 PP_Bool (*StartCapture)(PP_Resource audio_input); 229 PP_Bool (*StartCapture)(PP_Resource audio_input);
249 PP_Bool (*StopCapture)(PP_Resource audio_input); 230 PP_Bool (*StopCapture)(PP_Resource audio_input);
250 void (*Close)(PP_Resource audio_input); 231 void (*Close)(PP_Resource audio_input);
251 }; 232 };
252 /** 233 /**
253 * @} 234 * @}
254 */ 235 */
255 236
256 #endif /* PPAPI_C_DEV_PPB_AUDIO_INPUT_DEV_H_ */ 237 #endif /* PPAPI_C_DEV_PPB_AUDIO_INPUT_DEV_H_ */
257 238
OLDNEW
« no previous file with comments | « ppapi/api/dev/ppb_video_capture_dev.idl ('k') | ppapi/c/dev/ppb_video_capture_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698