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/Platform/chromium/public/WebGamepads.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 #endif | 83 #endif |
84 | 84 |
85 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 85 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
86 const WebKit::WebGraphicsContext3D::Attributes&); | 86 const WebKit::WebGraphicsContext3D::Attributes&); |
87 virtual bool canAccelerate2dCanvas(); | 87 virtual bool canAccelerate2dCanvas(); |
88 | 88 |
89 WebURLLoaderMockFactory* url_loader_factory() { | 89 WebURLLoaderMockFactory* url_loader_factory() { |
90 return &url_loader_factory_; | 90 return &url_loader_factory_; |
91 } | 91 } |
92 | 92 |
93 const FilePath& file_system_root() const { | 93 const base::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, | 102 unsigned numberOfInputChannels, unsigned numberOfChannels, |
103 double sampleRate, WebKit::WebAudioDevice::RenderCallback*); | 103 double sampleRate, WebKit::WebAudioDevice::RenderCallback*); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 WebKit::Platform* shadow_platform_delegate_; | 155 WebKit::Platform* shadow_platform_delegate_; |
156 HyphenDict* hyphen_dictionary_; | 156 HyphenDict* hyphen_dictionary_; |
157 | 157 |
158 #if defined(OS_WIN) || defined(OS_MACOSX) | 158 #if defined(OS_WIN) || defined(OS_MACOSX) |
159 WebKit::WebThemeEngine* active_theme_engine_; | 159 WebKit::WebThemeEngine* active_theme_engine_; |
160 #endif | 160 #endif |
161 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); | 161 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); |
162 }; | 162 }; |
163 | 163 |
164 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 164 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
OLD | NEW |