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 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1633 // Windows 8 and higher. Used when relaunching metro Chrome. | 1633 // Windows 8 and higher. Used when relaunching metro Chrome. |
1634 const char kForceImmersive[] = "force-immersive"; | 1634 const char kForceImmersive[] = "force-immersive"; |
1635 | 1635 |
1636 // For the DelegateExecute verb handler to launch Chrome in desktop mode on | 1636 // For the DelegateExecute verb handler to launch Chrome in desktop mode on |
1637 // Windows 8 and higher. Used when relaunching metro Chrome. | 1637 // Windows 8 and higher. Used when relaunching metro Chrome. |
1638 const char kForceDesktop[] = "force-desktop"; | 1638 const char kForceDesktop[] = "force-desktop"; |
1639 | 1639 |
1640 // Relaunches metro Chrome on Windows 8 and higher using a given shortcut. | 1640 // Relaunches metro Chrome on Windows 8 and higher using a given shortcut. |
1641 const char kRelaunchShortcut[] = "relaunch-shortcut"; | 1641 const char kRelaunchShortcut[] = "relaunch-shortcut"; |
1642 | 1642 |
1643 // Waits for the given handle to be signaled before relaunching metro Chrome on | |
1644 // Windows 8 and higher. | |
1645 const char kWaitForMutex[] = "wait-for-mutex"; | |
1646 | |
1647 // Indicates that chrome was launched to service a search request in Windows 8. | |
1648 const char kWindows8Search[] = "windows8-search"; | |
1649 | |
1650 #endif | |
1651 | |
1652 #if defined(OS_WIN) && defined(USE_AURA) | |
1653 // Requests that Chrome connect to the running Metro viewer process. | 1643 // Requests that Chrome connect to the running Metro viewer process. |
1654 const char kViewerConnect[] = "viewer-connect"; | 1644 const char kViewerConnect[] = "viewer-connect"; |
1655 | 1645 |
1656 // Requests that Chrome launch the Metro viewer process via the given appid | 1646 // Requests that Chrome launch the Metro viewer process via the given appid |
1657 // (which is assumed to be registered as default browser) and synchronously | 1647 // (which is assumed to be registered as default browser) and synchronously |
1658 // connect to it. | 1648 // connect to it. |
1659 const char kViewerLaunchViaAppId[] = "viewer-launch-via-appid"; | 1649 const char kViewerLaunchViaAppId[] = "viewer-launch-via-appid"; |
| 1650 |
| 1651 // Waits for the given handle to be signaled before relaunching metro Chrome on |
| 1652 // Windows 8 and higher. |
| 1653 const char kWaitForMutex[] = "wait-for-mutex"; |
| 1654 |
| 1655 // Indicates that chrome was launched to service a search request in Windows 8. |
| 1656 const char kWindows8Search[] = "windows8-search"; |
1660 #endif | 1657 #endif |
1661 | 1658 |
1662 #ifndef NDEBUG | 1659 #ifndef NDEBUG |
1663 // Enables overriding the path of file manager extension. | 1660 // Enables overriding the path of file manager extension. |
1664 const char kFileManagerExtensionPath[] = "filemgr-ext-path"; | 1661 const char kFileManagerExtensionPath[] = "filemgr-ext-path"; |
1665 | 1662 |
1666 // Enables overriding the path of image loader extension. | 1663 // Enables overriding the path of image loader extension. |
1667 const char kImageLoaderExtensionPath[] = "image-loader-ext-path"; | 1664 const char kImageLoaderExtensionPath[] = "image-loader-ext-path"; |
1668 #endif // NDEBUG | 1665 #endif // NDEBUG |
1669 | 1666 |
1670 // Controls print preview in the browser process. | 1667 // Controls print preview in the browser process. |
1671 #if defined(GOOGLE_CHROME_BUILD) | 1668 #if defined(GOOGLE_CHROME_BUILD) |
1672 // Disables print preview (For testing, and for users who don't like us. :[ ) | 1669 // Disables print preview (For testing, and for users who don't like us. :[ ) |
1673 const char kDisablePrintPreview[] = "disable-print-preview"; | 1670 const char kDisablePrintPreview[] = "disable-print-preview"; |
1674 #else | 1671 #else |
1675 // Enables print preview (Force enable on Chromium, which normally does not | 1672 // Enables print preview (Force enable on Chromium, which normally does not |
1676 // have the PDF viewer required for print preview.) | 1673 // have the PDF viewer required for print preview.) |
1677 const char kEnablePrintPreview[] = "enable-print-preview"; | 1674 const char kEnablePrintPreview[] = "enable-print-preview"; |
1678 #endif | 1675 #endif |
1679 | 1676 |
1680 // ----------------------------------------------------------------------------- | 1677 // ----------------------------------------------------------------------------- |
1681 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1678 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1682 // | 1679 // |
1683 // You were going to just dump your switches here, weren't you? Instead, please | 1680 // You were going to just dump your switches here, weren't you? Instead, please |
1684 // put them in alphabetical order above, or in order inside the appropriate | 1681 // put them in alphabetical order above, or in order inside the appropriate |
1685 // ifdef at the bottom. The order should match the header. | 1682 // ifdef at the bottom. The order should match the header. |
1686 // ----------------------------------------------------------------------------- | 1683 // ----------------------------------------------------------------------------- |
1687 | 1684 |
1688 } // namespace switches | 1685 } // namespace switches |
OLD | NEW |