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 #include "webkit/plugins/ppapi/mock_plugin_delegate.h" | 5 #include "webkit/plugins/ppapi/mock_plugin_delegate.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
9 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
10 #include "ppapi/shared_impl/ppapi_preferences.h" | 10 #include "ppapi/shared_impl/ppapi_preferences.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 return NULL; | 64 return NULL; |
65 } | 65 } |
66 | 66 |
67 MockPluginDelegate::PlatformVideoCapture* | 67 MockPluginDelegate::PlatformVideoCapture* |
68 MockPluginDelegate::CreateVideoCapture( | 68 MockPluginDelegate::CreateVideoCapture( |
69 const std::string& device_id, | 69 const std::string& device_id, |
70 PlatformVideoCaptureEventHandler* handler){ | 70 PlatformVideoCaptureEventHandler* handler){ |
71 return NULL; | 71 return NULL; |
72 } | 72 } |
73 | 73 |
| 74 uint32_t MockPluginDelegate::GetAudioHardwareOutputSampleRate() { |
| 75 return 0; |
| 76 } |
| 77 |
| 78 uint32_t MockPluginDelegate::GetAudioHardwareOutputBufferSize() { |
| 79 return 0; |
| 80 } |
| 81 |
74 MockPluginDelegate::PlatformAudio* MockPluginDelegate::CreateAudio( | 82 MockPluginDelegate::PlatformAudio* MockPluginDelegate::CreateAudio( |
75 uint32_t sample_rate, | 83 uint32_t sample_rate, |
76 uint32_t sample_count, | 84 uint32_t sample_count, |
77 PlatformAudioCommonClient* client) { | 85 PlatformAudioCommonClient* client) { |
78 return NULL; | 86 return NULL; |
79 } | 87 } |
80 | 88 |
81 MockPluginDelegate::PlatformAudioInput* MockPluginDelegate::CreateAudioInput( | 89 MockPluginDelegate::PlatformAudioInput* MockPluginDelegate::CreateAudioInput( |
82 uint32_t sample_rate, | 90 uint32_t sample_rate, |
83 uint32_t sample_count, | 91 uint32_t sample_count, |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 } | 388 } |
381 | 389 |
382 int MockPluginDelegate::EnumerateDevices( | 390 int MockPluginDelegate::EnumerateDevices( |
383 PP_DeviceType_Dev type, | 391 PP_DeviceType_Dev type, |
384 const EnumerateDevicesCallback& callback) { | 392 const EnumerateDevicesCallback& callback) { |
385 return -1; | 393 return -1; |
386 } | 394 } |
387 | 395 |
388 } // namespace ppapi | 396 } // namespace ppapi |
389 } // namespace webkit | 397 } // namespace webkit |
OLD | NEW |