| 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 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |