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

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

Issue 3066015: Disable run-time flag for device orientation in test_shell (Closed)
Patch Set: Created 10 years, 4 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 | « no previous file | 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 #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/path_service.h" 7 #include "base/path_service.h"
8 #include "base/stats_counters.h" 8 #include "base/stats_counters.h"
9 #include "media/base/media.h" 9 #include "media/base/media.h"
10 #include "third_party/WebKit/WebKit/chromium/public/WebDatabase.h" 10 #include "third_party/WebKit/WebKit/chromium/public/WebDatabase.h"
(...skipping 24 matching lines...) Expand all
35 WebKit::WebScriptController::registerExtension( 35 WebKit::WebScriptController::registerExtension(
36 extensions_v8::IntervalExtension::Get()); 36 extensions_v8::IntervalExtension::Get());
37 WebKit::WebRuntimeFeatures::enableSockets(true); 37 WebKit::WebRuntimeFeatures::enableSockets(true);
38 WebKit::WebRuntimeFeatures::enableApplicationCache(true); 38 WebKit::WebRuntimeFeatures::enableApplicationCache(true);
39 WebKit::WebRuntimeFeatures::enableDatabase(true); 39 WebKit::WebRuntimeFeatures::enableDatabase(true);
40 WebKit::WebRuntimeFeatures::enableWebGL(true); 40 WebKit::WebRuntimeFeatures::enableWebGL(true);
41 WebKit::WebRuntimeFeatures::enablePushState(true); 41 WebKit::WebRuntimeFeatures::enablePushState(true);
42 WebKit::WebRuntimeFeatures::enableNotifications(true); 42 WebKit::WebRuntimeFeatures::enableNotifications(true);
43 WebKit::WebRuntimeFeatures::enableTouch(true); 43 WebKit::WebRuntimeFeatures::enableTouch(true);
44 WebKit::WebRuntimeFeatures::enableIndexedDatabase(true); 44 WebKit::WebRuntimeFeatures::enableIndexedDatabase(true);
45 WebKit::WebRuntimeFeatures::enableDeviceOrientation(false);
45 46
46 // Load libraries for media and enable the media player. 47 // Load libraries for media and enable the media player.
47 FilePath module_path; 48 FilePath module_path;
48 WebKit::WebRuntimeFeatures::enableMediaPlayer( 49 WebKit::WebRuntimeFeatures::enableMediaPlayer(
49 PathService::Get(base::DIR_MODULE, &module_path) && 50 PathService::Get(base::DIR_MODULE, &module_path) &&
50 media::InitializeMediaLibrary(module_path)); 51 media::InitializeMediaLibrary(module_path));
51 52
52 WebKit::WebRuntimeFeatures::enableGeolocation(true); 53 WebKit::WebRuntimeFeatures::enableGeolocation(true);
53 54
54 // Construct and initialize an appcache system for this scope. 55 // Construct and initialize an appcache system for this scope.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 "\xff\x00\xff\x00\xff\xff\xff\xff\xff\x7b\x1f\xb1\xc4\x00\x00\x00" 99 "\xff\x00\xff\x00\xff\xff\xff\xff\xff\x7b\x1f\xb1\xc4\x00\x00\x00"
99 "\x09\x70\x48\x59\x73\x00\x00\x0b\x13\x00\x00\x0b\x13\x01\x00\x9a" 100 "\x09\x70\x48\x59\x73\x00\x00\x0b\x13\x00\x00\x0b\x13\x01\x00\x9a"
100 "\x9c\x18\x00\x00\x00\x17\x49\x44\x41\x54\x78\x01\x63\x98\x89\x0a" 101 "\x9c\x18\x00\x00\x00\x17\x49\x44\x41\x54\x78\x01\x63\x98\x89\x0a"
101 "\x18\x50\xb9\x33\x47\xf9\xa8\x01\x32\xd4\xc2\x03\x00\x33\x84\x0d" 102 "\x18\x50\xb9\x33\x47\xf9\xa8\x01\x32\xd4\xc2\x03\x00\x33\x84\x0d"
102 "\x02\x3a\x91\xeb\xa5\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60" 103 "\x02\x3a\x91\xeb\xa5\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60"
103 "\x82"; 104 "\x82";
104 return WebKit::WebData(red_square, arraysize(red_square)); 105 return WebKit::WebData(red_square, arraysize(red_square));
105 } 106 }
106 return webkit_glue::WebKitClientImpl::loadResource(name); 107 return webkit_glue::WebKitClientImpl::loadResource(name);
107 } 108 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698