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

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

Issue 6576020: Remove Gears from Chrome (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: ready to review Created 9 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "webkit/tools/test_shell/test_shell_webkit_init.h" 5 #include "webkit/tools/test_shell/test_shell_webkit_init.h"
6 6
7 #include "base/metrics/stats_counters.h" 7 #include "base/metrics/stats_counters.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "media/base/media.h" 9 #include "media/base/media.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h " 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h "
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h"
16 #include "webkit/extensions/v8/gears_extension.h"
17 #include "webkit/tools/test_shell/test_shell.h" 16 #include "webkit/tools/test_shell/test_shell.h"
18 17
19 #if defined(OS_WIN) 18 #if defined(OS_WIN)
20 #include "webkit/tools/test_shell/test_shell_webthemeengine.h" 19 #include "webkit/tools/test_shell/test_shell_webthemeengine.h"
21 #endif 20 #endif
22 21
23 TestShellWebKitInit::TestShellWebKitInit(bool layout_test_mode) { 22 TestShellWebKitInit::TestShellWebKitInit(bool layout_test_mode) {
24 v8::V8::SetCounterFunction(base::StatsTable::FindLocation); 23 v8::V8::SetCounterFunction(base::StatsTable::FindLocation);
25 24
26 WebKit::initialize(this); 25 WebKit::initialize(this);
27 WebKit::setLayoutTestMode(layout_test_mode); 26 WebKit::setLayoutTestMode(layout_test_mode);
28 WebKit::WebSecurityPolicy::registerURLSchemeAsLocal( 27 WebKit::WebSecurityPolicy::registerURLSchemeAsLocal(
29 WebKit::WebString::fromUTF8("test-shell-resource")); 28 WebKit::WebString::fromUTF8("test-shell-resource"));
30 WebKit::WebSecurityPolicy::registerURLSchemeAsNoAccess( 29 WebKit::WebSecurityPolicy::registerURLSchemeAsNoAccess(
31 WebKit::WebString::fromUTF8("test-shell-resource")); 30 WebKit::WebString::fromUTF8("test-shell-resource"));
32 WebKit::WebScriptController::enableV8SingleThreadMode(); 31 WebKit::WebScriptController::enableV8SingleThreadMode();
33 WebKit::WebScriptController::registerExtension(
34 extensions_v8::GearsExtension::Get());
35 WebKit::WebRuntimeFeatures::enableSockets(true); 32 WebKit::WebRuntimeFeatures::enableSockets(true);
36 WebKit::WebRuntimeFeatures::enableApplicationCache(true); 33 WebKit::WebRuntimeFeatures::enableApplicationCache(true);
37 WebKit::WebRuntimeFeatures::enableDatabase(true); 34 WebKit::WebRuntimeFeatures::enableDatabase(true);
38 WebKit::WebRuntimeFeatures::enableWebGL(true); 35 WebKit::WebRuntimeFeatures::enableWebGL(true);
39 WebKit::WebRuntimeFeatures::enablePushState(true); 36 WebKit::WebRuntimeFeatures::enablePushState(true);
40 WebKit::WebRuntimeFeatures::enableNotifications(true); 37 WebKit::WebRuntimeFeatures::enableNotifications(true);
41 WebKit::WebRuntimeFeatures::enableTouch(true); 38 WebKit::WebRuntimeFeatures::enableTouch(true);
42 WebKit::WebRuntimeFeatures::enableIndexedDatabase(true); 39 WebKit::WebRuntimeFeatures::enableIndexedDatabase(true);
43 WebKit::WebRuntimeFeatures::enableSpeechInput(true); 40 WebKit::WebRuntimeFeatures::enableSpeechInput(true);
44 WebKit::WebRuntimeFeatures::enableFileSystem(true); 41 WebKit::WebRuntimeFeatures::enableFileSystem(true);
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 } 284 }
288 285
289 WebKit::WebSharedWorkerRepository* 286 WebKit::WebSharedWorkerRepository*
290 TestShellWebKitInit::sharedWorkerRepository() { 287 TestShellWebKitInit::sharedWorkerRepository() {
291 return NULL; 288 return NULL;
292 } 289 }
293 290
294 WebKit::WebGraphicsContext3D* TestShellWebKitInit::createGraphicsContext3D() { 291 WebKit::WebGraphicsContext3D* TestShellWebKitInit::createGraphicsContext3D() {
295 return new webkit::gpu::WebGraphicsContext3DInProcessImpl(); 292 return new webkit::gpu::WebGraphicsContext3DInProcessImpl();
296 } 293 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698