Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: webkit/tools/test_shell/test_shell_webkit_init.h

Issue 1036003: Add chromium-side support for history.{push,replace}State. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 WebKit::WebString::fromUTF8("test-shell-resource")); 55 WebKit::WebString::fromUTF8("test-shell-resource"));
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 66
66 // Load libraries for media and enable the media player. 67 // Load libraries for media and enable the media player.
67 FilePath module_path; 68 FilePath module_path;
68 WebKit::WebRuntimeFeatures::enableMediaPlayer( 69 WebKit::WebRuntimeFeatures::enableMediaPlayer(
69 PathService::Get(base::DIR_MODULE, &module_path) && 70 PathService::Get(base::DIR_MODULE, &module_path) &&
70 media::InitializeMediaLibrary(module_path)); 71 media::InitializeMediaLibrary(module_path));
71 // TODO(joth): Make a dummy geolocation service implemenation for 72 // TODO(joth): Make a dummy geolocation service implemenation for
72 // test_shell, and set this to true. http://crbug.com/36451 73 // test_shell, and set this to true. http://crbug.com/36451
73 WebKit::WebRuntimeFeatures::enableGeolocation(false); 74 WebKit::WebRuntimeFeatures::enableGeolocation(false);
74 75
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 SimpleAppCacheSystem appcache_system_; 232 SimpleAppCacheSystem appcache_system_;
232 SimpleDatabaseSystem database_system_; 233 SimpleDatabaseSystem database_system_;
233 SimpleWebCookieJarImpl cookie_jar_; 234 SimpleWebCookieJarImpl cookie_jar_;
234 235
235 #if defined(OS_WIN) 236 #if defined(OS_WIN)
236 WebKit::WebThemeEngine* active_theme_engine_; 237 WebKit::WebThemeEngine* active_theme_engine_;
237 #endif 238 #endif
238 }; 239 };
239 240
240 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ 241 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_
OLDNEW
« no previous file with comments | « webkit/tools/layout_tests/test_expectations.txt ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698