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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 | 339 |
333 // Dump any accumualted histograms to the log when browser terminates (requires | 340 // Dump any accumualted histograms to the log when browser terminates (requires |
334 // logging to be enabled to really do anything). Used by developers and test | 341 // logging to be enabled to really do anything). Used by developers and test |
335 // scripts. | 342 // scripts. |
336 const char kDumpHistogramsOnExit[] = "dump-histograms-on-exit"; | 343 const char kDumpHistogramsOnExit[] = "dump-histograms-on-exit"; |
337 | 344 |
338 // Enable displaying net log events on the command line. | 345 // Enable displaying net log events on the command line. |
339 extern const char kLogNetLog[] = "log-net-log"; | 346 extern const char kLogNetLog[] = "log-net-log"; |
340 | 347 |
341 // Enable gpu-accelerated compositing. | 348 // Enable gpu-accelerated compositing. |
| 349 // TODO(vangelis): Remove the flag once accelerated compositing is enabled by |
| 350 // default on all platforms. |
342 const char kEnableAcceleratedCompositing[] = "enable-accelerated-compositing"; | 351 const char kEnableAcceleratedCompositing[] = "enable-accelerated-compositing"; |
343 | 352 |
344 // Enable gpu-accelerated 2d canvas. | 353 // Enable gpu-accelerated 2d canvas. |
345 const char kEnableAccelerated2dCanvas[] = "enable-accelerated-2d-canvas"; | 354 const char kEnableAccelerated2dCanvas[] = "enable-accelerated-2d-canvas"; |
346 | 355 |
347 // Enables AeroPeek for each tab. (This switch only works on Windows 7). | 356 // Enables AeroPeek for each tab. (This switch only works on Windows 7). |
348 const char kEnableAeroPeekTabs[] = "enable-aero-peek-tabs"; | 357 const char kEnableAeroPeekTabs[] = "enable-aero-peek-tabs"; |
349 | 358 |
350 // Enable the inclusion of non-standard ports when generating the Kerberos SPN | 359 // Enable the inclusion of non-standard ports when generating the Kerberos SPN |
351 // in response to a Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN | 360 // in response to a Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 | 393 |
385 // Enables device motion events. | 394 // Enables device motion events. |
386 const char kEnableDeviceMotion[] = "enable-device-motion"; | 395 const char kEnableDeviceMotion[] = "enable-device-motion"; |
387 | 396 |
388 const char kEnableDNSSECCerts[] = "enable-dnssec-certs"; | 397 const char kEnableDNSSECCerts[] = "enable-dnssec-certs"; |
389 | 398 |
390 // Enables extension APIs that are in development. | 399 // Enables extension APIs that are in development. |
391 const char kEnableExperimentalExtensionApis[] = | 400 const char kEnableExperimentalExtensionApis[] = |
392 "enable-experimental-extension-apis"; | 401 "enable-experimental-extension-apis"; |
393 | 402 |
394 // Enable experimental WebGL support. | |
395 const char kEnableExperimentalWebGL[] = "enable-webgl"; | |
396 | |
397 // Enable experimental timeline API. | 403 // Enable experimental timeline API. |
398 const char kEnableExtensionTimelineApi[] = "enable-extension-timeline-api"; | 404 const char kEnableExtensionTimelineApi[] = "enable-extension-timeline-api"; |
399 | 405 |
400 // Enable the fastback page cache. | 406 // Enable the fastback page cache. |
401 const char kEnableFastback[] = "enable-fastback"; | 407 const char kEnableFastback[] = "enable-fastback"; |
402 | 408 |
403 // By default, cookies are not allowed on file://. They are needed for | 409 // By default, cookies are not allowed on file://. They are needed for |
404 // testing, for example page cycler and layout tests. See bug 1157243. | 410 // testing, for example page cycler and layout tests. See bug 1157243. |
405 const char kEnableFileCookies[] = "enable-file-cookies"; | 411 const char kEnableFileCookies[] = "enable-file-cookies"; |
406 | 412 |
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1255 | 1261 |
1256 // ----------------------------------------------------------------------------- | 1262 // ----------------------------------------------------------------------------- |
1257 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1263 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1258 // | 1264 // |
1259 // You were going to just dump your switches here, weren't you? Instead, | 1265 // You were going to just dump your switches here, weren't you? Instead, |
1260 // please put them in alphabetical order above, or in order inside the | 1266 // please put them in alphabetical order above, or in order inside the |
1261 // appropriate ifdef at the bottom. The order should match the header. | 1267 // appropriate ifdef at the bottom. The order should match the header. |
1262 // ----------------------------------------------------------------------------- | 1268 // ----------------------------------------------------------------------------- |
1263 | 1269 |
1264 } // namespace switches | 1270 } // namespace switches |
OLD | NEW |