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 #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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 virtual blink::WebScrollbarBehavior* scrollbarBehavior(); | 95 virtual blink::WebScrollbarBehavior* scrollbarBehavior(); |
96 virtual blink::WebIDBFactory* idbFactory(); | 96 virtual blink::WebIDBFactory* idbFactory(); |
97 virtual blink::WebFileSystem* fileSystem(); | 97 virtual blink::WebFileSystem* fileSystem(); |
98 virtual bool canAccelerate2dCanvas(); | 98 virtual bool canAccelerate2dCanvas(); |
99 virtual bool isThreadedCompositingEnabled(); | 99 virtual bool isThreadedCompositingEnabled(); |
100 virtual double audioHardwareSampleRate(); | 100 virtual double audioHardwareSampleRate(); |
101 virtual size_t audioHardwareBufferSize(); | 101 virtual size_t audioHardwareBufferSize(); |
102 virtual unsigned audioHardwareOutputChannels(); | 102 virtual unsigned audioHardwareOutputChannels(); |
103 virtual blink::WebDatabaseObserver* databaseObserver(); | 103 virtual blink::WebDatabaseObserver* databaseObserver(); |
104 | 104 |
105 // TODO(crogers): remove deprecated API as soon as WebKit calls new API. | |
106 virtual blink::WebAudioDevice* createAudioDevice( | |
107 size_t buffer_size, unsigned channels, double sample_rate, | |
108 blink::WebAudioDevice::RenderCallback* callback); | |
109 // TODO(crogers): remove deprecated API as soon as WebKit calls new API. | |
110 virtual blink::WebAudioDevice* createAudioDevice( | |
111 size_t buffer_size, unsigned input_channels, unsigned channels, | |
112 double sample_rate, blink::WebAudioDevice::RenderCallback* callback); | |
113 | |
114 virtual blink::WebAudioDevice* createAudioDevice( | 105 virtual blink::WebAudioDevice* createAudioDevice( |
115 size_t buffer_size, unsigned input_channels, unsigned channels, | 106 size_t buffer_size, unsigned input_channels, unsigned channels, |
116 double sample_rate, blink::WebAudioDevice::RenderCallback* callback, | 107 double sample_rate, blink::WebAudioDevice::RenderCallback* callback, |
117 const blink::WebString& input_device_id); | 108 const blink::WebString& input_device_id); |
118 | 109 |
119 virtual bool loadAudioResource( | 110 virtual bool loadAudioResource( |
120 blink::WebAudioBus* destination_bus, const char* audio_file_data, | 111 blink::WebAudioBus* destination_bus, const char* audio_file_data, |
121 size_t data_size); | 112 size_t data_size); |
122 // DEPRECATED | 113 // DEPRECATED |
123 virtual bool loadAudioResource( | 114 virtual bool loadAudioResource( |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; | 223 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; |
233 | 224 |
234 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; | 225 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; |
235 | 226 |
236 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); | 227 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); |
237 }; | 228 }; |
238 | 229 |
239 } // namespace content | 230 } // namespace content |
240 | 231 |
241 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 232 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |