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

Side by Side Diff: webkit/support/test_webkit_client.cc

Issue 3126029: Move the chromium.Interval to chrome.Interval as part of the benchmarking... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: One more missing file!! Created 10 years, 3 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
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/tools/test_shell/test_shell_webkit_init.cc » ('j') | 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 #include "base/file_util.h" 5 #include "base/file_util.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/scoped_temp_dir.h" 7 #include "base/scoped_temp_dir.h"
8 #include "base/stats_counters.h" 8 #include "base/stats_counters.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 12 matching lines...) Expand all
23 #include "third_party/WebKit/WebKit/chromium/public/WebStorageArea.h" 23 #include "third_party/WebKit/WebKit/chromium/public/WebStorageArea.h"
24 #include "third_party/WebKit/WebKit/chromium/public/WebStorageEventDispatcher.h" 24 #include "third_party/WebKit/WebKit/chromium/public/WebStorageEventDispatcher.h"
25 #include "third_party/WebKit/WebKit/chromium/public/WebStorageNamespace.h" 25 #include "third_party/WebKit/WebKit/chromium/public/WebStorageNamespace.h"
26 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" 26 #include "third_party/WebKit/WebKit/chromium/public/WebString.h"
27 #include "third_party/WebKit/WebKit/chromium/public/WebThemeEngine.h" 27 #include "third_party/WebKit/WebKit/chromium/public/WebThemeEngine.h"
28 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" 28 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h"
29 #include "webkit/appcache/web_application_cache_host_impl.h" 29 #include "webkit/appcache/web_application_cache_host_impl.h"
30 #include "webkit/database/vfs_backend.h" 30 #include "webkit/database/vfs_backend.h"
31 #include "webkit/extensions/v8/gc_extension.h" 31 #include "webkit/extensions/v8/gc_extension.h"
32 #include "webkit/extensions/v8/gears_extension.h" 32 #include "webkit/extensions/v8/gears_extension.h"
33 #include "webkit/extensions/v8/interval_extension.h"
34 #include "webkit/glue/simple_webmimeregistry_impl.h" 33 #include "webkit/glue/simple_webmimeregistry_impl.h"
35 #include "webkit/glue/webclipboard_impl.h" 34 #include "webkit/glue/webclipboard_impl.h"
36 #include "webkit/glue/webkit_glue.h" 35 #include "webkit/glue/webkit_glue.h"
37 #include "webkit/glue/webkitclient_impl.h" 36 #include "webkit/glue/webkitclient_impl.h"
38 #include "webkit/support/test_webkit_client.h" 37 #include "webkit/support/test_webkit_client.h"
39 #include "webkit/support/weburl_loader_mock_factory.h" 38 #include "webkit/support/weburl_loader_mock_factory.h"
40 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" 39 #include "webkit/tools/test_shell/mock_webclipboard_impl.h"
41 #include "webkit/tools/test_shell/simple_appcache_system.h" 40 #include "webkit/tools/test_shell/simple_appcache_system.h"
42 #include "webkit/tools/test_shell/simple_database_system.h" 41 #include "webkit/tools/test_shell/simple_database_system.h"
43 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" 42 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h"
(...skipping 16 matching lines...) Expand all
60 59
61 WebKit::initialize(this); 60 WebKit::initialize(this);
62 WebKit::setLayoutTestMode(true); 61 WebKit::setLayoutTestMode(true);
63 WebKit::WebSecurityPolicy::registerURLSchemeAsLocal( 62 WebKit::WebSecurityPolicy::registerURLSchemeAsLocal(
64 WebKit::WebString::fromUTF8("test-shell-resource")); 63 WebKit::WebString::fromUTF8("test-shell-resource"));
65 WebKit::WebSecurityPolicy::registerURLSchemeAsNoAccess( 64 WebKit::WebSecurityPolicy::registerURLSchemeAsNoAccess(
66 WebKit::WebString::fromUTF8("test-shell-resource")); 65 WebKit::WebString::fromUTF8("test-shell-resource"));
67 WebScriptController::enableV8SingleThreadMode(); 66 WebScriptController::enableV8SingleThreadMode();
68 WebScriptController::registerExtension( 67 WebScriptController::registerExtension(
69 extensions_v8::GearsExtension::Get()); 68 extensions_v8::GearsExtension::Get());
70 WebScriptController::registerExtension(
71 extensions_v8::IntervalExtension::Get());
72 WebKit::WebRuntimeFeatures::enableSockets(true); 69 WebKit::WebRuntimeFeatures::enableSockets(true);
73 WebKit::WebRuntimeFeatures::enableApplicationCache(true); 70 WebKit::WebRuntimeFeatures::enableApplicationCache(true);
74 WebKit::WebRuntimeFeatures::enableDatabase(true); 71 WebKit::WebRuntimeFeatures::enableDatabase(true);
75 WebKit::WebRuntimeFeatures::enableWebGL(true); 72 WebKit::WebRuntimeFeatures::enableWebGL(true);
76 WebKit::WebRuntimeFeatures::enablePushState(true); 73 WebKit::WebRuntimeFeatures::enablePushState(true);
77 WebKit::WebRuntimeFeatures::enableNotifications(true); 74 WebKit::WebRuntimeFeatures::enableNotifications(true);
78 WebKit::WebRuntimeFeatures::enableTouch(true); 75 WebKit::WebRuntimeFeatures::enableTouch(true);
79 76
80 // Load libraries for media and enable the media player. 77 // Load libraries for media and enable the media player.
81 bool enable_media = false; 78 bool enable_media = false;
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 } 250 }
254 #endif 251 #endif
255 252
256 WebKit::WebSharedWorkerRepository* TestWebKitClient::sharedWorkerRepository() { 253 WebKit::WebSharedWorkerRepository* TestWebKitClient::sharedWorkerRepository() {
257 return NULL; 254 return NULL;
258 } 255 }
259 256
260 WebKit::WebGraphicsContext3D* TestWebKitClient::createGraphicsContext3D() { 257 WebKit::WebGraphicsContext3D* TestWebKitClient::createGraphicsContext3D() {
261 return WebKit::WebGraphicsContext3D::createDefault(); 258 return WebKit::WebGraphicsContext3D::createDefault();
262 } 259 }
OLDNEW
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/tools/test_shell/test_shell_webkit_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698