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

Side by Side Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 9557007: PPB_AudioInput_Dev: support multiple audio input devices - Part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes in response to Trung's comments. Created 8 years, 9 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/thunk/resource_creation_api.h ('k') | webkit/plugins/ppapi/ppb_audio_input_impl.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 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // Closes the stream. Make sure to call this before the object is 215 // Closes the stream. Make sure to call this before the object is
216 // destructed. 216 // destructed.
217 virtual void ShutDown() = 0; 217 virtual void ShutDown() = 0;
218 218
219 protected: 219 protected:
220 virtual ~PlatformAudioOutput() {} 220 virtual ~PlatformAudioOutput() {}
221 }; 221 };
222 222
223 class PlatformAudioInput { 223 class PlatformAudioInput {
224 public: 224 public:
225 // Starts the playback. Returns false on error or if called before the 225 // Starts the capture. Returns false on error or if called before the
226 // stream is created or after the stream is closed. 226 // stream is created or after the stream is closed.
227 virtual bool StartCapture() = 0; 227 virtual bool StartCapture() = 0;
228 228
229 // Stops the capture. Returns false on error or if called before the stream 229 // Stops the capture. Returns false on error or if called before the stream
230 // is created or after the stream is closed. 230 // is created or after the stream is closed.
231 virtual bool StopCapture() = 0; 231 virtual bool StopCapture() = 0;
232 232
233 // Closes the stream. Make sure to call this before the object is 233 // Closes the stream. Make sure to call this before the object is
234 // destructed. 234 // destructed.
235 virtual void ShutDown() = 0; 235 virtual void ShutDown() = 0;
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 const EnumerateDevicesCallback& callback) = 0; 579 const EnumerateDevicesCallback& callback) = 0;
580 // Create a ClipboardClient for writing to the clipboard. The caller will own 580 // Create a ClipboardClient for writing to the clipboard. The caller will own
581 // the pointer to this. 581 // the pointer to this.
582 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; 582 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0;
583 }; 583 };
584 584
585 } // namespace ppapi 585 } // namespace ppapi
586 } // namespace webkit 586 } // namespace webkit
587 587
588 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 588 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/resource_creation_api.h ('k') | webkit/plugins/ppapi/ppb_audio_input_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698