Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: content/renderer/pepper/pepper_plugin_delegate_impl.cc

Issue 9655018: Make AudioParameters a class instead of a struct (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright years Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 591
592 uint32_t PepperPluginDelegateImpl::GetAudioHardwareOutputBufferSize() { 592 uint32_t PepperPluginDelegateImpl::GetAudioHardwareOutputBufferSize() {
593 return static_cast<uint32_t>(audio_hardware::GetOutputBufferSize()); 593 return static_cast<uint32_t>(audio_hardware::GetOutputBufferSize());
594 } 594 }
595 595
596 webkit::ppapi::PluginDelegate::PlatformAudioOutput* 596 webkit::ppapi::PluginDelegate::PlatformAudioOutput*
597 PepperPluginDelegateImpl::CreateAudioOutput( 597 PepperPluginDelegateImpl::CreateAudioOutput(
598 uint32_t sample_rate, 598 uint32_t sample_rate,
599 uint32_t sample_count, 599 uint32_t sample_count,
600 webkit::ppapi::PluginDelegate::PlatformAudioCommonClient* client) { 600 webkit::ppapi::PluginDelegate::PlatformAudioCommonClient* client) {
601 return PepperPlatformAudioOutputImpl::Create(sample_rate, sample_count, 601 return PepperPlatformAudioOutputImpl::Create(
602 client); 602 static_cast<int>(sample_rate), static_cast<int>(sample_count), client);
603 } 603 }
604 604
605 webkit::ppapi::PluginDelegate::PlatformAudioInput* 605 webkit::ppapi::PluginDelegate::PlatformAudioInput*
606 PepperPluginDelegateImpl::CreateAudioInput( 606 PepperPluginDelegateImpl::CreateAudioInput(
607 uint32_t sample_rate, 607 uint32_t sample_rate,
608 uint32_t sample_count, 608 uint32_t sample_count,
609 webkit::ppapi::PluginDelegate::PlatformAudioCommonClient* client) { 609 webkit::ppapi::PluginDelegate::PlatformAudioCommonClient* client) {
610 return PepperPlatformAudioInputImpl::Create(sample_rate, sample_count, 610 return PepperPlatformAudioInputImpl::Create(
611 client); 611 static_cast<int>(sample_rate), static_cast<int>(sample_count), client);
612 } 612 }
613 613
614 // If a broker has not already been created for this plugin, creates one. 614 // If a broker has not already been created for this plugin, creates one.
615 webkit::ppapi::PluginDelegate::Broker* 615 webkit::ppapi::PluginDelegate::Broker*
616 PepperPluginDelegateImpl::ConnectToBroker( 616 PepperPluginDelegateImpl::ConnectToBroker(
617 webkit::ppapi::PPB_Broker_Impl* client) { 617 webkit::ppapi::PPB_Broker_Impl* client) {
618 DCHECK(client); 618 DCHECK(client);
619 619
620 // If a broker needs to be created, this will ensure it does not get deleted 620 // If a broker needs to be created, this will ensure it does not get deleted
621 // before Connect() adds a reference. 621 // before Connect() adds a reference.
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1647 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target); 1647 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target);
1648 delete target; 1648 delete target;
1649 mouse_lock_instances_.erase(it); 1649 mouse_lock_instances_.erase(it);
1650 } 1650 }
1651 } 1651 }
1652 1652
1653 webkit_glue::ClipboardClient* 1653 webkit_glue::ClipboardClient*
1654 PepperPluginDelegateImpl::CreateClipboardClient() const { 1654 PepperPluginDelegateImpl::CreateClipboardClient() const {
1655 return new RendererClipboardClient; 1655 return new RendererClipboardClient;
1656 } 1656 }
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_platform_audio_output_impl.cc ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698