blob: f8556679a79d808a6dedcd0b646a732b3412ac7d [file] [log] [blame]
Avi Drissman3e1a26c2022-09-15 20:26:031// Copyright 2012 The Chromium Authors
[email protected]3d2c6fb2011-07-06 22:26:452// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
[email protected]42ce29d2011-01-20 23:19:464
5#include "ui/base/ui_base_switches.h"
6
Xiaohan Wang84074092022-01-20 21:25:547#include "build/build_config.h"
8
[email protected]42ce29d2011-01-20 23:19:469namespace switches {
10
Xiaohan Wang84074092022-01-20 21:25:5411#if BUILDFLAG(IS_ANDROID)
Robert Flack9db8fcd2021-07-08 14:15:1612// Disable overscroll edge effects like those found in Android views.
13const char kDisableOverscrollEdgeEffect[] = "disable-overscroll-edge-effect";
14
15// Disable the pull-to-refresh effect when vertically overscrolling content.
16const char kDisablePullToRefreshEffect[] = "disable-pull-to-refresh-effect";
17#endif
18
Xiaohan Wang84074092022-01-20 21:25:5419#if BUILDFLAG(IS_MAC)
Elly Fong-Jones1bfb96c2018-03-21 22:41:5720// Disable animations for showing and hiding modal dialogs.
21const char kDisableModalAnimations[] = "disable-modal-animations";
22
ccameron469fd3d2015-08-21 00:36:5923// Show borders around CALayers corresponding to overlays and partial damage.
24const char kShowMacOverlayBorders[] = "show-mac-overlay-borders";
[email protected]efe4d0a2014-03-04 01:06:3225#endif
26
Eriko Kurimoto9a9177d2022-05-10 01:25:5527#if BUILDFLAG(IS_CHROMEOS)
28// Enable resources file sharing with ash-chrome.
Eriko Kurimoto4363d39e2022-05-11 02:48:4429// This flag is enabled when feature::kLacrosResourcesFileSharing is set and
30// ash-side operation is successfully done.
Eriko Kurimoto656a8dac2022-05-19 05:43:4331const char kEnableResourcesFileSharing[] = "enable-resources-file-sharing";
Eriko Kurimoto9a9177d2022-05-10 01:25:5532#endif
33
Alex Zhange32a2ca32017-08-09 14:50:3034// Disables layer-edge anti-aliasing in the compositor.
35const char kDisableCompositedAntialiasing[] = "disable-composited-antialiasing";
36
[email protected]0a2703fd2013-04-12 16:14:0837// Disables use of DWM composition for top level windows.
38const char kDisableDwmComposition[] = "disable-dwm-composition";
39
[email protected]1400e6dc2013-04-27 02:36:2740// Disables touch event based drag and drop.
41const char kDisableTouchDragDrop[] = "disable-touch-drag-drop";
42
Joel Hockeyba0a45272019-09-30 22:49:5843// Disable re-use of non-exact resources to fulfill ResourcePool requests.
44// Intended only for use in layout or pixel tests to reduce noise.
45const char kDisallowNonExactResourceReuse[] =
46 "disallow-non-exact-resource-reuse";
47
[email protected]1400e6dc2013-04-27 02:36:2748// Enables touch event based drag and drop.
[email protected]2d4817742012-12-17 20:16:1849const char kEnableTouchDragDrop[] = "enable-touch-drag-drop";
[email protected]b9c96ff2012-11-26 22:24:4050
Elly Fong-Jonesf92897392019-01-24 16:05:4951// Forces the caption style for WebVTT captions.
52const char kForceCaptionStyle[] = "force-caption-style";
53
Leonard Greyf1a974d2018-09-21 22:02:5154// Forces dark mode in UI for platforms that support it.
55const char kForceDarkMode[] = "force-dark-mode";
56
Elly Fong-Jones1386bee2017-12-13 19:35:2357// Forces high-contrast mode in native UI drawing, regardless of system
58// settings. Note that this has limited effect on Windows: only Aura colors will
59// be switched to high contrast, not other system colors.
60const char kForceHighContrast[] = "force-high-contrast";
61
[email protected]3455af4e2012-03-12 15:35:1262// The language file that we want to try to open. Of the form
[email protected]42ce29d2011-01-20 23:19:4663// language[-country] where language is the 2 letter code from ISO-639.
[email protected]f463cd42012-05-09 16:05:1564const char kLang[] = "lang";
[email protected]42ce29d2011-01-20 23:19:4665
Joel Hockeyba0a45272019-09-30 22:49:5866// Transform localized strings to be longer, with beginning and end markers to
67// make truncation visually apparent.
68const char kMangleLocalizedStrings[] = "mangle-localized-strings";
Alex Zhange32a2ca32017-08-09 14:50:3069
70// Visualize overdraw by color-coding elements based on if they have other
71// elements drawn underneath. This is good for showing where the UI might be
72// doing more rendering work than necessary. The colors are hinting at the
73// amount of overdraw on your screen for each pixel, as follows:
74//
75// True color: No overdraw.
76// Blue: Overdrawn once.
77// Green: Overdrawn twice.
78// Pink: Overdrawn three times.
79// Red: Overdrawn four or more times.
80const char kShowOverdrawFeedback[] = "show-overdraw-feedback";
81
wutao4abd4152017-08-18 23:14:4282// Re-draw everything multiple times to simulate a much slower machine.
83// Give a slow down factor to cause renderer to take that many times longer to
84// complete, such as --slow-down-compositing-scale-factor=2.
85const char kSlowDownCompositingScaleFactor[] =
86 "slow-down-compositing-scale-factor";
87
Daniele Castagnaac71d892020-07-07 17:30:3788// Tint composited color.
89const char kTintCompositedContent[] = "tint-composited-content";
Daniele Castagna0fead93e2018-01-10 20:40:2990
Joel Hockeyba0a45272019-09-30 22:49:5891// Controls touch-optimized UI layout for top chrome.
92const char kTopChromeTouchUi[] = "top-chrome-touch-ui";
93const char kTopChromeTouchUiAuto[] = "auto";
94const char kTopChromeTouchUiDisabled[] = "disabled";
95const char kTopChromeTouchUiEnabled[] = "enabled";
96
97// Disable partial swap which is needed for some OpenGL drivers / emulators.
98const char kUIDisablePartialSwap[] = "ui-disable-partial-swap";
99
100// Enables the ozone x11 clipboard for linux-chromeos.
101const char kUseSystemClipboard[] = "use-system-clipboard";
102
[email protected]42ce29d2011-01-20 23:19:46103} // namespace switches