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

Side by Side Diff: chrome/common/chrome_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: Minimizes render_view_impl changes and introduces a defaultDeviceScaleFactor argument 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
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 "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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // without having to restart the browser). 215 // without having to restart the browser).
216 const char kDebugDevToolsFrontend[] = "debug-devtools-frontend"; 216 const char kDebugDevToolsFrontend[] = "debug-devtools-frontend";
217 217
218 // Enables a frame context menu item that toggles the frame in and out of glass 218 // Enables a frame context menu item that toggles the frame in and out of glass
219 // mode (Windows Vista and up only). 219 // mode (Windows Vista and up only).
220 const char kDebugEnableFrameToggle[] = "debug-enable-frame-toggle"; 220 const char kDebugEnableFrameToggle[] = "debug-enable-frame-toggle";
221 221
222 // Enables support to debug printing subsystem. 222 // Enables support to debug printing subsystem.
223 const char kDebugPrint[] = "debug-print"; 223 const char kDebugPrint[] = "debug-print";
224 224
225 // The default device scale factor to use when computing a non-standard fixed
226 // width based on the size of the window.
227 const char kDefaultDeviceScaleFactor[] = "default-device-scale-factor";
228
225 // Specifies the URL at which to fetch configuration policy from the device 229 // Specifies the URL at which to fetch configuration policy from the device
226 // management backend. Specifying this switch turns on managed policy from the 230 // management backend. Specifying this switch turns on managed policy from the
227 // device management backend. 231 // device management backend.
228 const char kDeviceManagementUrl[] = "device-management-url"; 232 const char kDeviceManagementUrl[] = "device-management-url";
229 233
230 // Triggers a plethora of diagnostic modes. 234 // Triggers a plethora of diagnostic modes.
231 const char kDiagnostics[] = "diagnostics"; 235 const char kDiagnostics[] = "diagnostics";
232 236
233 // Replaces the audio IPC layer for <audio> and <video> with a mock audio 237 // Replaces the audio IPC layer for <audio> and <video> with a mock audio
234 // device, useful when using remote desktop or machines without sound cards. 238 // device, useful when using remote desktop or machines without sound cards.
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 // Enables the extension activity UI. 470 // Enables the extension activity UI.
467 const char kEnableExtensionActivityUI[] = "enable-extension-activity-ui"; 471 const char kEnableExtensionActivityUI[] = "enable-extension-activity-ui";
468 472
469 // Enables experimental timeline API. 473 // Enables experimental timeline API.
470 const char kEnableExtensionTimelineApi[] = "enable-extension-timeline-api"; 474 const char kEnableExtensionTimelineApi[] = "enable-extension-timeline-api";
471 475
472 // By default, cookies are not allowed on file://. They are needed for testing, 476 // By default, cookies are not allowed on file://. They are needed for testing,
473 // for example page cycler and layout tests. See bug 1157243. 477 // for example page cycler and layout tests. See bug 1157243.
474 const char kEnableFileCookies[] = "enable-file-cookies"; 478 const char kEnableFileCookies[] = "enable-file-cookies";
475 479
480 // By default, a page is laid out to fill the entire width of the window.
481 // This flag fixes the layout of the page to a default of 980px.
482 const char kEnableFixedLayout[] = "enable-fixed-layout";
483
476 // Enable HTTP pipelining. Attempt to pipeline HTTP connections. Heuristics will 484 // Enable HTTP pipelining. Attempt to pipeline HTTP connections. Heuristics will
477 // try to figure out if pipelining can be used for a given host and request. 485 // try to figure out if pipelining can be used for a given host and request.
478 // Without this flag, pipelining will never be used. 486 // Without this flag, pipelining will never be used.
479 const char kEnableHttpPipelining[] = "enable-http-pipelining"; 487 const char kEnableHttpPipelining[] = "enable-http-pipelining";
480 488
481 // Enables the in-browser thumbnailing, which is more efficient than the 489 // Enables the in-browser thumbnailing, which is more efficient than the
482 // in-renderer thumbnailing, as we can use more information to determine if we 490 // in-renderer thumbnailing, as we can use more information to determine if we
483 // need to update thumbnails. 491 // need to update thumbnails.
484 const char kEnableInBrowserThumbnailing[] = "enable-in-browser-thumbnailing"; 492 const char kEnableInBrowserThumbnailing[] = "enable-in-browser-thumbnailing";
485 493
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 1307
1300 // ----------------------------------------------------------------------------- 1308 // -----------------------------------------------------------------------------
1301 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1309 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1302 // 1310 //
1303 // You were going to just dump your switches here, weren't you? Instead, please 1311 // You were going to just dump your switches here, weren't you? Instead, please
1304 // put them in alphabetical order above, or in order inside the appropriate 1312 // put them in alphabetical order above, or in order inside the appropriate
1305 // ifdef at the bottom. The order should match the header. 1313 // ifdef at the bottom. The order should match the header.
1306 // ----------------------------------------------------------------------------- 1314 // -----------------------------------------------------------------------------
1307 1315
1308 } // namespace switches 1316 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698