OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 // disable that check. This switch is used during automated testing. | 312 // disable that check. This switch is used during automated testing. |
313 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; | 313 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; |
314 | 314 |
315 // Disables using bubbles for session restore request. | 315 // Disables using bubbles for session restore request. |
316 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble"; | 316 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble"; |
317 | 317 |
318 // Disables the Site Engagement service, which records interaction with sites | 318 // Disables the Site Engagement service, which records interaction with sites |
319 // and allocates certain resources accordingly. | 319 // and allocates certain resources accordingly. |
320 const char kDisableSiteEngagementService[] = "disable-site-engagement-service"; | 320 const char kDisableSiteEngagementService[] = "disable-site-engagement-service"; |
321 | 321 |
| 322 #if defined(OS_ANDROID) |
| 323 // Disable VR UI if supported. |
| 324 const char kDisableVrShell[] = "disable-vr-shell"; |
| 325 #endif |
| 326 |
322 // Disables Web Notification custom layouts. | 327 // Disables Web Notification custom layouts. |
323 const char kDisableWebNotificationCustomLayouts[] = | 328 const char kDisableWebNotificationCustomLayouts[] = |
324 "disable-web-notification-custom-layouts"; | 329 "disable-web-notification-custom-layouts"; |
325 | 330 |
326 // Disables WebUSB's CORS-like checks for origin->device communication. | 331 // Disables WebUSB's CORS-like checks for origin->device communication. |
327 const char kDisableWebUsbSecurity[] = "disable-webusb-security"; | 332 const char kDisableWebUsbSecurity[] = "disable-webusb-security"; |
328 | 333 |
329 // Some tests seem to require the application to close when the last | 334 // Some tests seem to require the application to close when the last |
330 // browser window is closed. Thus, we need a switch to force this behavior | 335 // browser window is closed. Thus, we need a switch to force this behavior |
331 // for ChromeOS Aura, disable "zero window mode". | 336 // for ChromeOS Aura, disable "zero window mode". |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 const char kEnableTabAudioMuting[] = "enable-tab-audio-muting"; | 537 const char kEnableTabAudioMuting[] = "enable-tab-audio-muting"; |
533 | 538 |
534 // Enables fanciful thumbnail processing. Used with NTP for | 539 // Enables fanciful thumbnail processing. Used with NTP for |
535 // instant-extended-api, where thumbnails are generally smaller. | 540 // instant-extended-api, where thumbnails are generally smaller. |
536 const char kEnableThumbnailRetargeting[] = "enable-thumbnail-retargeting"; | 541 const char kEnableThumbnailRetargeting[] = "enable-thumbnail-retargeting"; |
537 | 542 |
538 // Enables Alternate-Protocol when the port is user controlled (> 1024). | 543 // Enables Alternate-Protocol when the port is user controlled (> 1024). |
539 const char kEnableUserAlternateProtocolPorts[] = | 544 const char kEnableUserAlternateProtocolPorts[] = |
540 "enable-user-controlled-alternate-protocol-ports"; | 545 "enable-user-controlled-alternate-protocol-ports"; |
541 | 546 |
| 547 #if defined(OS_ANDROID) |
| 548 // Enable VR UI if supported. |
| 549 const char kEnableVrShell[] = "enable-vr-shell"; |
| 550 #endif |
| 551 |
542 // Enables a new "web app" style frame for hosted apps (including bookmark | 552 // Enables a new "web app" style frame for hosted apps (including bookmark |
543 // apps). | 553 // apps). |
544 const char kEnableWebAppFrame[] = "enable-web-app-frame"; | 554 const char kEnableWebAppFrame[] = "enable-web-app-frame"; |
545 | 555 |
546 #if defined(OS_ANDROID) | 556 #if defined(OS_ANDROID) |
547 // Enables "Add to Home screen" in the app menu to generate WebAPKs. | 557 // Enables "Add to Home screen" in the app menu to generate WebAPKs. |
548 const char kEnableWebApk[] = "enable-webapk"; | 558 const char kEnableWebApk[] = "enable-webapk"; |
549 #endif | 559 #endif |
550 | 560 |
551 // Enables Web Notification custom layouts. | 561 // Enables Web Notification custom layouts. |
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1320 | 1330 |
1321 // ----------------------------------------------------------------------------- | 1331 // ----------------------------------------------------------------------------- |
1322 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1332 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1323 // | 1333 // |
1324 // You were going to just dump your switches here, weren't you? Instead, please | 1334 // You were going to just dump your switches here, weren't you? Instead, please |
1325 // put them in alphabetical order above, or in order inside the appropriate | 1335 // put them in alphabetical order above, or in order inside the appropriate |
1326 // ifdef at the bottom. The order should match the header. | 1336 // ifdef at the bottom. The order should match the header. |
1327 // ----------------------------------------------------------------------------- | 1337 // ----------------------------------------------------------------------------- |
1328 | 1338 |
1329 } // namespace switches | 1339 } // namespace switches |
OLD | NEW |