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/platform/WebGamepads.
h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads.
h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC
ontext3D.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC
ontext3D.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 const WebKit::WebString& keyPath) OVERRIDE; | 86 const WebKit::WebString& keyPath) OVERRIDE; |
87 | 87 |
88 #if defined(OS_WIN) || defined(OS_MACOSX) | 88 #if defined(OS_WIN) || defined(OS_MACOSX) |
89 void SetThemeEngine(WebKit::WebThemeEngine* engine); | 89 void SetThemeEngine(WebKit::WebThemeEngine* engine); |
90 virtual WebKit::WebThemeEngine *themeEngine() OVERRIDE; | 90 virtual WebKit::WebThemeEngine *themeEngine() OVERRIDE; |
91 #endif | 91 #endif |
92 | 92 |
93 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository() OVERRIDE; | 93 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository() OVERRIDE; |
94 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 94 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
95 const WebKit::WebGraphicsContext3D::Attributes&); | 95 const WebKit::WebGraphicsContext3D::Attributes&); |
| 96 virtual bool canAccelerate2dCanvas(); |
96 | 97 |
97 WebURLLoaderMockFactory* url_loader_factory() { | 98 WebURLLoaderMockFactory* url_loader_factory() { |
98 return &url_loader_factory_; | 99 return &url_loader_factory_; |
99 } | 100 } |
100 | 101 |
101 const FilePath& file_system_root() const { | 102 const FilePath& file_system_root() const { |
102 return file_system_root_.path(); | 103 return file_system_root_.path(); |
103 } | 104 } |
104 | 105 |
105 // Mock out the WebAudioDevice since the real one | 106 // Mock out the WebAudioDevice since the real one |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 bool unit_test_mode_; | 141 bool unit_test_mode_; |
141 WebKit::WebGamepads gamepad_data_; | 142 WebKit::WebGamepads gamepad_data_; |
142 | 143 |
143 #if defined(OS_WIN) || defined(OS_MACOSX) | 144 #if defined(OS_WIN) || defined(OS_MACOSX) |
144 WebKit::WebThemeEngine* active_theme_engine_; | 145 WebKit::WebThemeEngine* active_theme_engine_; |
145 #endif | 146 #endif |
146 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); | 147 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); |
147 }; | 148 }; |
148 | 149 |
149 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 150 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
OLD | NEW |