| 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 "content/public/common/content_switches.h" | 5 #include "content/public/common/content_switches.h" |
| 6 | 6 |
| 7 namespace switches { | 7 namespace switches { |
| 8 | 8 |
| 9 // By default, file:// URIs cannot read other file:// URIs. This is an | 9 // By default, file:// URIs cannot read other file:// URIs. This is an |
| 10 // override for developers who need the old behavior for testing. | 10 // override for developers who need the old behavior for testing. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // Causes the browser process to crash on startup. | 29 // Causes the browser process to crash on startup. |
| 30 const char kBrowserCrashTest[] = "crash-test"; | 30 const char kBrowserCrashTest[] = "crash-test"; |
| 31 | 31 |
| 32 // Path to the exe to run for the renderer and plugin subprocesses. | 32 // Path to the exe to run for the renderer and plugin subprocesses. |
| 33 const char kBrowserSubprocessPath[] = "browser-subprocess-path"; | 33 const char kBrowserSubprocessPath[] = "browser-subprocess-path"; |
| 34 | 34 |
| 35 // Run Chrome in Chrome Frame mode. This means that Chrome expects to be run | 35 // Run Chrome in Chrome Frame mode. This means that Chrome expects to be run |
| 36 // as a dependent process of the Chrome Frame plugin. | 36 // as a dependent process of the Chrome Frame plugin. |
| 37 const char kChromeFrame[] = "chrome-frame"; | 37 const char kChromeFrame[] = "chrome-frame"; |
| 38 | 38 |
| 39 // The default device scale factor to apply to contents in the absence of |
| 40 // a viewport meta tag. |
| 41 const char kDefaultDeviceScaleFactor[] = "default-device-scale-factor"; |
| 42 |
| 39 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. | 43 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. |
| 40 // This is controlled by policy and is kept separate from the other | 44 // This is controlled by policy and is kept separate from the other |
| 41 // enable/disable switches to avoid accidentally regressing the policy | 45 // enable/disable switches to avoid accidentally regressing the policy |
| 42 // support for controlling access to these APIs. | 46 // support for controlling access to these APIs. |
| 43 const char kDisable3DAPIs[] = "disable-3d-apis"; | 47 const char kDisable3DAPIs[] = "disable-3d-apis"; |
| 44 | 48 |
| 45 // Disable gpu-accelerated 2d canvas. | 49 // Disable gpu-accelerated 2d canvas. |
| 46 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas"; | 50 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas"; |
| 47 | 51 |
| 48 // Disables accelerated compositing. | 52 // Disables accelerated compositing. |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 232 |
| 229 // Enables compositing to texture instead of display. | 233 // Enables compositing to texture instead of display. |
| 230 const char kEnableCompositeToTexture[] = "enable-composite-to-texture"; | 234 const char kEnableCompositeToTexture[] = "enable-composite-to-texture"; |
| 231 | 235 |
| 232 // Enables device motion events. | 236 // Enables device motion events. |
| 233 const char kEnableDeviceMotion[] = "enable-device-motion"; | 237 const char kEnableDeviceMotion[] = "enable-device-motion"; |
| 234 | 238 |
| 235 // Enables the fastback page cache. | 239 // Enables the fastback page cache. |
| 236 const char kEnableFastback[] = "enable-fastback"; | 240 const char kEnableFastback[] = "enable-fastback"; |
| 237 | 241 |
| 242 // By default, a page is laid out to fill the entire width of the window. |
| 243 // This flag fixes the layout of the page to a default of 980 CSS pixels. |
| 244 const char kEnableFixedLayout[] = "enable-fixed-layout"; |
| 245 |
| 238 // Enable the JavaScript Full Screen API. | 246 // Enable the JavaScript Full Screen API. |
| 239 const char kDisableFullScreen[] = "disable-fullscreen"; | 247 const char kDisableFullScreen[] = "disable-fullscreen"; |
| 240 | 248 |
| 241 // Enable the JavaScript Pointer Lock API. | 249 // Enable the JavaScript Pointer Lock API. |
| 242 const char kEnablePointerLock[] = "enable-pointer-lock"; | 250 const char kEnablePointerLock[] = "enable-pointer-lock"; |
| 243 | 251 |
| 244 // Enable the Gamepad API | 252 // Enable the Gamepad API |
| 245 const char kEnableGamepad[] = "enable-gamepad"; | 253 const char kEnableGamepad[] = "enable-gamepad"; |
| 246 | 254 |
| 247 // Force logging to be enabled. Logging is disabled by default in release | 255 // Force logging to be enabled. Logging is disabled by default in release |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 const char kRendererCheckFalseTest[] = "renderer-check-false-test"; | 623 const char kRendererCheckFalseTest[] = "renderer-check-false-test"; |
| 616 #endif | 624 #endif |
| 617 | 625 |
| 618 // Enable per-tile page painting. | 626 // Enable per-tile page painting. |
| 619 const char kEnablePerTilePainting[] = "enable-per-tile-painting"; | 627 const char kEnablePerTilePainting[] = "enable-per-tile-painting"; |
| 620 | 628 |
| 621 // Disables the use of a 3D software rasterizer. | 629 // Disables the use of a 3D software rasterizer. |
| 622 const char kDisableSoftwareRasterizer[] = "disable-software-rasterizer"; | 630 const char kDisableSoftwareRasterizer[] = "disable-software-rasterizer"; |
| 623 | 631 |
| 624 } // namespace switches | 632 } // namespace switches |
| OLD | NEW |