When Retrier succeeds, record errors it encountered.
[chromium-blink-merge.git] / ui / base / ui_base_switches.cc
blobf4c3b7cbadda25a3b0697e7690394e5c97809a5c
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
3 // found in the LICENSE file.
5 #include "ui/base/ui_base_switches.h"
7 namespace switches {
9 // Disables use of DWM composition for top level windows.
10 const char kDisableDwmComposition[] = "disable-dwm-composition";
12 // Disables the new visual style for application dialogs and controls.
13 const char kDisableNewDialogStyle[] = "disable-new-dialog-style";
15 // Disables touch adjustment.
16 const char kDisableTouchAdjustment[] = "disable-touch-adjustment";
18 // Disables touch event based drag and drop.
19 const char kDisableTouchDragDrop[] = "disable-touch-drag-drop";
21 // Disables controls that support touch base text editing.
22 const char kDisableTouchEditing[] = "disable-touch-editing";
24 // Disables the Views textfield on Windows.
25 const char kDisableViewsTextfield[] = "disable-views-textfield";
27 // Enables support for bezel touch.
28 const char kEnableBezelTouch[] = "enable-bezel-touch";
30 // Enables the new visual style for application dialogs and controls.
31 const char kEnableNewDialogStyle[] = "enable-new-dialog-style";
33 // Enables touch event based drag and drop.
34 const char kEnableTouchDragDrop[] = "enable-touch-drag-drop";
36 // Enables controls that support touch base text editing.
37 const char kEnableTouchEditing[] = "enable-touch-editing";
39 // Enables the Views textfield on Windows.
40 const char kEnableViewsTextfield[] = "enable-views-textfield";
42 // Overrides the device scale factor for the browser UI and the contents.
43 const char kForceDeviceScaleFactor[] = "force-device-scale-factor";
45 // If a resource is requested at a scale factor at which it is not available
46 // or the resource is the incorrect size (based on the size of the 1x resource),
47 // generates the missing resource and applies a red mask to the generated
48 // resource. Resources for which hidpi is not supported because of software
49 // reasons will show up pixelated.
50 const char kHighlightMissingScaledResources[] =
51 "highlight-missing-scaled-resources";
53 // The language file that we want to try to open. Of the form
54 // language[-country] where language is the 2 letter code from ISO-639.
55 const char kLang[] = "lang";
57 // Load the locale resources from the given path. When running on Mac/Unix the
58 // path should point to a locale.pak file.
59 const char kLocalePak[] = "locale_pak";
61 // Disable ui::MessageBox. This is useful when running as part of scripts that
62 // do not have a user interface.
63 const char kNoMessageBox[] = "no-message-box";
65 // Enable support for touch events.
66 const char kTouchEvents[] = "touch-events";
68 // The values the kTouchEvents switch may have, as in --touch-events=disabled.
69 // auto: enabled at startup when an attached touchscreen is present.
70 const char kTouchEventsAuto[] = "auto";
71 // enabled: touch events always enabled.
72 const char kTouchEventsEnabled[] = "enabled";
73 // disabled: touch events are disabled.
74 const char kTouchEventsDisabled[] = "disabled";
76 // Enables UI changes that make it easier to use with a touchscreen.
77 // WARNING: Do not check this flag directly when deciding what UI to draw,
78 // instead you must call ui::GetDisplayLayout
79 const char kTouchOptimizedUI[] = "touch-optimized-ui";
81 // The values the kTouchOptimizedUI switch may have, as in
82 // "--touch-optimized-ui=disabled".
83 // auto: Enabled on monitors which have touchscreen support (default).
84 const char kTouchOptimizedUIAuto[] = "auto";
85 // enabled: always optimized for touch (even if no touch support).
86 const char kTouchOptimizedUIEnabled[] = "enabled";
87 // disabled: never optimized for touch.
88 const char kTouchOptimizedUIDisabled[] = "disabled";
90 #if defined(USE_XI2_MT)
91 // The calibration factors given as "<left>,<right>,<top>,<bottom>".
92 const char kTouchCalibration[] = "touch-calibration";
93 #endif
95 #if defined(OS_MACOSX)
96 // Disables support for Core Animation plugins. This is triggered when
97 // accelerated compositing is disabled. See http://crbug.com/122430 .
98 const char kDisableCoreAnimationPlugins[] =
99 "disable-core-animation-plugins";
100 #endif
102 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX)
103 // Tells chrome to interpret events from these devices as touch events. Only
104 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the
105 // devices can be retrieved from 'xinput list'.
106 const char kTouchDevices[] = "touch-devices";
107 #endif
109 } // namespace switches