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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // system during first run and cached in the preferences afterwards. This is a | 110 // system during first run and cached in the preferences afterwards. This is a |
111 // string value, the 2 letter code from ISO 3166-1. | 111 // string value, the 2 letter code from ISO 3166-1. |
112 const char kCountry[] = "country"; | 112 const char kCountry[] = "country"; |
113 | 113 |
114 // Enables support to debug printing subsystem. | 114 // Enables support to debug printing subsystem. |
115 const char kDebugPrint[] = "debug-print"; | 115 const char kDebugPrint[] = "debug-print"; |
116 | 116 |
117 // Triggers a pletora of diagnostic modes. | 117 // Triggers a pletora of diagnostic modes. |
118 const char kDiagnostics[] = "diagnostics"; | 118 const char kDiagnostics[] = "diagnostics"; |
119 | 119 |
| 120 // Disables accelerated compositing. |
| 121 const char kDisableAcceleratedCompositing[] = |
| 122 "disable-accelerated-compositing"; |
| 123 |
120 // Disables the alternate window station for the renderer. | 124 // Disables the alternate window station for the renderer. |
121 const char kDisableAltWinstation[] = "disable-winsta"; | 125 const char kDisableAltWinstation[] = "disable-winsta"; |
122 | 126 |
123 // Disable the ApplicationCache. | 127 // Disable the ApplicationCache. |
124 const char kDisableApplicationCache[] = "disable-application-cache"; | 128 const char kDisableApplicationCache[] = "disable-application-cache"; |
125 | 129 |
126 // Disable extension apps. | 130 // Disable extension apps. |
127 const char kDisableApps[] = "disable-apps"; | 131 const char kDisableApps[] = "disable-apps"; |
128 | 132 |
129 // Replaces the audio IPC layer for <audio> and <video> with a mock audio | 133 // Replaces the audio IPC layer for <audio> and <video> with a mock audio |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 171 |
168 // Disables desktop notifications (default enabled on windows). | 172 // Disables desktop notifications (default enabled on windows). |
169 const char kDisableDesktopNotifications[] = "disable-desktop-notifications"; | 173 const char kDisableDesktopNotifications[] = "disable-desktop-notifications"; |
170 | 174 |
171 // Browser flag to disable the web inspector for all renderers. | 175 // Browser flag to disable the web inspector for all renderers. |
172 const char kDisableDevTools[] = "disable-dev-tools"; | 176 const char kDisableDevTools[] = "disable-dev-tools"; |
173 | 177 |
174 // Disables device orientation events. | 178 // Disables device orientation events. |
175 const char kDisableDeviceOrientation[] = "disable-device-orientation"; | 179 const char kDisableDeviceOrientation[] = "disable-device-orientation"; |
176 | 180 |
| 181 // Disable experimental WebGL support. |
| 182 const char kDisableExperimentalWebGL[] = "disable-webgl"; |
| 183 |
177 // Disable extensions. | 184 // Disable extensions. |
178 const char kDisableExtensions[] = "disable-extensions"; | 185 const char kDisableExtensions[] = "disable-extensions"; |
179 | 186 |
180 // Disable checking for user opt-in for extensions that want to inject script | 187 // Disable checking for user opt-in for extensions that want to inject script |
181 // into file URLs (ie, always allow it). This is used during automated testing. | 188 // into file URLs (ie, always allow it). This is used during automated testing. |
182 const char kDisableExtensionsFileAccessCheck[] = | 189 const char kDisableExtensionsFileAccessCheck[] = |
183 "disable-extensions-file-access-check"; | 190 "disable-extensions-file-access-check"; |
184 | 191 |
185 // Suppresses support for the Geolocation javascript API. | 192 // Suppresses support for the Geolocation javascript API. |
186 const char kDisableGeolocation[] = "disable-geolocation"; | 193 const char kDisableGeolocation[] = "disable-geolocation"; |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 const char kDomAutomationController[] = "dom-automation"; | 340 const char kDomAutomationController[] = "dom-automation"; |
334 | 341 |
335 // Dump any accumualted histograms to the log when browser terminates (requires | 342 // Dump any accumualted histograms to the log when browser terminates (requires |
336 // logging to be enabled to really do anything). Used by developers and test | 343 // logging to be enabled to really do anything). Used by developers and test |
337 // scripts. | 344 // scripts. |
338 const char kDumpHistogramsOnExit[] = "dump-histograms-on-exit"; | 345 const char kDumpHistogramsOnExit[] = "dump-histograms-on-exit"; |
339 | 346 |
340 // Enable displaying net log events on the command line. | 347 // Enable displaying net log events on the command line. |
341 extern const char kLogNetLog[] = "log-net-log"; | 348 extern const char kLogNetLog[] = "log-net-log"; |
342 | 349 |
343 // Enable gpu-accelerated compositing. | |
344 const char kEnableAcceleratedCompositing[] = "enable-accelerated-compositing"; | |
345 | |
346 // Enable gpu-accelerated 2d canvas. | 350 // Enable gpu-accelerated 2d canvas. |
347 const char kEnableAccelerated2dCanvas[] = "enable-accelerated-2d-canvas"; | 351 const char kEnableAccelerated2dCanvas[] = "enable-accelerated-2d-canvas"; |
348 | 352 |
349 // Enables AeroPeek for each tab. (This switch only works on Windows 7). | 353 // Enables AeroPeek for each tab. (This switch only works on Windows 7). |
350 const char kEnableAeroPeekTabs[] = "enable-aero-peek-tabs"; | 354 const char kEnableAeroPeekTabs[] = "enable-aero-peek-tabs"; |
351 | 355 |
352 // Enable the inclusion of non-standard ports when generating the Kerberos SPN | 356 // Enable the inclusion of non-standard ports when generating the Kerberos SPN |
353 // in response to a Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN | 357 // in response to a Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN |
354 // for more background. | 358 // for more background. |
355 const char kEnableAuthNegotiatePort[] = "enable-auth-negotiate-port"; | 359 const char kEnableAuthNegotiatePort[] = "enable-auth-negotiate-port"; |
(...skipping 30 matching lines...) Expand all Loading... |
386 | 390 |
387 // Enables device motion events. | 391 // Enables device motion events. |
388 const char kEnableDeviceMotion[] = "enable-device-motion"; | 392 const char kEnableDeviceMotion[] = "enable-device-motion"; |
389 | 393 |
390 const char kEnableDNSSECCerts[] = "enable-dnssec-certs"; | 394 const char kEnableDNSSECCerts[] = "enable-dnssec-certs"; |
391 | 395 |
392 // Enables extension APIs that are in development. | 396 // Enables extension APIs that are in development. |
393 const char kEnableExperimentalExtensionApis[] = | 397 const char kEnableExperimentalExtensionApis[] = |
394 "enable-experimental-extension-apis"; | 398 "enable-experimental-extension-apis"; |
395 | 399 |
396 // Enable experimental WebGL support. | |
397 const char kEnableExperimentalWebGL[] = "enable-webgl"; | |
398 | |
399 // Enable experimental timeline API. | 400 // Enable experimental timeline API. |
400 const char kEnableExtensionTimelineApi[] = "enable-extension-timeline-api"; | 401 const char kEnableExtensionTimelineApi[] = "enable-extension-timeline-api"; |
401 | 402 |
402 // Enable the fastback page cache. | 403 // Enable the fastback page cache. |
403 const char kEnableFastback[] = "enable-fastback"; | 404 const char kEnableFastback[] = "enable-fastback"; |
404 | 405 |
405 // By default, cookies are not allowed on file://. They are needed for | 406 // By default, cookies are not allowed on file://. They are needed for |
406 // testing, for example page cycler and layout tests. See bug 1157243. | 407 // testing, for example page cycler and layout tests. See bug 1157243. |
407 const char kEnableFileCookies[] = "enable-file-cookies"; | 408 const char kEnableFileCookies[] = "enable-file-cookies"; |
408 | 409 |
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1257 | 1258 |
1258 // ----------------------------------------------------------------------------- | 1259 // ----------------------------------------------------------------------------- |
1259 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1260 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1260 // | 1261 // |
1261 // You were going to just dump your switches here, weren't you? Instead, | 1262 // You were going to just dump your switches here, weren't you? Instead, |
1262 // please put them in alphabetical order above, or in order inside the | 1263 // please put them in alphabetical order above, or in order inside the |
1263 // appropriate ifdef at the bottom. The order should match the header. | 1264 // appropriate ifdef at the bottom. The order should match the header. |
1264 // ----------------------------------------------------------------------------- | 1265 // ----------------------------------------------------------------------------- |
1265 | 1266 |
1266 } // namespace switches | 1267 } // namespace switches |
OLD | NEW |