| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1330 | 1330 |
| 1331 #if defined(OS_ANDROID) | 1331 #if defined(OS_ANDROID) |
| 1332 // Sets the threshold for when to disable auto-hiding the toolbar. If the | 1332 // Sets the threshold for when to disable auto-hiding the toolbar. If the |
| 1333 // device's width and height are above the threshold, the toolbar will never | 1333 // device's width and height are above the threshold, the toolbar will never |
| 1334 // be hidden due to scrolling. It will still be hidden if page contents go | 1334 // be hidden due to scrolling. It will still be hidden if page contents go |
| 1335 // fullscreen. | 1335 // fullscreen. |
| 1336 const char kDisableAutoHidingToolbarThreshold[] = | 1336 const char kDisableAutoHidingToolbarThreshold[] = |
| 1337 "disable-auto-hiding-toolbar-threshold"; | 1337 "disable-auto-hiding-toolbar-threshold"; |
| 1338 #endif // defined(OS_ANDROID) | 1338 #endif // defined(OS_ANDROID) |
| 1339 | 1339 |
| 1340 // Enables support for the Brotli Content-Encoding. |
| 1341 const char kEnableBrotli[] = "enable-brotli"; |
| 1342 |
| 1343 // Disables support for the Brotli Content-Encoding. |
| 1344 const char kDisableBrotli[] = "disable-brotli"; |
| 1345 |
| 1340 bool AboutInSettingsEnabled() { | 1346 bool AboutInSettingsEnabled() { |
| 1341 return SettingsWindowEnabled() && | 1347 return SettingsWindowEnabled() && |
| 1342 !base::CommandLine::ForCurrentProcess()->HasSwitch( | 1348 !base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1343 ::switches::kDisableAboutInSettings); | 1349 ::switches::kDisableAboutInSettings); |
| 1344 } | 1350 } |
| 1345 | 1351 |
| 1346 bool MdExtensionsEnabled() { | 1352 bool MdExtensionsEnabled() { |
| 1347 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1353 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1348 ::switches::kEnableMaterialDesignExtensions); | 1354 ::switches::kEnableMaterialDesignExtensions); |
| 1349 } | 1355 } |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1395 | 1401 |
| 1396 // ----------------------------------------------------------------------------- | 1402 // ----------------------------------------------------------------------------- |
| 1397 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1403 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1398 // | 1404 // |
| 1399 // You were going to just dump your switches here, weren't you? Instead, please | 1405 // You were going to just dump your switches here, weren't you? Instead, please |
| 1400 // put them in alphabetical order above, or in order inside the appropriate | 1406 // put them in alphabetical order above, or in order inside the appropriate |
| 1401 // ifdef at the bottom. The order should match the header. | 1407 // ifdef at the bottom. The order should match the header. |
| 1402 // ----------------------------------------------------------------------------- | 1408 // ----------------------------------------------------------------------------- |
| 1403 | 1409 |
| 1404 } // namespace switches | 1410 } // namespace switches |
| OLD | NEW |