| 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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 uint32_t PepperPluginDelegateImpl::GetAudioHardwareOutputBufferSize() { | 824 uint32_t PepperPluginDelegateImpl::GetAudioHardwareOutputBufferSize() { |
| 825 return static_cast<uint32_t>(GetAudioOutputBufferSize()); | 825 return static_cast<uint32_t>(GetAudioOutputBufferSize()); |
| 826 } | 826 } |
| 827 | 827 |
| 828 webkit::ppapi::PluginDelegate::PlatformAudioOutput* | 828 webkit::ppapi::PluginDelegate::PlatformAudioOutput* |
| 829 PepperPluginDelegateImpl::CreateAudioOutput( | 829 PepperPluginDelegateImpl::CreateAudioOutput( |
| 830 uint32_t sample_rate, | 830 uint32_t sample_rate, |
| 831 uint32_t sample_count, | 831 uint32_t sample_count, |
| 832 webkit::ppapi::PluginDelegate::PlatformAudioOutputClient* client) { | 832 webkit::ppapi::PluginDelegate::PlatformAudioOutputClient* client) { |
| 833 return PepperPlatformAudioOutputImpl::Create( | 833 return PepperPlatformAudioOutputImpl::Create( |
| 834 static_cast<int>(sample_rate), static_cast<int>(sample_count), client); | 834 static_cast<int>(sample_rate), static_cast<int>(sample_count), |
| 835 GetRoutingID(), client); |
| 835 } | 836 } |
| 836 | 837 |
| 837 webkit::ppapi::PluginDelegate::PlatformAudioInput* | 838 webkit::ppapi::PluginDelegate::PlatformAudioInput* |
| 838 PepperPluginDelegateImpl::CreateAudioInput( | 839 PepperPluginDelegateImpl::CreateAudioInput( |
| 839 const std::string& device_id, | 840 const std::string& device_id, |
| 840 uint32_t sample_rate, | 841 uint32_t sample_rate, |
| 841 uint32_t sample_count, | 842 uint32_t sample_count, |
| 842 webkit::ppapi::PluginDelegate::PlatformAudioInputClient* client) { | 843 webkit::ppapi::PluginDelegate::PlatformAudioInputClient* client) { |
| 843 return PepperPlatformAudioInputImpl::Create( | 844 return PepperPlatformAudioInputImpl::Create( |
| 844 AsWeakPtr(), device_id, static_cast<int>(sample_rate), | 845 AsWeakPtr(), device_id, static_cast<int>(sample_rate), |
| (...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1804 RenderWidgetFullscreenPepper* container = | 1805 RenderWidgetFullscreenPepper* container = |
| 1805 static_cast<RenderWidgetFullscreenPepper*>( | 1806 static_cast<RenderWidgetFullscreenPepper*>( |
| 1806 instance->fullscreen_container()); | 1807 instance->fullscreen_container()); |
| 1807 return container->mouse_lock_dispatcher(); | 1808 return container->mouse_lock_dispatcher(); |
| 1808 } else { | 1809 } else { |
| 1809 return render_view_->mouse_lock_dispatcher(); | 1810 return render_view_->mouse_lock_dispatcher(); |
| 1810 } | 1811 } |
| 1811 } | 1812 } |
| 1812 | 1813 |
| 1813 } // namespace content | 1814 } // namespace content |
| OLD | NEW |