| 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 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1321 const char kEnableWaylandServer[] = "enable-wayland-server"; | 1321 const char kEnableWaylandServer[] = "enable-wayland-server"; |
| 1322 #endif | 1322 #endif |
| 1323 | 1323 |
| 1324 #if defined(OS_ANDROID) | 1324 #if defined(OS_ANDROID) |
| 1325 // Sets the threshold for when to disable auto-hiding the toolbar. If the | 1325 // Sets the threshold for when to disable auto-hiding the toolbar. If the |
| 1326 // device's width and height are above the threshold, the toolbar will never | 1326 // device's width and height are above the threshold, the toolbar will never |
| 1327 // be hidden due to scrolling. It will still be hidden if page contents go | 1327 // be hidden due to scrolling. It will still be hidden if page contents go |
| 1328 // fullscreen. | 1328 // fullscreen. |
| 1329 const char kDisableAutoHidingToolbarThreshold[] = | 1329 const char kDisableAutoHidingToolbarThreshold[] = |
| 1330 "disable-auto-hiding-toolbar-threshold"; | 1330 "disable-auto-hiding-toolbar-threshold"; |
| 1331 |
| 1332 // Forces the update menu item to show. |
| 1333 const char kForceShowUpdateMenuItem[] = "force-show-update-menu-item"; |
| 1334 |
| 1335 // Forces a summary to be displayed below the update menu item. |
| 1336 const char kForceShowUpdateMenuItemSummary[] = "show_summary"; |
| 1337 |
| 1338 // Forces a custom summary to be displayed below the update menu item. |
| 1339 const char kForceShowUpdateMenuItemCustomSummary[] = "custom_summary"; |
| 1340 |
| 1341 // Forces the update menu badge to show. |
| 1342 const char kForceShowUpdateMenuBadge[] = "force-show-update-menu-badge"; |
| 1343 |
| 1344 // Sets the market URL for Chrome for use in testing. |
| 1345 const char kMarketUrlForTesting[] = "market-url-for-testing"; |
| 1331 #endif // defined(OS_ANDROID) | 1346 #endif // defined(OS_ANDROID) |
| 1332 | 1347 |
| 1333 #if defined(OS_WIN) || defined(OS_LINUX) | 1348 #if defined(OS_WIN) || defined(OS_LINUX) |
| 1334 extern const char kEnableInputImeAPI[] = "enable-input-ime-api"; | 1349 extern const char kEnableInputImeAPI[] = "enable-input-ime-api"; |
| 1335 extern const char kDisableInputImeAPI[] = "disable-input-ime-api"; | 1350 extern const char kDisableInputImeAPI[] = "disable-input-ime-api"; |
| 1336 #endif | 1351 #endif |
| 1337 | 1352 |
| 1338 bool AboutInSettingsEnabled() { | 1353 bool AboutInSettingsEnabled() { |
| 1339 return SettingsWindowEnabled() && | 1354 return SettingsWindowEnabled() && |
| 1340 !base::CommandLine::ForCurrentProcess()->HasSwitch( | 1355 !base::CommandLine::ForCurrentProcess()->HasSwitch( |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1382 | 1397 |
| 1383 // ----------------------------------------------------------------------------- | 1398 // ----------------------------------------------------------------------------- |
| 1384 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1399 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1385 // | 1400 // |
| 1386 // You were going to just dump your switches here, weren't you? Instead, please | 1401 // You were going to just dump your switches here, weren't you? Instead, please |
| 1387 // put them in alphabetical order above, or in order inside the appropriate | 1402 // put them in alphabetical order above, or in order inside the appropriate |
| 1388 // ifdef at the bottom. The order should match the header. | 1403 // ifdef at the bottom. The order should match the header. |
| 1389 // ----------------------------------------------------------------------------- | 1404 // ----------------------------------------------------------------------------- |
| 1390 | 1405 |
| 1391 } // namespace switches | 1406 } // namespace switches |
| OLD | NEW |