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