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 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1474 const char kUseSimpleCacheBackend[] = "use-simple-cache-backend"; | 1474 const char kUseSimpleCacheBackend[] = "use-simple-cache-backend"; |
1475 | 1475 |
1476 // Specifies a custom URL for the server which reports variation data to the | 1476 // Specifies a custom URL for the server which reports variation data to the |
1477 // client. Specifying this switch enables the Variations service on | 1477 // client. Specifying this switch enables the Variations service on |
1478 // unofficial builds. See variations_service.cc. | 1478 // unofficial builds. See variations_service.cc. |
1479 const char kVariationsServerURL[] = "variations-server-url"; | 1479 const char kVariationsServerURL[] = "variations-server-url"; |
1480 | 1480 |
1481 // Prints version information and quits. | 1481 // Prints version information and quits. |
1482 const char kVersion[] = "version"; | 1482 const char kVersion[] = "version"; |
1483 | 1483 |
1484 // Requests that Chrome connect to a remote viewer process using an IPC | |
1485 // channel of the given name. | |
1486 const char kViewerConnection[] = "viewer-connection"; | |
1487 | |
1488 // Cycle through a series of URLs listed in the specified file. | 1484 // Cycle through a series of URLs listed in the specified file. |
1489 const char kVisitURLs[] = "visit-urls"; | 1485 const char kVisitURLs[] = "visit-urls"; |
1490 | 1486 |
1491 // Adds the given extension ID to all the permission whitelists. | 1487 // Adds the given extension ID to all the permission whitelists. |
1492 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; | 1488 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; |
1493 | 1489 |
1494 // Specify the initial window position: --window-position=x,y | 1490 // Specify the initial window position: --window-position=x,y |
1495 const char kWindowPosition[] = "window-position"; | 1491 const char kWindowPosition[] = "window-position"; |
1496 | 1492 |
1497 // Specify the initial window size: --window-size=w,h | 1493 // Specify the initial window size: --window-size=w,h |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1598 | 1594 |
1599 // Waits for the given handle to be signaled before relaunching metro Chrome on | 1595 // Waits for the given handle to be signaled before relaunching metro Chrome on |
1600 // Windows 8 and higher. | 1596 // Windows 8 and higher. |
1601 const char kWaitForMutex[] = "wait-for-mutex"; | 1597 const char kWaitForMutex[] = "wait-for-mutex"; |
1602 | 1598 |
1603 // Indicates that chrome was launched to service a search request in Windows 8. | 1599 // Indicates that chrome was launched to service a search request in Windows 8. |
1604 const char kWindows8Search[] = "windows8-search"; | 1600 const char kWindows8Search[] = "windows8-search"; |
1605 | 1601 |
1606 #endif | 1602 #endif |
1607 | 1603 |
| 1604 #if defined(OS_WIN) && defined(USE_AURA) |
| 1605 // Requests that Chrome connect to the running Metro viewer process. |
| 1606 const char kViewerConnect[] = "viewer-connect"; |
| 1607 #endif |
| 1608 |
1608 #ifndef NDEBUG | 1609 #ifndef NDEBUG |
1609 // Enables overriding the path of file manager extension. | 1610 // Enables overriding the path of file manager extension. |
1610 const char kFileManagerExtensionPath[] = "filemgr-ext-path"; | 1611 const char kFileManagerExtensionPath[] = "filemgr-ext-path"; |
1611 | 1612 |
1612 // Enables overriding the path of image loader extension. | 1613 // Enables overriding the path of image loader extension. |
1613 const char kImageLoaderExtensionPath[] = "image-loader-ext-path"; | 1614 const char kImageLoaderExtensionPath[] = "image-loader-ext-path"; |
1614 #endif // NDEBUG | 1615 #endif // NDEBUG |
1615 | 1616 |
1616 // Controls print preview in the browser process. | 1617 // Controls print preview in the browser process. |
1617 #if defined(GOOGLE_CHROME_BUILD) | 1618 #if defined(GOOGLE_CHROME_BUILD) |
1618 // Disables print preview (For testing, and for users who don't like us. :[ ) | 1619 // Disables print preview (For testing, and for users who don't like us. :[ ) |
1619 const char kDisablePrintPreview[] = "disable-print-preview"; | 1620 const char kDisablePrintPreview[] = "disable-print-preview"; |
1620 #else | 1621 #else |
1621 // Enables print preview (Force enable on Chromium, which normally does not | 1622 // Enables print preview (Force enable on Chromium, which normally does not |
1622 // have the PDF viewer required for print preview.) | 1623 // have the PDF viewer required for print preview.) |
1623 const char kEnablePrintPreview[] = "enable-print-preview"; | 1624 const char kEnablePrintPreview[] = "enable-print-preview"; |
1624 #endif | 1625 #endif |
1625 | 1626 |
1626 // ----------------------------------------------------------------------------- | 1627 // ----------------------------------------------------------------------------- |
1627 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1628 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1628 // | 1629 // |
1629 // You were going to just dump your switches here, weren't you? Instead, please | 1630 // You were going to just dump your switches here, weren't you? Instead, please |
1630 // put them in alphabetical order above, or in order inside the appropriate | 1631 // put them in alphabetical order above, or in order inside the appropriate |
1631 // ifdef at the bottom. The order should match the header. | 1632 // ifdef at the bottom. The order should match the header. |
1632 // ----------------------------------------------------------------------------- | 1633 // ----------------------------------------------------------------------------- |
1633 | 1634 |
1634 } // namespace switches | 1635 } // namespace switches |
OLD | NEW |