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

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

Issue 1575033: Create a command-line switch for enabling touch events. (Closed)
Patch Set: Enabling touch support by default in test_shell Created 10 years, 7 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
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 WebKit::WebRuntimeFeatures::enableNotifications(true);
67 WebKit::WebRuntimeFeatures::enableTouch(true);
67 68
68 // Load libraries for media and enable the media player. 69 // Load libraries for media and enable the media player.
69 FilePath module_path; 70 FilePath module_path;
70 WebKit::WebRuntimeFeatures::enableMediaPlayer( 71 WebKit::WebRuntimeFeatures::enableMediaPlayer(
71 PathService::Get(base::DIR_MODULE, &module_path) && 72 PathService::Get(base::DIR_MODULE, &module_path) &&
72 media::InitializeMediaLibrary(module_path)); 73 media::InitializeMediaLibrary(module_path));
73 // TODO(joth): Make a dummy geolocation service implemenation for 74 // TODO(joth): Make a dummy geolocation service implemenation for
74 // test_shell, and set this to true. http://crbug.com/36451 75 // test_shell, and set this to true. http://crbug.com/36451
75 WebKit::WebRuntimeFeatures::enableGeolocation(false); 76 WebKit::WebRuntimeFeatures::enableGeolocation(false);
76 77
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 SimpleAppCacheSystem appcache_system_; 242 SimpleAppCacheSystem appcache_system_;
242 SimpleDatabaseSystem database_system_; 243 SimpleDatabaseSystem database_system_;
243 SimpleWebCookieJarImpl cookie_jar_; 244 SimpleWebCookieJarImpl cookie_jar_;
244 245
245 #if defined(OS_WIN) 246 #if defined(OS_WIN)
246 WebKit::WebThemeEngine* active_theme_engine_; 247 WebKit::WebThemeEngine* active_theme_engine_;
247 #endif 248 #endif
248 }; 249 };
249 250
250 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ 251 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_
OLDNEW
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698