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

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: 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
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 kEnableViewportScrollOrderExperiment[] =
493 const char kMainFrameResizesAreOrientationChanges[] = 493 "enable-viewport-scroll-order-experiment";
aelias_OOO_until_Jul13 2015/06/09 04:02:44 I think "invert-viewport-scroll-order" would be cl
bokan 2015/06/09 11:49:04 sgtm, done.
494 "main-frame-resizes-are-orientation-changes";
495 494
496 // Enable the Vtune profiler support. 495 // Enable the Vtune profiler support.
497 const char kEnableVtune[] = "enable-vtune-support"; 496 const char kEnableVtune[] = "enable-vtune-support";
498 497
499 // Enables WebGL extensions not yet approved by the community. 498 // Enables WebGL extensions not yet approved by the community.
500 const char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions"; 499 const char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions";
501 500
502 // Enables WebGL rendering into a scanout buffer for overlay support. 501 // Enables WebGL rendering into a scanout buffer for overlay support.
503 const char kEnableWebGLImageChromium[] = "enable-webgl-image-chromium"; 502 const char kEnableWebGLImageChromium[] = "enable-webgl-image-chromium";
504 503
(...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: 600 // Sets the minimum log level. Valid values are from 0 to 3:
602 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. 601 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3.
603 const char kLoggingLevel[] = "log-level"; 602 const char kLoggingLevel[] = "log-level";
604 603
605 // Enables saving net log events to a file and sets the file name to use. 604 // Enables saving net log events to a file and sets the file name to use.
606 const char kLogNetLog[] = "log-net-log"; 605 const char kLogNetLog[] = "log-net-log";
607 606
608 // Make plugin processes log their sent and received messages to VLOG(1). 607 // Make plugin processes log their sent and received messages to VLOG(1).
609 const char kLogPluginMessages[] = "log-plugin-messages"; 608 const char kLogPluginMessages[] = "log-plugin-messages";
610 609
610 // Resizes of the main frame are the caused by changing between landscape
611 // and portrait mode (i.e. Android) so the page should be rescaled to fit
612 const char kMainFrameResizesAreOrientationChanges[] =
613 "main-frame-resizes-are-orientation-changes";
614
611 // Sets the width and height above which a composited layer will get tiled. 615 // Sets the width and height above which a composited layer will get tiled.
612 const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height"; 616 const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height";
613 const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width"; 617 const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width";
614 618
615 // Sample memory usage with high frequency and store the results to the 619 // Sample memory usage with high frequency and store the results to the
616 // Renderer.Memory histogram. Used in memory tests. 620 // Renderer.Memory histogram. Used in memory tests.
617 const char kMemoryMetrics[] = "memory-metrics"; 621 const char kMemoryMetrics[] = "memory-metrics";
618 622
619 // Mutes audio sent to the audio device so it is not audible during 623 // Mutes audio sent to the audio device so it is not audible during
620 // automated testing. 624 // automated testing.
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 // Windows Vista and later. 1019 // Windows Vista and later.
1016 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw"; 1020 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw";
1017 #endif 1021 #endif
1018 1022
1019 // Enables the use of NPAPI plugins. 1023 // Enables the use of NPAPI plugins.
1020 const char kEnableNpapiForTesting[] = "enable-npapi-for-testing"; 1024 const char kEnableNpapiForTesting[] = "enable-npapi-for-testing";
1021 1025
1022 // Don't dump stuff here, follow the same order as the header. 1026 // Don't dump stuff here, follow the same order as the header.
1023 1027
1024 } // namespace switches 1028 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698