| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // system during first run and cached in the preferences afterwards. This is a | 104 // system during first run and cached in the preferences afterwards. This is a |
| 105 // string value, the 2 letter code from ISO 3166-1. | 105 // string value, the 2 letter code from ISO 3166-1. |
| 106 const char kCountry[] = "country"; | 106 const char kCountry[] = "country"; |
| 107 | 107 |
| 108 // Enables support to debug printing subsystem. | 108 // Enables support to debug printing subsystem. |
| 109 const char kDebugPrint[] = "debug-print"; | 109 const char kDebugPrint[] = "debug-print"; |
| 110 | 110 |
| 111 // Triggers a pletora of diagnostic modes. | 111 // Triggers a pletora of diagnostic modes. |
| 112 const char kDiagnostics[] = "diagnostics"; | 112 const char kDiagnostics[] = "diagnostics"; |
| 113 | 113 |
| 114 // Disables accelerated compositing. |
| 115 const char kDisableAcceleratedCompositing[] = |
| 116 "disable-accelerated-compositing"; |
| 117 |
| 114 // Disables the alternate window station for the renderer. | 118 // Disables the alternate window station for the renderer. |
| 115 const char kDisableAltWinstation[] = "disable-winsta"; | 119 const char kDisableAltWinstation[] = "disable-winsta"; |
| 116 | 120 |
| 117 // Disable the ApplicationCache. | 121 // Disable the ApplicationCache. |
| 118 const char kDisableApplicationCache[] = "disable-application-cache"; | 122 const char kDisableApplicationCache[] = "disable-application-cache"; |
| 119 | 123 |
| 120 // Replaces the audio IPC layer for <audio> and <video> with a mock audio | 124 // Replaces the audio IPC layer for <audio> and <video> with a mock audio |
| 121 // device, useful when using remote desktop or machines without sound cards. | 125 // device, useful when using remote desktop or machines without sound cards. |
| 122 // This is temporary until we fix the underlying problem. | 126 // This is temporary until we fix the underlying problem. |
| 123 // | 127 // |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 167 |
| 164 // Disables desktop notifications (default enabled on windows). | 168 // Disables desktop notifications (default enabled on windows). |
| 165 const char kDisableDesktopNotifications[] = "disable-desktop-notifications"; | 169 const char kDisableDesktopNotifications[] = "disable-desktop-notifications"; |
| 166 | 170 |
| 167 // Browser flag to disable the web inspector for all renderers. | 171 // Browser flag to disable the web inspector for all renderers. |
| 168 const char kDisableDevTools[] = "disable-dev-tools"; | 172 const char kDisableDevTools[] = "disable-dev-tools"; |
| 169 | 173 |
| 170 // Disables device orientation events. | 174 // Disables device orientation events. |
| 171 const char kDisableDeviceOrientation[] = "disable-device-orientation"; | 175 const char kDisableDeviceOrientation[] = "disable-device-orientation"; |
| 172 | 176 |
| 177 // Disable experimental WebGL support. |
| 178 const char kDisableExperimentalWebGL[] = "disable-webgl"; |
| 179 |
| 173 // Disable extensions. | 180 // Disable extensions. |
| 174 const char kDisableExtensions[] = "disable-extensions"; | 181 const char kDisableExtensions[] = "disable-extensions"; |
| 175 | 182 |
| 176 // Disable checking for user opt-in for extensions that want to inject script | 183 // Disable checking for user opt-in for extensions that want to inject script |
| 177 // into file URLs (ie, always allow it). This is used during automated testing. | 184 // into file URLs (ie, always allow it). This is used during automated testing. |
| 178 const char kDisableExtensionsFileAccessCheck[] = | 185 const char kDisableExtensionsFileAccessCheck[] = |
| 179 "disable-extensions-file-access-check"; | 186 "disable-extensions-file-access-check"; |
| 180 | 187 |
| 181 // Disable FileSystem API. | 188 // Disable FileSystem API. |
| 182 const char kDisableFileSystem[] = "disable-file-system"; | 189 const char kDisableFileSystem[] = "disable-file-system"; |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 // logging to be enabled to really do anything). Used by developers and test | 348 // logging to be enabled to really do anything). Used by developers and test |
| 342 // scripts. | 349 // scripts. |
| 343 const char kDumpHistogramsOnExit[] = "dump-histograms-on-exit"; | 350 const char kDumpHistogramsOnExit[] = "dump-histograms-on-exit"; |
| 344 | 351 |
| 345 // Enable displaying net log events on the command line. | 352 // Enable displaying net log events on the command line. |
| 346 extern const char kLogNetLog[] = "log-net-log"; | 353 extern const char kLogNetLog[] = "log-net-log"; |
| 347 | 354 |
| 348 // Enable gpu-accelerated 2d canvas. | 355 // Enable gpu-accelerated 2d canvas. |
| 349 const char kEnableAccelerated2dCanvas[] = "enable-accelerated-2d-canvas"; | 356 const char kEnableAccelerated2dCanvas[] = "enable-accelerated-2d-canvas"; |
| 350 | 357 |
| 351 // Enable gpu-accelerated compositing. | |
| 352 const char kEnableAcceleratedCompositing[] = "enable-accelerated-compositing"; | |
| 353 | |
| 354 // Enables WebKit accessibility within the renderer process. | 358 // Enables WebKit accessibility within the renderer process. |
| 355 const char kEnableAccessibility[] = "enable-accessibility"; | 359 const char kEnableAccessibility[] = "enable-accessibility"; |
| 356 | 360 |
| 357 // Enables AeroPeek for each tab. (This switch only works on Windows 7). | 361 // Enables AeroPeek for each tab. (This switch only works on Windows 7). |
| 358 const char kEnableAeroPeekTabs[] = "enable-aero-peek-tabs"; | 362 const char kEnableAeroPeekTabs[] = "enable-aero-peek-tabs"; |
| 359 | 363 |
| 360 // Enables the application section of the new tab page. | 364 // Enables the application section of the new tab page. |
| 361 const char kEnableAppLauncher[] = "enable-app-launcher"; | 365 const char kEnableAppLauncher[] = "enable-app-launcher"; |
| 362 | 366 |
| 363 // Enable the inclusion of non-standard ports when generating the Kerberos SPN | 367 // Enable the inclusion of non-standard ports when generating the Kerberos SPN |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 | 402 |
| 399 // Enables device motion events. | 403 // Enables device motion events. |
| 400 const char kEnableDeviceMotion[] = "enable-device-motion"; | 404 const char kEnableDeviceMotion[] = "enable-device-motion"; |
| 401 | 405 |
| 402 const char kEnableDNSSECCerts[] = "enable-dnssec-certs"; | 406 const char kEnableDNSSECCerts[] = "enable-dnssec-certs"; |
| 403 | 407 |
| 404 // Enables extension APIs that are in development. | 408 // Enables extension APIs that are in development. |
| 405 const char kEnableExperimentalExtensionApis[] = | 409 const char kEnableExperimentalExtensionApis[] = |
| 406 "enable-experimental-extension-apis"; | 410 "enable-experimental-extension-apis"; |
| 407 | 411 |
| 408 // Enable experimental WebGL support. | |
| 409 const char kEnableExperimentalWebGL[] = "enable-webgl"; | |
| 410 | |
| 411 // Enable experimental timeline API. | 412 // Enable experimental timeline API. |
| 412 const char kEnableExtensionTimelineApi[] = "enable-extension-timeline-api"; | 413 const char kEnableExtensionTimelineApi[] = "enable-extension-timeline-api"; |
| 413 | 414 |
| 414 // Enable the fastback page cache. | 415 // Enable the fastback page cache. |
| 415 const char kEnableFastback[] = "enable-fastback"; | 416 const char kEnableFastback[] = "enable-fastback"; |
| 416 | 417 |
| 417 // By default, cookies are not allowed on file://. They are needed for | 418 // By default, cookies are not allowed on file://. They are needed for |
| 418 // testing, for example page cycler and layout tests. See bug 1157243. | 419 // testing, for example page cycler and layout tests. See bug 1157243. |
| 419 const char kEnableFileCookies[] = "enable-file-cookies"; | 420 const char kEnableFileCookies[] = "enable-file-cookies"; |
| 420 | 421 |
| (...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1269 | 1270 |
| 1270 // ----------------------------------------------------------------------------- | 1271 // ----------------------------------------------------------------------------- |
| 1271 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1272 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1272 // | 1273 // |
| 1273 // You were going to just dump your switches here, weren't you? Instead, | 1274 // You were going to just dump your switches here, weren't you? Instead, |
| 1274 // please put them in alphabetical order above, or in order inside the | 1275 // please put them in alphabetical order above, or in order inside the |
| 1275 // appropriate ifdef at the bottom. The order should match the header. | 1276 // appropriate ifdef at the bottom. The order should match the header. |
| 1276 // ----------------------------------------------------------------------------- | 1277 // ----------------------------------------------------------------------------- |
| 1277 | 1278 |
| 1278 } // namespace switches | 1279 } // namespace switches |
| OLD | NEW |