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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // system during first run and cached in the preferences afterwards. This is a | 114 // system during first run and cached in the preferences afterwards. This is a |
115 // string value, the 2 letter code from ISO 3166-1. | 115 // string value, the 2 letter code from ISO 3166-1. |
116 const char kCountry[] = "country"; | 116 const char kCountry[] = "country"; |
117 | 117 |
118 // Enables support to debug printing subsystem. | 118 // Enables support to debug printing subsystem. |
119 const char kDebugPrint[] = "debug-print"; | 119 const char kDebugPrint[] = "debug-print"; |
120 | 120 |
121 // Triggers a pletora of diagnostic modes. | 121 // Triggers a pletora of diagnostic modes. |
122 const char kDiagnostics[] = "diagnostics"; | 122 const char kDiagnostics[] = "diagnostics"; |
123 | 123 |
124 // Disables accelerated compositing. | |
125 const char kDisableAcceleratedCompositing[] = | |
126 "disable-accelerated-compositing"; | |
127 | |
128 // Disables the alternate window station for the renderer. | 124 // Disables the alternate window station for the renderer. |
129 const char kDisableAltWinstation[] = "disable-winsta"; | 125 const char kDisableAltWinstation[] = "disable-winsta"; |
130 | 126 |
131 // Disable the ApplicationCache. | 127 // Disable the ApplicationCache. |
132 const char kDisableApplicationCache[] = "disable-application-cache"; | 128 const char kDisableApplicationCache[] = "disable-application-cache"; |
133 | 129 |
134 // Replaces the audio IPC layer for <audio> and <video> with a mock audio | 130 // Replaces the audio IPC layer for <audio> and <video> with a mock audio |
135 // device, useful when using remote desktop or machines without sound cards. | 131 // device, useful when using remote desktop or machines without sound cards. |
136 // This is temporary until we fix the underlying problem. | 132 // This is temporary until we fix the underlying problem. |
137 // | 133 // |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 173 |
178 // Disables desktop notifications (default enabled on windows). | 174 // Disables desktop notifications (default enabled on windows). |
179 const char kDisableDesktopNotifications[] = "disable-desktop-notifications"; | 175 const char kDisableDesktopNotifications[] = "disable-desktop-notifications"; |
180 | 176 |
181 // Browser flag to disable the web inspector for all renderers. | 177 // Browser flag to disable the web inspector for all renderers. |
182 const char kDisableDevTools[] = "disable-dev-tools"; | 178 const char kDisableDevTools[] = "disable-dev-tools"; |
183 | 179 |
184 // Disables device orientation events. | 180 // Disables device orientation events. |
185 const char kDisableDeviceOrientation[] = "disable-device-orientation"; | 181 const char kDisableDeviceOrientation[] = "disable-device-orientation"; |
186 | 182 |
187 // Disable experimental WebGL support. | |
188 const char kDisableExperimentalWebGL[] = "disable-webgl"; | |
189 | |
190 // Disable extensions. | 183 // Disable extensions. |
191 const char kDisableExtensions[] = "disable-extensions"; | 184 const char kDisableExtensions[] = "disable-extensions"; |
192 | 185 |
193 // Disable checking for user opt-in for extensions that want to inject script | 186 // Disable checking for user opt-in for extensions that want to inject script |
194 // into file URLs (ie, always allow it). This is used during automated testing. | 187 // into file URLs (ie, always allow it). This is used during automated testing. |
195 const char kDisableExtensionsFileAccessCheck[] = | 188 const char kDisableExtensionsFileAccessCheck[] = |
196 "disable-extensions-file-access-check"; | 189 "disable-extensions-file-access-check"; |
197 | 190 |
198 // Disable FileSystem API. | 191 // Disable FileSystem API. |
199 const char kDisableFileSystem[] = "disable-file-system"; | 192 const char kDisableFileSystem[] = "disable-file-system"; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 // logging to be enabled to really do anything). Used by developers and test | 352 // logging to be enabled to really do anything). Used by developers and test |
360 // scripts. | 353 // scripts. |
361 const char kDumpHistogramsOnExit[] = "dump-histograms-on-exit"; | 354 const char kDumpHistogramsOnExit[] = "dump-histograms-on-exit"; |
362 | 355 |
363 // Enable displaying net log events on the command line. | 356 // Enable displaying net log events on the command line. |
364 extern const char kLogNetLog[] = "log-net-log"; | 357 extern const char kLogNetLog[] = "log-net-log"; |
365 | 358 |
366 // Enable gpu-accelerated 2d canvas. | 359 // Enable gpu-accelerated 2d canvas. |
367 const char kEnableAccelerated2dCanvas[] = "enable-accelerated-2d-canvas"; | 360 const char kEnableAccelerated2dCanvas[] = "enable-accelerated-2d-canvas"; |
368 | 361 |
| 362 // Enable gpu-accelerated compositing. |
| 363 const char kEnableAcceleratedCompositing[] = "enable-accelerated-compositing"; |
| 364 |
369 // Enables WebKit accessibility within the renderer process. | 365 // Enables WebKit accessibility within the renderer process. |
370 const char kEnableAccessibility[] = "enable-accessibility"; | 366 const char kEnableAccessibility[] = "enable-accessibility"; |
371 | 367 |
372 // Enables AeroPeek for each tab. (This switch only works on Windows 7). | 368 // Enables AeroPeek for each tab. (This switch only works on Windows 7). |
373 const char kEnableAeroPeekTabs[] = "enable-aero-peek-tabs"; | 369 const char kEnableAeroPeekTabs[] = "enable-aero-peek-tabs"; |
374 | 370 |
375 // Enables the application section of the new tab page. | 371 // Enables the application section of the new tab page. |
376 const char kEnableAppLauncher[] = "enable-app-launcher"; | 372 const char kEnableAppLauncher[] = "enable-app-launcher"; |
377 | 373 |
378 // Enable the inclusion of non-standard ports when generating the Kerberos SPN | 374 // 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... |
413 | 409 |
414 // Enables device motion events. | 410 // Enables device motion events. |
415 const char kEnableDeviceMotion[] = "enable-device-motion"; | 411 const char kEnableDeviceMotion[] = "enable-device-motion"; |
416 | 412 |
417 const char kEnableDNSSECCerts[] = "enable-dnssec-certs"; | 413 const char kEnableDNSSECCerts[] = "enable-dnssec-certs"; |
418 | 414 |
419 // Enables extension APIs that are in development. | 415 // Enables extension APIs that are in development. |
420 const char kEnableExperimentalExtensionApis[] = | 416 const char kEnableExperimentalExtensionApis[] = |
421 "enable-experimental-extension-apis"; | 417 "enable-experimental-extension-apis"; |
422 | 418 |
| 419 // Enable experimental WebGL support. |
| 420 const char kEnableExperimentalWebGL[] = "enable-webgl"; |
| 421 |
423 // Enable experimental timeline API. | 422 // Enable experimental timeline API. |
424 const char kEnableExtensionTimelineApi[] = "enable-extension-timeline-api"; | 423 const char kEnableExtensionTimelineApi[] = "enable-extension-timeline-api"; |
425 | 424 |
426 // Enable the fastback page cache. | 425 // Enable the fastback page cache. |
427 const char kEnableFastback[] = "enable-fastback"; | 426 const char kEnableFastback[] = "enable-fastback"; |
428 | 427 |
429 // By default, cookies are not allowed on file://. They are needed for | 428 // By default, cookies are not allowed on file://. They are needed for |
430 // testing, for example page cycler and layout tests. See bug 1157243. | 429 // testing, for example page cycler and layout tests. See bug 1157243. |
431 const char kEnableFileCookies[] = "enable-file-cookies"; | 430 const char kEnableFileCookies[] = "enable-file-cookies"; |
432 | 431 |
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1295 | 1294 |
1296 // ----------------------------------------------------------------------------- | 1295 // ----------------------------------------------------------------------------- |
1297 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1296 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1298 // | 1297 // |
1299 // You were going to just dump your switches here, weren't you? Instead, | 1298 // You were going to just dump your switches here, weren't you? Instead, |
1300 // please put them in alphabetical order above, or in order inside the | 1299 // please put them in alphabetical order above, or in order inside the |
1301 // appropriate ifdef at the bottom. The order should match the header. | 1300 // appropriate ifdef at the bottom. The order should match the header. |
1302 // ----------------------------------------------------------------------------- | 1301 // ----------------------------------------------------------------------------- |
1303 | 1302 |
1304 } // namespace switches | 1303 } // namespace switches |
OLD | NEW |