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

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: windows fixes Created 9 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) 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" 16 #include "v8/include/v8.h"
17 #include "webkit/tools/test_shell/test_shell.h" 17 #include "webkit/tools/test_shell/test_shell.h"
18 18
19 #if defined(OS_WIN) 19 #if defined(OS_WIN)
20 #include "webkit/tools/test_shell/test_shell_webthemeengine.h" 20 #include "webkit/tools/test_shell/test_shell_webthemeengine.h"
21 #endif 21 #endif
22 22
23 TestShellWebKitInit::TestShellWebKitInit(bool layout_test_mode) { 23 TestShellWebKitInit::TestShellWebKitInit(bool layout_test_mode) {
24 v8::V8::SetCounterFunction(base::StatsTable::FindLocation); 24 v8::V8::SetCounterFunction(base::StatsTable::FindLocation);
25 25
26 WebKit::initialize(this); 26 WebKit::initialize(this);
27 WebKit::setLayoutTestMode(layout_test_mode); 27 WebKit::setLayoutTestMode(layout_test_mode);
28 WebKit::WebSecurityPolicy::registerURLSchemeAsLocal( 28 WebKit::WebSecurityPolicy::registerURLSchemeAsLocal(
29 WebKit::WebString::fromUTF8("test-shell-resource")); 29 WebKit::WebString::fromUTF8("test-shell-resource"));
30 WebKit::WebSecurityPolicy::registerURLSchemeAsNoAccess( 30 WebKit::WebSecurityPolicy::registerURLSchemeAsNoAccess(
31 WebKit::WebString::fromUTF8("test-shell-resource")); 31 WebKit::WebString::fromUTF8("test-shell-resource"));
32 WebKit::WebScriptController::enableV8SingleThreadMode(); 32 WebKit::WebScriptController::enableV8SingleThreadMode();
33 WebKit::WebScriptController::registerExtension(
34 extensions_v8::GearsExtension::Get());
35 WebKit::WebRuntimeFeatures::enableSockets(true); 33 WebKit::WebRuntimeFeatures::enableSockets(true);
36 WebKit::WebRuntimeFeatures::enableApplicationCache(true); 34 WebKit::WebRuntimeFeatures::enableApplicationCache(true);
37 WebKit::WebRuntimeFeatures::enableDatabase(true); 35 WebKit::WebRuntimeFeatures::enableDatabase(true);
38 WebKit::WebRuntimeFeatures::enableWebGL(true); 36 WebKit::WebRuntimeFeatures::enableWebGL(true);
39 WebKit::WebRuntimeFeatures::enablePushState(true); 37 WebKit::WebRuntimeFeatures::enablePushState(true);
40 WebKit::WebRuntimeFeatures::enableNotifications(true); 38 WebKit::WebRuntimeFeatures::enableNotifications(true);
41 WebKit::WebRuntimeFeatures::enableTouch(true); 39 WebKit::WebRuntimeFeatures::enableTouch(true);
42 WebKit::WebRuntimeFeatures::enableIndexedDatabase(true); 40 WebKit::WebRuntimeFeatures::enableIndexedDatabase(true);
43 WebKit::WebRuntimeFeatures::enableSpeechInput(true); 41 WebKit::WebRuntimeFeatures::enableSpeechInput(true);
44 WebKit::WebRuntimeFeatures::enableFileSystem(true); 42 WebKit::WebRuntimeFeatures::enableFileSystem(true);
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 } 285 }
288 286
289 WebKit::WebSharedWorkerRepository* 287 WebKit::WebSharedWorkerRepository*
290 TestShellWebKitInit::sharedWorkerRepository() { 288 TestShellWebKitInit::sharedWorkerRepository() {
291 return NULL; 289 return NULL;
292 } 290 }
293 291
294 WebKit::WebGraphicsContext3D* TestShellWebKitInit::createGraphicsContext3D() { 292 WebKit::WebGraphicsContext3D* TestShellWebKitInit::createGraphicsContext3D() {
295 return new webkit::gpu::WebGraphicsContext3DInProcessImpl(); 293 return new webkit::gpu::WebGraphicsContext3DInProcessImpl();
296 } 294 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/drop_delegate.cc ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698