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

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

Issue 1146053009: Added experiment for changing viewport scroll ordering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: aelias review Created 5 years, 6 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
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/public/common/web_preferences.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 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to 9 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to
10 // have an effect. 0 disables MSAA. 10 // have an effect. 0 disables MSAA.
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 481
482 // Enables the use of the @viewport CSS rule, which allows 482 // Enables the use of the @viewport CSS rule, which allows
483 // pages to control aspects of their own layout. This also turns on touch-screen 483 // pages to control aspects of their own layout. This also turns on touch-screen
484 // pinch gestures. 484 // pinch gestures.
485 const char kEnableViewport[] = "enable-viewport"; 485 const char kEnableViewport[] = "enable-viewport";
486 486
487 // Enables the viewport meta tag, the de facto way to control layout which works 487 // Enables the viewport meta tag, the de facto way to control layout which works
488 // only on mobile browsers. 488 // only on mobile browsers.
489 const char kEnableViewportMeta[] = "enable-viewport-meta"; 489 const char kEnableViewportMeta[] = "enable-viewport-meta";
490 490
491 // Resizes of the main frame are the caused by changing between landscape 491 // Enables experiment to scroll the inner viewport first in some situations.
492 // and portrait mode (i.e. Android) so the page should be rescaled to fit 492 const char kInvertViewportScrollOrder[] = "invert-viewport-scroll-order";
493 const char kMainFrameResizesAreOrientationChanges[] =
494 "main-frame-resizes-are-orientation-changes";
495 493
496 // Enable the Vtune profiler support. 494 // Enable the Vtune profiler support.
497 const char kEnableVtune[] = "enable-vtune-support"; 495 const char kEnableVtune[] = "enable-vtune-support";
498 496
499 // Enables WebGL extensions not yet approved by the community. 497 // Enables WebGL extensions not yet approved by the community.
500 const char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions"; 498 const char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions";
501 499
502 // Enables WebGL rendering into a scanout buffer for overlay support. 500 // Enables WebGL rendering into a scanout buffer for overlay support.
503 const char kEnableWebGLImageChromium[] = "enable-webgl-image-chromium"; 501 const char kEnableWebGLImageChromium[] = "enable-webgl-image-chromium";
504 502
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 // Sets the minimum log level. Valid values are from 0 to 3: 599 // Sets the minimum log level. Valid values are from 0 to 3:
602 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. 600 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3.
603 const char kLoggingLevel[] = "log-level"; 601 const char kLoggingLevel[] = "log-level";
604 602
605 // Enables saving net log events to a file and sets the file name to use. 603 // Enables saving net log events to a file and sets the file name to use.
606 const char kLogNetLog[] = "log-net-log"; 604 const char kLogNetLog[] = "log-net-log";
607 605
608 // Make plugin processes log their sent and received messages to VLOG(1). 606 // Make plugin processes log their sent and received messages to VLOG(1).
609 const char kLogPluginMessages[] = "log-plugin-messages"; 607 const char kLogPluginMessages[] = "log-plugin-messages";
610 608
609 // Resizes of the main frame are the caused by changing between landscape
610 // and portrait mode (i.e. Android) so the page should be rescaled to fit
Avi (use Gerrit) 2015/06/09 14:40:26 s/are the caused/are caused/ Complete sentences;
bokan 2015/06/09 15:09:13 Done.
611 const char kMainFrameResizesAreOrientationChanges[] =
612 "main-frame-resizes-are-orientation-changes";
613
611 // Sets the width and height above which a composited layer will get tiled. 614 // Sets the width and height above which a composited layer will get tiled.
612 const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height"; 615 const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height";
613 const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width"; 616 const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width";
614 617
615 // Sample memory usage with high frequency and store the results to the 618 // Sample memory usage with high frequency and store the results to the
616 // Renderer.Memory histogram. Used in memory tests. 619 // Renderer.Memory histogram. Used in memory tests.
617 const char kMemoryMetrics[] = "memory-metrics"; 620 const char kMemoryMetrics[] = "memory-metrics";
618 621
619 // Mutes audio sent to the audio device so it is not audible during 622 // Mutes audio sent to the audio device so it is not audible during
620 // automated testing. 623 // automated testing.
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 // Windows Vista and later. 1018 // Windows Vista and later.
1016 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw"; 1019 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw";
1017 #endif 1020 #endif
1018 1021
1019 // Enables the use of NPAPI plugins. 1022 // Enables the use of NPAPI plugins.
1020 const char kEnableNpapiForTesting[] = "enable-npapi-for-testing"; 1023 const char kEnableNpapiForTesting[] = "enable-npapi-for-testing";
1021 1024
1022 // Don't dump stuff here, follow the same order as the header. 1025 // Don't dump stuff here, follow the same order as the header.
1023 1026
1024 } // namespace switches 1027 } // namespace switches
OLDNEW
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/public/common/web_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698