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

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

Issue 11366038: Rewrite PPB_AudioInput_Dev to use the new-style host/resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month 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
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 Sat Mar 3 23:06:35 2012. */ 6 /* From dev/ppb_audio_input_dev.idl modified Mon Oct 29 14:40:53 2012. */
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/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_completion_callback.h" 12 #include "ppapi/c/pp_completion_callback.h"
13 #include "ppapi/c/pp_instance.h" 13 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_macros.h" 14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_resource.h" 15 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/c/pp_stdint.h" 16 #include "ppapi/c/pp_stdint.h"
17 17
18 #define PPB_AUDIO_INPUT_DEV_INTERFACE_0_1 "PPB_AudioInput(Dev);0.1"
19 #define PPB_AUDIO_INPUT_DEV_INTERFACE_0_2 "PPB_AudioInput(Dev);0.2" 18 #define PPB_AUDIO_INPUT_DEV_INTERFACE_0_2 "PPB_AudioInput(Dev);0.2"
20 #define PPB_AUDIO_INPUT_DEV_INTERFACE PPB_AUDIO_INPUT_DEV_INTERFACE_0_2 19 #define PPB_AUDIO_INPUT_DEV_INTERFACE PPB_AUDIO_INPUT_DEV_INTERFACE_0_2
21 20
22 /** 21 /**
23 * @file 22 * @file
24 * This file defines the <code>PPB_AudioInput_Dev</code> interface, which 23 * This file defines the <code>PPB_AudioInput_Dev</code> interface, which
25 * provides realtime audio input capture. 24 * provides realtime audio input capture.
26 */ 25 */
27 26
28 27
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 * If an audio input resource is destroyed while a device is still open, then 160 * If an audio input resource is destroyed while a device is still open, then
162 * it will be implicitly closed, so you are not required to call this method. 161 * it will be implicitly closed, so you are not required to call this method.
163 * 162 *
164 * @param[in] audio_input A <code>PP_Resource</code> corresponding to an audio 163 * @param[in] audio_input A <code>PP_Resource</code> corresponding to an audio
165 * input resource. 164 * input resource.
166 */ 165 */
167 void (*Close)(PP_Resource audio_input); 166 void (*Close)(PP_Resource audio_input);
168 }; 167 };
169 168
170 typedef struct PPB_AudioInput_Dev_0_2 PPB_AudioInput_Dev; 169 typedef struct PPB_AudioInput_Dev_0_2 PPB_AudioInput_Dev;
171
172 struct PPB_AudioInput_Dev_0_1 {
173 PP_Resource (*Create)(PP_Instance instance,
174 PP_Resource config,
175 PPB_AudioInput_Callback audio_input_callback,
176 void* user_data);
177 PP_Bool (*IsAudioInput)(PP_Resource resource);
178 PP_Resource (*GetCurrentConfig)(PP_Resource audio_input);
179 PP_Bool (*StartCapture)(PP_Resource audio_input);
180 PP_Bool (*StopCapture)(PP_Resource audio_input);
181 };
182 /** 170 /**
183 * @} 171 * @}
184 */ 172 */
185 173
186 #endif /* PPAPI_C_DEV_PPB_AUDIO_INPUT_DEV_H_ */ 174 #endif /* PPAPI_C_DEV_PPB_AUDIO_INPUT_DEV_H_ */
187 175
OLDNEW
« no previous file with comments | « ppapi/api/trusted/ppb_audio_input_trusted_dev.idl ('k') | ppapi/c/trusted/ppb_audio_input_trusted_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698