Mailbox support for texture layers.
[chromium-blink-merge.git] / ui / base / ui_base_switches.cc
blobe647ac3ab0513aaa42de4735d5de088d469c4f75
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 new menu UI.
10 const char kDisableNewMenuStyle[] = "disable-new-menu-style";
12 // Disable touch adjustment.
13 const char kDisableTouchAdjustment[] = "disable-touch-adjustment";
15 // Enable support for bezel touch.
16 const char kEnableBezelTouch[] = "enable-bezel-touch";
18 // Enables the new dialog style wherever it is available.
19 const char kEnableNewDialogStyle[] = "enable-new-dialog-style";
21 const char kEnableTouchDragDrop[] = "enable-touch-drag-drop";
23 // Enables the Views textfield on Windows.
24 const char kEnableViewsTextfield[] = "enable-views-textfield";
26 // Overrides the device scale factor for the browser UI and the
27 // contents.
28 const char kForceDeviceScaleFactor[] = "force-device-scale-factor";
30 // If a resource is requested at a scale factor at which it is not available
31 // or the resource is the incorrect size (based on the size of the 1x resource),
32 // generates the missing resource and applies a red mask to the generated
33 // resource. Resources for which hidpi is not supported because of software
34 // reasons will show up pixelated.
35 const char kHighlightMissingScaledResources[] =
36 "highlight-missing-scaled-resources";
38 // The language file that we want to try to open. Of the form
39 // language[-country] where language is the 2 letter code from ISO-639.
40 const char kLang[] = "lang";
42 // Load the locale resources from the given path. When running on Mac/Unix the
43 // path should point to a locale.pak file.
44 const char kLocalePak[] = "locale_pak";
46 // Disables the new appearance for checkboxes and radio buttons.
47 const char kOldCheckboxStyle[] = "old-checkbox-style";
49 // Disable ui::MessageBox. This is useful when running as part of scripts that
50 // do not have a user interface.
51 const char kNoMessageBox[] = "no-message-box";
53 // Enable support for touch events.
54 const char kTouchEvents[] = "touch-events";
56 // The values the kTouchEvents switch may have, as in --touch-events=disabled.
57 // auto: enabled at startup when an attached touchscreen is present.
58 const char kTouchEventsAuto[] = "auto";
59 // enabled: touch events always enabled.
60 const char kTouchEventsEnabled[] = "enabled";
61 // disabled: touch events are disabled.
62 const char kTouchEventsDisabled[] = "disabled";
64 // Enables UI changes that make it easier to use with a touchscreen.
65 // WARNING: Do not check this flag directly when deciding what UI to draw,
66 // instead you must call ui::GetDisplayLayout
67 const char kTouchOptimizedUI[] = "touch-optimized-ui";
69 // The values the kTouchOptimizedUI switch may have, as in
70 // "--touch-optimized-ui=disabled".
71 // auto: Enabled on monitors which have touchscreen support (default).
72 const char kTouchOptimizedUIAuto[] = "auto";
73 // enabled: always optimized for touch (even if no touch support).
74 const char kTouchOptimizedUIEnabled[] = "enabled";
75 // disabled: never optimized for touch.
76 const char kTouchOptimizedUIDisabled[] = "disabled";
78 #if defined(USE_XI2_MT)
79 // The calibration factors given as "<left>,<right>,<top>,<bottom>".
80 const char kTouchCalibration[] = "touch-calibration";
81 #endif
83 #if defined(OS_MACOSX)
84 const char kDisableCompositedCoreAnimationPlugins[] =
85 "disable-composited-core-animation-plugins";
86 // Disables using core animation in plugins. This is triggered when accelerated
87 // compositing is disabled. See http://crbug.com/122430
88 const char kDisableCoreAnimationPlugins[] =
89 "disable-core-animation-plugins";
90 #endif
92 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX)
93 // Tells chrome to interpret events from these devices as touch events. Only
94 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the
95 // devices can be retrieved from 'xinput list'.
96 const char kTouchDevices[] = "touch-devices";
97 #endif
99 } // namespace switches