| 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/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/scoped_temp_dir.h" | 10 #include "base/scoped_temp_dir.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 WebKit::WebScriptController::enableV8SingleThreadMode(); | 56 WebKit::WebScriptController::enableV8SingleThreadMode(); |
| 57 WebKit::WebScriptController::registerExtension( | 57 WebKit::WebScriptController::registerExtension( |
| 58 extensions_v8::GearsExtension::Get()); | 58 extensions_v8::GearsExtension::Get()); |
| 59 WebKit::WebScriptController::registerExtension( | 59 WebKit::WebScriptController::registerExtension( |
| 60 extensions_v8::IntervalExtension::Get()); | 60 extensions_v8::IntervalExtension::Get()); |
| 61 WebKit::WebRuntimeFeatures::enableSockets(true); | 61 WebKit::WebRuntimeFeatures::enableSockets(true); |
| 62 WebKit::WebRuntimeFeatures::enableApplicationCache(true); | 62 WebKit::WebRuntimeFeatures::enableApplicationCache(true); |
| 63 WebKit::WebRuntimeFeatures::enableDatabase(true); | 63 WebKit::WebRuntimeFeatures::enableDatabase(true); |
| 64 WebKit::WebRuntimeFeatures::enableWebGL(true); | 64 WebKit::WebRuntimeFeatures::enableWebGL(true); |
| 65 WebKit::WebRuntimeFeatures::enablePushState(true); | 65 WebKit::WebRuntimeFeatures::enablePushState(true); |
| 66 WebKit::WebRuntimeFeatures::enableNotifications(true); |
| 66 | 67 |
| 67 // Load libraries for media and enable the media player. | 68 // Load libraries for media and enable the media player. |
| 68 FilePath module_path; | 69 FilePath module_path; |
| 69 WebKit::WebRuntimeFeatures::enableMediaPlayer( | 70 WebKit::WebRuntimeFeatures::enableMediaPlayer( |
| 70 PathService::Get(base::DIR_MODULE, &module_path) && | 71 PathService::Get(base::DIR_MODULE, &module_path) && |
| 71 media::InitializeMediaLibrary(module_path)); | 72 media::InitializeMediaLibrary(module_path)); |
| 72 // TODO(joth): Make a dummy geolocation service implemenation for | 73 // TODO(joth): Make a dummy geolocation service implemenation for |
| 73 // test_shell, and set this to true. http://crbug.com/36451 | 74 // test_shell, and set this to true. http://crbug.com/36451 |
| 74 WebKit::WebRuntimeFeatures::enableGeolocation(false); | 75 WebKit::WebRuntimeFeatures::enableGeolocation(false); |
| 75 | 76 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 SimpleAppCacheSystem appcache_system_; | 241 SimpleAppCacheSystem appcache_system_; |
| 241 SimpleDatabaseSystem database_system_; | 242 SimpleDatabaseSystem database_system_; |
| 242 SimpleWebCookieJarImpl cookie_jar_; | 243 SimpleWebCookieJarImpl cookie_jar_; |
| 243 | 244 |
| 244 #if defined(OS_WIN) | 245 #if defined(OS_WIN) |
| 245 WebKit::WebThemeEngine* active_theme_engine_; | 246 WebKit::WebThemeEngine* active_theme_engine_; |
| 246 #endif | 247 #endif |
| 247 }; | 248 }; |
| 248 | 249 |
| 249 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ | 250 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ |
| OLD | NEW |