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 "content/renderer/pepper/pepper_plugin_delegate_impl.h" | 5 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <cstddef> | 8 #include <cstddef> |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 uint32_t PepperPluginDelegateImpl::GetAudioHardwareOutputBufferSize() { | 833 uint32_t PepperPluginDelegateImpl::GetAudioHardwareOutputBufferSize() { |
834 return static_cast<uint32_t>(GetAudioOutputBufferSize()); | 834 return static_cast<uint32_t>(GetAudioOutputBufferSize()); |
835 } | 835 } |
836 | 836 |
837 webkit::ppapi::PluginDelegate::PlatformAudioOutput* | 837 webkit::ppapi::PluginDelegate::PlatformAudioOutput* |
838 PepperPluginDelegateImpl::CreateAudioOutput( | 838 PepperPluginDelegateImpl::CreateAudioOutput( |
839 uint32_t sample_rate, | 839 uint32_t sample_rate, |
840 uint32_t sample_count, | 840 uint32_t sample_count, |
841 webkit::ppapi::PluginDelegate::PlatformAudioOutputClient* client) { | 841 webkit::ppapi::PluginDelegate::PlatformAudioOutputClient* client) { |
842 return PepperPlatformAudioOutputImpl::Create( | 842 return PepperPlatformAudioOutputImpl::Create( |
843 static_cast<int>(sample_rate), static_cast<int>(sample_count), client); | 843 static_cast<int>(sample_rate), static_cast<int>(sample_count), |
| 844 GetRoutingID(), client); |
844 } | 845 } |
845 | 846 |
846 webkit::ppapi::PluginDelegate::PlatformAudioInput* | 847 webkit::ppapi::PluginDelegate::PlatformAudioInput* |
847 PepperPluginDelegateImpl::CreateAudioInput( | 848 PepperPluginDelegateImpl::CreateAudioInput( |
848 const std::string& device_id, | 849 const std::string& device_id, |
849 uint32_t sample_rate, | 850 uint32_t sample_rate, |
850 uint32_t sample_count, | 851 uint32_t sample_count, |
851 webkit::ppapi::PluginDelegate::PlatformAudioInputClient* client) { | 852 webkit::ppapi::PluginDelegate::PlatformAudioInputClient* client) { |
852 return PepperPlatformAudioInputImpl::Create( | 853 return PepperPlatformAudioInputImpl::Create( |
853 AsWeakPtr(), device_id, static_cast<int>(sample_rate), | 854 AsWeakPtr(), device_id, static_cast<int>(sample_rate), |
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1807 RenderWidgetFullscreenPepper* container = | 1808 RenderWidgetFullscreenPepper* container = |
1808 static_cast<RenderWidgetFullscreenPepper*>( | 1809 static_cast<RenderWidgetFullscreenPepper*>( |
1809 instance->fullscreen_container()); | 1810 instance->fullscreen_container()); |
1810 return container->mouse_lock_dispatcher(); | 1811 return container->mouse_lock_dispatcher(); |
1811 } else { | 1812 } else { |
1812 return render_view_->mouse_lock_dispatcher(); | 1813 return render_view_->mouse_lock_dispatcher(); |
1813 } | 1814 } |
1814 } | 1815 } |
1815 | 1816 |
1816 } // namespace content | 1817 } // namespace content |
OLD | NEW |