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 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 uint32_t PepperPluginDelegateImpl::GetAudioHardwareOutputBufferSize() { | 758 uint32_t PepperPluginDelegateImpl::GetAudioHardwareOutputBufferSize() { |
759 return static_cast<uint32_t>(audio_hardware::GetOutputBufferSize()); | 759 return static_cast<uint32_t>(audio_hardware::GetOutputBufferSize()); |
760 } | 760 } |
761 | 761 |
762 webkit::ppapi::PluginDelegate::PlatformAudioOutput* | 762 webkit::ppapi::PluginDelegate::PlatformAudioOutput* |
763 PepperPluginDelegateImpl::CreateAudioOutput( | 763 PepperPluginDelegateImpl::CreateAudioOutput( |
764 uint32_t sample_rate, | 764 uint32_t sample_rate, |
765 uint32_t sample_count, | 765 uint32_t sample_count, |
766 webkit::ppapi::PluginDelegate::PlatformAudioOutputClient* client) { | 766 webkit::ppapi::PluginDelegate::PlatformAudioOutputClient* client) { |
767 return PepperPlatformAudioOutputImpl::Create( | 767 return PepperPlatformAudioOutputImpl::Create( |
| 768 render_view_->GetRoutingID(), |
768 static_cast<int>(sample_rate), static_cast<int>(sample_count), client); | 769 static_cast<int>(sample_rate), static_cast<int>(sample_count), client); |
769 } | 770 } |
770 | 771 |
771 webkit::ppapi::PluginDelegate::PlatformAudioInput* | 772 webkit::ppapi::PluginDelegate::PlatformAudioInput* |
772 PepperPluginDelegateImpl::CreateAudioInput( | 773 PepperPluginDelegateImpl::CreateAudioInput( |
773 const std::string& device_id, | 774 const std::string& device_id, |
774 uint32_t sample_rate, | 775 uint32_t sample_rate, |
775 uint32_t sample_count, | 776 uint32_t sample_count, |
776 webkit::ppapi::PluginDelegate::PlatformAudioInputClient* client) { | 777 webkit::ppapi::PluginDelegate::PlatformAudioInputClient* client) { |
777 return PepperPlatformAudioInputImpl::Create( | 778 return PepperPlatformAudioInputImpl::Create( |
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1750 else | 1751 else |
1751 return render_view_->mouse_lock_dispatcher(); | 1752 return render_view_->mouse_lock_dispatcher(); |
1752 } | 1753 } |
1753 | 1754 |
1754 webkit_glue::ClipboardClient* | 1755 webkit_glue::ClipboardClient* |
1755 PepperPluginDelegateImpl::CreateClipboardClient() const { | 1756 PepperPluginDelegateImpl::CreateClipboardClient() const { |
1756 return new RendererClipboardClient; | 1757 return new RendererClipboardClient; |
1757 } | 1758 } |
1758 | 1759 |
1759 } // namespace content | 1760 } // namespace content |
OLD | NEW |