OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ | 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ |
6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ | 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ |
7 | 7 |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "third_party/WebKit/WebKit/chromium/public/WebGraphicsContext3D.h" | |
10 #include "third_party/WebKit/WebKit/chromium/public/WebIDBFactory.h" | 9 #include "third_party/WebKit/WebKit/chromium/public/WebIDBFactory.h" |
11 #include "third_party/WebKit/WebKit/chromium/public/WebIDBKey.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebIDBKey.h" |
12 #include "third_party/WebKit/WebKit/chromium/public/WebIDBKeyPath.h" | 11 #include "third_party/WebKit/WebKit/chromium/public/WebIDBKeyPath.h" |
13 #include "third_party/WebKit/WebKit/chromium/public/WebSerializedScriptValue.h" | 12 #include "third_party/WebKit/WebKit/chromium/public/WebSerializedScriptValue.h" |
14 #include "third_party/WebKit/WebKit/chromium/public/WebStorageNamespace.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebStorageNamespace.h" |
15 #include "webkit/glue/webclipboard_impl.h" | 14 #include "webkit/glue/webclipboard_impl.h" |
16 #include "webkit/glue/webfileutilities_impl.h" | 15 #include "webkit/glue/webfileutilities_impl.h" |
17 #include "webkit/glue/webkit_glue.h" | 16 #include "webkit/glue/webkit_glue.h" |
18 #include "webkit/glue/webkitclient_impl.h" | 17 #include "webkit/glue/webkitclient_impl.h" |
| 18 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" |
19 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" | 19 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" |
20 #include "webkit/tools/test_shell/simple_appcache_system.h" | 20 #include "webkit/tools/test_shell/simple_appcache_system.h" |
21 #include "webkit/tools/test_shell/simple_database_system.h" | 21 #include "webkit/tools/test_shell/simple_database_system.h" |
22 #include "webkit/tools/test_shell/simple_file_system.h" | 22 #include "webkit/tools/test_shell/simple_file_system.h" |
23 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" | 23 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" |
24 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h" | 24 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h" |
25 #include "webkit/tools/test_shell/test_shell_webblobregistry_impl.h" | 25 #include "webkit/tools/test_shell/test_shell_webblobregistry_impl.h" |
26 #include "webkit/tools/test_shell/test_shell_webmimeregistry_impl.h" | 26 #include "webkit/tools/test_shell/test_shell_webmimeregistry_impl.h" |
27 | 27 |
28 #if defined(OS_WIN) | 28 #if defined(OS_WIN) |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 virtual WebKit::WebThemeEngine *themeEngine() { | 154 virtual WebKit::WebThemeEngine *themeEngine() { |
155 return active_theme_engine_; | 155 return active_theme_engine_; |
156 } | 156 } |
157 #endif | 157 #endif |
158 | 158 |
159 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository() { | 159 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository() { |
160 return NULL; | 160 return NULL; |
161 } | 161 } |
162 | 162 |
163 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D() { | 163 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D() { |
164 return WebKit::WebGraphicsContext3D::createDefault(); | 164 return new webkit_gpu::WebGraphicsContext3DInProcessImpl(); |
165 } | 165 } |
166 | 166 |
167 private: | 167 private: |
168 scoped_ptr<webkit_glue::SimpleWebMimeRegistryImpl> mime_registry_; | 168 scoped_ptr<webkit_glue::SimpleWebMimeRegistryImpl> mime_registry_; |
169 MockWebClipboardImpl mock_clipboard_; | 169 MockWebClipboardImpl mock_clipboard_; |
170 webkit_glue::WebClipboardImpl real_clipboard_; | 170 webkit_glue::WebClipboardImpl real_clipboard_; |
171 webkit_glue::WebFileUtilitiesImpl file_utilities_; | 171 webkit_glue::WebFileUtilitiesImpl file_utilities_; |
172 ScopedTempDir appcache_dir_; | 172 ScopedTempDir appcache_dir_; |
173 SimpleAppCacheSystem appcache_system_; | 173 SimpleAppCacheSystem appcache_system_; |
174 SimpleDatabaseSystem database_system_; | 174 SimpleDatabaseSystem database_system_; |
175 SimpleWebCookieJarImpl cookie_jar_; | 175 SimpleWebCookieJarImpl cookie_jar_; |
176 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; | 176 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; |
177 SimpleFileSystem file_system_; | 177 SimpleFileSystem file_system_; |
178 | 178 |
179 #if defined(OS_WIN) | 179 #if defined(OS_WIN) |
180 WebKit::WebThemeEngine* active_theme_engine_; | 180 WebKit::WebThemeEngine* active_theme_engine_; |
181 #endif | 181 #endif |
182 }; | 182 }; |
183 | 183 |
184 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ | 184 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ |
OLD | NEW |