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

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 8805033: Makes tests either use mock compositor or mock WebGraphicsContext3D (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback and tweaks for win_aura Created 9 years 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 | « chrome/common/chrome_switches.h ('k') | chrome/test/base/chrome_test_suite.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) 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 "chrome/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 9
10 namespace switches { 10 namespace switches {
(...skipping 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1280 // Disables print preview (Not exposed via about:flags. Only used for testing.) 1280 // Disables print preview (Not exposed via about:flags. Only used for testing.)
1281 const char kDisablePrintPreview[] = "disable-print-preview"; 1281 const char kDisablePrintPreview[] = "disable-print-preview";
1282 1282
1283 // Enables print preview (no PDF viewer, thus not supported with Chromium). 1283 // Enables print preview (no PDF viewer, thus not supported with Chromium).
1284 // kDisablePrintPreview overrides this. 1284 // kDisablePrintPreview overrides this.
1285 const char kEnablePrintPreview[] = "enable-print-preview"; 1285 const char kEnablePrintPreview[] = "enable-print-preview";
1286 1286
1287 // Enables the benchmarking extensions. 1287 // Enables the benchmarking extensions.
1288 const char kEnableBenchmarking[] = "enable-benchmarking"; 1288 const char kEnableBenchmarking[] = "enable-benchmarking";
1289 1289
1290 #if defined(USE_AURA)
1291 // Forces usage of the test compositor. Needed to run ui tests on bots.
1292 extern const char kTestCompositor[] = "test-compositor";
1293 #endif
1294
1290 bool IsPrintPreviewEnabled() { 1295 bool IsPrintPreviewEnabled() {
1291 if (CommandLine::ForCurrentProcess()->HasSwitch(kDisablePrintPreview)) 1296 if (CommandLine::ForCurrentProcess()->HasSwitch(kDisablePrintPreview))
1292 return false; 1297 return false;
1293 return CommandLine::ForCurrentProcess()->HasSwitch(kEnablePrintPreview); 1298 return CommandLine::ForCurrentProcess()->HasSwitch(kEnablePrintPreview);
1294 } 1299 }
1295 1300
1296 bool IsInBrowserThumbnailingEnabled() { 1301 bool IsInBrowserThumbnailingEnabled() {
1297 return CommandLine::ForCurrentProcess()->HasSwitch( 1302 return CommandLine::ForCurrentProcess()->HasSwitch(
1298 kEnableInBrowserThumbnailing); 1303 kEnableInBrowserThumbnailing);
1299 } 1304 }
1300 1305
1301 // ----------------------------------------------------------------------------- 1306 // -----------------------------------------------------------------------------
1302 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1307 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1303 // 1308 //
1304 // You were going to just dump your switches here, weren't you? Instead, please 1309 // You were going to just dump your switches here, weren't you? Instead, please
1305 // put them in alphabetical order above, or in order inside the appropriate 1310 // put them in alphabetical order above, or in order inside the appropriate
1306 // ifdef at the bottom. The order should match the header. 1311 // ifdef at the bottom. The order should match the header.
1307 // ----------------------------------------------------------------------------- 1312 // -----------------------------------------------------------------------------
1308 1313
1309 } // namespace switches 1314 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/test/base/chrome_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698