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

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.h

Issue 11827040: Update RendererWebKitPlatformSupportImpl::createAudioDevice() to handle |input_channels| (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 unsigned key_size_index, 66 unsigned key_size_index,
67 const WebKit::WebString& challenge, 67 const WebKit::WebString& challenge,
68 const WebKit::WebURL& url); 68 const WebKit::WebURL& url);
69 virtual void screenColorProfile(WebKit::WebVector<char>* to_profile); 69 virtual void screenColorProfile(WebKit::WebVector<char>* to_profile);
70 virtual WebKit::WebIDBFactory* idbFactory(); 70 virtual WebKit::WebIDBFactory* idbFactory();
71 virtual WebKit::WebFileSystem* fileSystem(); 71 virtual WebKit::WebFileSystem* fileSystem();
72 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository(); 72 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository();
73 virtual bool canAccelerate2dCanvas(); 73 virtual bool canAccelerate2dCanvas();
74 virtual double audioHardwareSampleRate(); 74 virtual double audioHardwareSampleRate();
75 virtual size_t audioHardwareBufferSize(); 75 virtual size_t audioHardwareBufferSize();
76
77 // TODO(crogers): remove deprecated API as soon as WebKit calls new API.
76 virtual WebKit::WebAudioDevice* createAudioDevice( 78 virtual WebKit::WebAudioDevice* createAudioDevice(
77 size_t buffer_size, unsigned channels, double sample_rate, 79 size_t buffer_size, unsigned channels, double sample_rate,
78 WebKit::WebAudioDevice::RenderCallback* callback); 80 WebKit::WebAudioDevice::RenderCallback* callback);
81 virtual WebKit::WebAudioDevice* createAudioDevice(
82 size_t buffer_size, unsigned input_channels, unsigned channels,
83 double sample_rate, WebKit::WebAudioDevice::RenderCallback* callback);
84
79 virtual WebKit::WebBlobRegistry* blobRegistry(); 85 virtual WebKit::WebBlobRegistry* blobRegistry();
80 virtual void sampleGamepads(WebKit::WebGamepads&); 86 virtual void sampleGamepads(WebKit::WebGamepads&);
81 virtual WebKit::WebString userAgent(const WebKit::WebURL& url); 87 virtual WebKit::WebString userAgent(const WebKit::WebURL& url);
82 virtual void GetPlugins(bool refresh, 88 virtual void GetPlugins(bool refresh,
83 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; 89 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE;
84 virtual WebKit::WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler( 90 virtual WebKit::WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler(
85 WebKit::WebRTCPeerConnectionHandlerClient* client); 91 WebKit::WebRTCPeerConnectionHandlerClient* client);
86 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter( 92 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter(
87 WebKit::WebMediaStreamCenterClient* client); 93 WebKit::WebMediaStreamCenterClient* client);
88 virtual bool canHyphenate(const WebKit::WebString& locale); 94 virtual bool canHyphenate(const WebKit::WebString& locale);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; 147 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_;
142 148
143 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; 149 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
144 150
145 scoped_ptr<content::Hyphenator> hyphenator_; 151 scoped_ptr<content::Hyphenator> hyphenator_;
146 }; 152 };
147 153
148 } // namespace content 154 } // namespace content
149 155
150 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 156 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/renderer_webaudiodevice_impl.cc ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698