Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: content/public/common/content_switches.cc

Issue 7831028: Compute pageScaleFactor on page so that fixed layout page fits width of window. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed common.gypi to have default value for enable_viewport Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698