OLD | NEW |
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 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1279 // Disables print preview (Not exposed via about:flags. Only used for testing.) | 1279 // Disables print preview (Not exposed via about:flags. Only used for testing.) |
1280 const char kDisablePrintPreview[] = "disable-print-preview"; | 1280 const char kDisablePrintPreview[] = "disable-print-preview"; |
1281 | 1281 |
1282 // Enables print preview (no PDF viewer, thus not supported with Chromium). | 1282 // Enables print preview (no PDF viewer, thus not supported with Chromium). |
1283 // kDisablePrintPreview overrides this. | 1283 // kDisablePrintPreview overrides this. |
1284 const char kEnablePrintPreview[] = "enable-print-preview"; | 1284 const char kEnablePrintPreview[] = "enable-print-preview"; |
1285 | 1285 |
1286 // Enables the benchmarking extensions. | 1286 // Enables the benchmarking extensions. |
1287 const char kEnableBenchmarking[] = "enable-benchmarking"; | 1287 const char kEnableBenchmarking[] = "enable-benchmarking"; |
1288 | 1288 |
1289 #if defined(USE_AURA) | |
1290 // Forces usage of the test compositor. Needed to run ui tests on bots. | |
1291 extern const char kTestCompositor[] = "test-compositor"; | |
1292 #endif | |
1293 | |
1294 bool IsPrintPreviewEnabled() { | 1289 bool IsPrintPreviewEnabled() { |
1295 if (CommandLine::ForCurrentProcess()->HasSwitch(kDisablePrintPreview)) | 1290 if (CommandLine::ForCurrentProcess()->HasSwitch(kDisablePrintPreview)) |
1296 return false; | 1291 return false; |
1297 return CommandLine::ForCurrentProcess()->HasSwitch(kEnablePrintPreview); | 1292 return CommandLine::ForCurrentProcess()->HasSwitch(kEnablePrintPreview); |
1298 } | 1293 } |
1299 | 1294 |
1300 bool IsInBrowserThumbnailingEnabled() { | 1295 bool IsInBrowserThumbnailingEnabled() { |
1301 return CommandLine::ForCurrentProcess()->HasSwitch( | 1296 return CommandLine::ForCurrentProcess()->HasSwitch( |
1302 kEnableInBrowserThumbnailing); | 1297 kEnableInBrowserThumbnailing); |
1303 } | 1298 } |
1304 | 1299 |
1305 // ----------------------------------------------------------------------------- | 1300 // ----------------------------------------------------------------------------- |
1306 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1301 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1307 // | 1302 // |
1308 // You were going to just dump your switches here, weren't you? Instead, please | 1303 // You were going to just dump your switches here, weren't you? Instead, please |
1309 // put them in alphabetical order above, or in order inside the appropriate | 1304 // put them in alphabetical order above, or in order inside the appropriate |
1310 // ifdef at the bottom. The order should match the header. | 1305 // ifdef at the bottom. The order should match the header. |
1311 // ----------------------------------------------------------------------------- | 1306 // ----------------------------------------------------------------------------- |
1312 | 1307 |
1313 } // namespace switches | 1308 } // namespace switches |
OLD | NEW |