OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "webkit/glue/webfileutilities_impl.h" | 11 #include "webkit/glue/webfileutilities_impl.h" |
11 #include "webkit/glue/webkitplatformsupport_impl.h" | 12 #include "webkit/glue/webkitplatformsupport_impl.h" |
12 #include "webkit/support/simple_database_system.h" | 13 #include "webkit/support/simple_database_system.h" |
13 #include "webkit/support/weburl_loader_mock_factory.h" | 14 #include "webkit/support/weburl_loader_mock_factory.h" |
14 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" | 15 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" |
15 #include "webkit/tools/test_shell/simple_appcache_system.h" | 16 #include "webkit/tools/test_shell/simple_appcache_system.h" |
16 #include "webkit/tools/test_shell/simple_file_system.h" | 17 #include "webkit/tools/test_shell/simple_file_system.h" |
17 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h" | 18 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h" |
18 #include "webkit/tools/test_shell/test_shell_webmimeregistry_impl.h" | 19 #include "webkit/tools/test_shell/test_shell_webmimeregistry_impl.h" |
19 | 20 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 const WebKit::WebSerializedScriptValue& value, | 84 const WebKit::WebSerializedScriptValue& value, |
84 const WebKit::WebString& keyPath) OVERRIDE; | 85 const WebKit::WebString& keyPath) OVERRIDE; |
85 | 86 |
86 #if defined(OS_WIN) || defined(OS_MACOSX) | 87 #if defined(OS_WIN) || defined(OS_MACOSX) |
87 void SetThemeEngine(WebKit::WebThemeEngine* engine); | 88 void SetThemeEngine(WebKit::WebThemeEngine* engine); |
88 virtual WebKit::WebThemeEngine *themeEngine() OVERRIDE; | 89 virtual WebKit::WebThemeEngine *themeEngine() OVERRIDE; |
89 #endif | 90 #endif |
90 | 91 |
91 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository() OVERRIDE; | 92 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository() OVERRIDE; |
92 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D() OVERRIDE; | 93 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D() OVERRIDE; |
| 94 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
| 95 const WebKit::WebGraphicsContext3D::Attributes&); |
93 | 96 |
94 WebURLLoaderMockFactory* url_loader_factory() { | 97 WebURLLoaderMockFactory* url_loader_factory() { |
95 return &url_loader_factory_; | 98 return &url_loader_factory_; |
96 } | 99 } |
97 | 100 |
98 const FilePath& file_system_root() const { | 101 const FilePath& file_system_root() const { |
99 return file_system_root_.path(); | 102 return file_system_root_.path(); |
100 } | 103 } |
101 | 104 |
102 // Mock out the WebAudioDevice since the real one | 105 // Mock out the WebAudioDevice since the real one |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 bool unit_test_mode_; | 139 bool unit_test_mode_; |
137 WebKit::WebGamepads gamepad_data_; | 140 WebKit::WebGamepads gamepad_data_; |
138 | 141 |
139 #if defined(OS_WIN) || defined(OS_MACOSX) | 142 #if defined(OS_WIN) || defined(OS_MACOSX) |
140 WebKit::WebThemeEngine* active_theme_engine_; | 143 WebKit::WebThemeEngine* active_theme_engine_; |
141 #endif | 144 #endif |
142 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); | 145 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); |
143 }; | 146 }; |
144 | 147 |
145 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 148 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
OLD | NEW |