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 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
297 | 297 |
298 // The caller will own the pointer returned from this. | 298 // The caller will own the pointer returned from this. |
299 virtual PlatformVideoCapture* CreateVideoCapture( | 299 virtual PlatformVideoCapture* CreateVideoCapture( |
300 media::VideoCapture::EventHandler* handler) = 0; | 300 media::VideoCapture::EventHandler* handler) = 0; |
301 | 301 |
302 // The caller will own the pointer returned from this. | 302 // The caller will own the pointer returned from this. |
303 virtual PlatformVideoDecoder* CreateVideoDecoder( | 303 virtual PlatformVideoDecoder* CreateVideoDecoder( |
304 media::VideoDecodeAccelerator::Client* client, | 304 media::VideoDecodeAccelerator::Client* client, |
305 int32 command_buffer_route_id) = 0; | 305 int32 command_buffer_route_id) = 0; |
306 | 306 |
307 // Get audio hardware output sample rate. | |
308 virtual uint32_t AudioHardwareOutputSampleRate() = 0; | |
brettw
2012/02/10 19:01:33
Can this be called "GetAudio..." (same for the oth
nfullagar
2012/02/14 00:42:37
Done.
| |
309 | |
310 // Get audio hardware output buffer size. | |
311 virtual uint32_t AudioHardwareOutputBufferSize() = 0; | |
312 | |
307 // The caller is responsible for calling Shutdown() on the returned pointer | 313 // The caller is responsible for calling Shutdown() on the returned pointer |
308 // to clean up the corresponding resources allocated during this call. | 314 // to clean up the corresponding resources allocated during this call. |
309 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, | 315 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, |
310 uint32_t sample_count, | 316 uint32_t sample_count, |
311 PlatformAudioCommonClient* client) = 0; | 317 PlatformAudioCommonClient* client) = 0; |
312 | 318 |
313 // The caller is responsible for calling Shutdown() on the returned pointer | 319 // The caller is responsible for calling Shutdown() on the returned pointer |
314 // to clean up the corresponding resources allocated during this call. | 320 // to clean up the corresponding resources allocated during this call. |
315 virtual PlatformAudioInput* CreateAudioInput(uint32_t sample_rate, | 321 virtual PlatformAudioInput* CreateAudioInput(uint32_t sample_rate, |
316 uint32_t sample_count, | 322 uint32_t sample_count, |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
523 virtual void SampleGamepads(WebKit::WebGamepads* data) = 0; | 529 virtual void SampleGamepads(WebKit::WebGamepads* data) = 0; |
524 | 530 |
525 // Returns true if the containing page is visible. | 531 // Returns true if the containing page is visible. |
526 virtual bool IsPageVisible() const = 0; | 532 virtual bool IsPageVisible() const = 0; |
527 }; | 533 }; |
528 | 534 |
529 } // namespace ppapi | 535 } // namespace ppapi |
530 } // namespace webkit | 536 } // namespace webkit |
531 | 537 |
532 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 538 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |