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 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1311 | 1311 |
1312 #if defined(OS_ANDROID) | 1312 #if defined(OS_ANDROID) |
1313 // Sets the threshold for when to disable auto-hiding the toolbar. If the | 1313 // Sets the threshold for when to disable auto-hiding the toolbar. If the |
1314 // device's width and height are above the threshold, the toolbar will never | 1314 // device's width and height are above the threshold, the toolbar will never |
1315 // be hidden due to scrolling. It will still be hidden if page contents go | 1315 // be hidden due to scrolling. It will still be hidden if page contents go |
1316 // fullscreen. | 1316 // fullscreen. |
1317 const char kDisableAutoHidingToolbarThreshold[] = | 1317 const char kDisableAutoHidingToolbarThreshold[] = |
1318 "disable-auto-hiding-toolbar-threshold"; | 1318 "disable-auto-hiding-toolbar-threshold"; |
1319 #endif // defined(OS_ANDROID) | 1319 #endif // defined(OS_ANDROID) |
1320 | 1320 |
1321 // Enables support for the Brotli Content-encoding. | |
xunjieli
2015/11/17 16:16:12
nit: s/Content-encoding/Content-Encoding
same for
eustas
2015/11/17 17:57:20
Done.
| |
1322 const char kEnableBrotli[] = "enable-brotli"; | |
1323 | |
1324 // Disables support for the Brotli Content-encoding. | |
1325 const char kDisableBrotli[] = "disable-brotli"; | |
1326 | |
1321 bool AboutInSettingsEnabled() { | 1327 bool AboutInSettingsEnabled() { |
1322 return SettingsWindowEnabled() && | 1328 return SettingsWindowEnabled() && |
1323 !base::CommandLine::ForCurrentProcess()->HasSwitch( | 1329 !base::CommandLine::ForCurrentProcess()->HasSwitch( |
1324 ::switches::kDisableAboutInSettings); | 1330 ::switches::kDisableAboutInSettings); |
1325 } | 1331 } |
1326 | 1332 |
1327 bool MdExtensionsEnabled() { | 1333 bool MdExtensionsEnabled() { |
1328 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1334 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
1329 ::switches::kEnableMaterialDesignExtensions); | 1335 ::switches::kEnableMaterialDesignExtensions); |
1330 } | 1336 } |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1371 | 1377 |
1372 // ----------------------------------------------------------------------------- | 1378 // ----------------------------------------------------------------------------- |
1373 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1379 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1374 // | 1380 // |
1375 // You were going to just dump your switches here, weren't you? Instead, please | 1381 // You were going to just dump your switches here, weren't you? Instead, please |
1376 // put them in alphabetical order above, or in order inside the appropriate | 1382 // put them in alphabetical order above, or in order inside the appropriate |
1377 // ifdef at the bottom. The order should match the header. | 1383 // ifdef at the bottom. The order should match the header. |
1378 // ----------------------------------------------------------------------------- | 1384 // ----------------------------------------------------------------------------- |
1379 | 1385 |
1380 } // namespace switches | 1386 } // namespace switches |
OLD | NEW |