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

Unified 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: Updated according to discussion with rjkroege 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 side-by-side diff with in-line comments
Download patch
Index: content/public/common/content_switches.cc
diff --git a/content/public/common/content_switches.cc b/content/public/common/content_switches.cc
index 708fdd68225d8b0b30baf66b75b7904894f6884f..ef0e03e34eb660c33fabb0087b7156e993207b80 100644
--- a/content/public/common/content_switches.cc
+++ b/content/public/common/content_switches.cc
@@ -36,6 +36,10 @@ const char kBrowserSubprocessPath[] = "browser-subprocess-path";
// as a dependent process of the Chrome Frame plugin.
const char kChromeFrame[] = "chrome-frame";
+// The default device scale factor to apply to contents in the absense of
rjkroege 2012/02/16 23:35:05 nit: absence
Fady Samuel 2012/02/17 00:05:47 Done.
+// a viewport meta tag.
+const char kDefaultDeviceScaleFactor[] = "default-device-scale-factor";
+
// Disables client-visible 3D APIs, in particular WebGL and Pepper 3D.
// This is controlled by policy and is kept separate from the other
// enable/disable switches to avoid accidentally regressing the policy
@@ -235,6 +239,10 @@ const char kEnableDeviceMotion[] = "enable-device-motion";
// Enables the fastback page cache.
const char kEnableFastback[] = "enable-fastback";
+// By default, a page is laid out to fill the entire width of the window.
+// This flag fixes the layout of the page to a default of 980px.
rjkroege 2012/02/16 23:35:05 these are css pixels.
Fady Samuel 2012/02/17 00:05:47 Done.
+const char kEnableFixedLayout[] = "enable-fixed-layout";
+
// Enable the JavaScript Full Screen API.
const char kDisableFullScreen[] = "disable-fullscreen";

Powered by Google App Engine
This is Rietveld 408576698