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 WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 5 #ifndef WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
6 #define WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 6 #define WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads.
h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads.
h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 const FilePath& file_system_root() const { | 93 const FilePath& file_system_root() const { |
94 return file_system_root_.path(); | 94 return file_system_root_.path(); |
95 } | 95 } |
96 | 96 |
97 // Mock out the WebAudioDevice since the real one | 97 // Mock out the WebAudioDevice since the real one |
98 // talks with the browser process. | 98 // talks with the browser process. |
99 virtual double audioHardwareSampleRate(); | 99 virtual double audioHardwareSampleRate(); |
100 virtual size_t audioHardwareBufferSize(); | 100 virtual size_t audioHardwareBufferSize(); |
101 virtual WebKit::WebAudioDevice* createAudioDevice(size_t bufferSize, | 101 virtual WebKit::WebAudioDevice* createAudioDevice(size_t bufferSize, |
| 102 unsigned numberOfInputChannels, unsigned numberOfChannels, |
| 103 double sampleRate, WebKit::WebAudioDevice::RenderCallback*); |
| 104 virtual WebKit::WebAudioDevice* createAudioDevice(size_t bufferSize, |
102 unsigned numberOfChannels, double sampleRate, | 105 unsigned numberOfChannels, double sampleRate, |
103 WebKit::WebAudioDevice::RenderCallback*); | 106 WebKit::WebAudioDevice::RenderCallback*); |
104 | 107 |
105 virtual void sampleGamepads(WebKit::WebGamepads& data); | 108 virtual void sampleGamepads(WebKit::WebGamepads& data); |
106 void setGamepadData(const WebKit::WebGamepads& data); | 109 void setGamepadData(const WebKit::WebGamepads& data); |
107 | 110 |
108 virtual string16 GetLocalizedString(int message_id) OVERRIDE; | 111 virtual string16 GetLocalizedString(int message_id) OVERRIDE; |
109 virtual base::StringPiece GetDataResource( | 112 virtual base::StringPiece GetDataResource( |
110 int resource_id, | 113 int resource_id, |
111 ui::ScaleFactor scale_factor) OVERRIDE; | 114 ui::ScaleFactor scale_factor) OVERRIDE; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 WebKit::Platform* shadow_platform_delegate_; | 155 WebKit::Platform* shadow_platform_delegate_; |
153 HyphenDict* hyphen_dictionary_; | 156 HyphenDict* hyphen_dictionary_; |
154 | 157 |
155 #if defined(OS_WIN) || defined(OS_MACOSX) | 158 #if defined(OS_WIN) || defined(OS_MACOSX) |
156 WebKit::WebThemeEngine* active_theme_engine_; | 159 WebKit::WebThemeEngine* active_theme_engine_; |
157 #endif | 160 #endif |
158 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); | 161 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); |
159 }; | 162 }; |
160 | 163 |
161 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 164 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
OLD | NEW |