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

Side by Side Diff: ppapi/thunk/ppb_audio_input_api.h

Issue 11411047: Introduce PPB_AudioInput_Dev v0.3 and refactor the device enumeration code: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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/thunk/interfaces_ppb_public_dev.h ('k') | ppapi/thunk/ppb_audio_input_thunk.cc » ('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 #ifndef PPAPI_THUNK_AUDIO_INPUT_API_H_ 5 #ifndef PPAPI_THUNK_AUDIO_INPUT_API_H_
6 #define PPAPI_THUNK_AUDIO_INPUT_API_H_ 6 #define PPAPI_THUNK_AUDIO_INPUT_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "ppapi/c/dev/ppb_audio_input_dev.h" 11 #include "ppapi/c/dev/ppb_audio_input_dev.h"
12 12
13 namespace ppapi { 13 namespace ppapi {
14 14
15 class TrackedCallback; 15 class TrackedCallback;
16 16
17 namespace thunk { 17 namespace thunk {
18 18
19 class PPB_AudioInput_API { 19 class PPB_AudioInput_API {
20 public: 20 public:
21 virtual ~PPB_AudioInput_API() {} 21 virtual ~PPB_AudioInput_API() {}
22 22
23 virtual int32_t EnumerateDevices(PP_Resource* devices, 23 virtual int32_t EnumerateDevices0_2(
24 PP_Resource* devices,
25 scoped_refptr<TrackedCallback> callback) = 0;
26 virtual int32_t EnumerateDevices(const PP_ArrayOutput& output,
24 scoped_refptr<TrackedCallback> callback) = 0; 27 scoped_refptr<TrackedCallback> callback) = 0;
28 virtual int32_t MonitorDeviceChange(PP_MonitorDeviceChangeCallback callback,
29 void* user_data) = 0;
25 virtual int32_t Open(const std::string& device_id, 30 virtual int32_t Open(const std::string& device_id,
26 PP_Resource config, 31 PP_Resource config,
27 PPB_AudioInput_Callback audio_input_callback, 32 PPB_AudioInput_Callback audio_input_callback,
28 void* user_data, 33 void* user_data,
29 scoped_refptr<TrackedCallback> callback) = 0; 34 scoped_refptr<TrackedCallback> callback) = 0;
30 virtual PP_Resource GetCurrentConfig() = 0; 35 virtual PP_Resource GetCurrentConfig() = 0;
31 virtual PP_Bool StartCapture() = 0; 36 virtual PP_Bool StartCapture() = 0;
32 virtual PP_Bool StopCapture() = 0; 37 virtual PP_Bool StopCapture() = 0;
33 virtual void Close() = 0; 38 virtual void Close() = 0;
34 }; 39 };
35 40
36 } // namespace thunk 41 } // namespace thunk
37 } // namespace ppapi 42 } // namespace ppapi
38 43
39 #endif // PPAPI_THUNK_AUDIO_INPUT_API_H_ 44 #endif // PPAPI_THUNK_AUDIO_INPUT_API_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/interfaces_ppb_public_dev.h ('k') | ppapi/thunk/ppb_audio_input_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698