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"
9 // Disables use of DWM composition for top level windows.
10 const char kDisableDwmComposition
[] = "disable-dwm-composition";
12 // Disables touch adjustment.
13 const char kDisableTouchAdjustment
[] = "disable-touch-adjustment";
15 // Disables the Views textfield on Windows.
16 const char kDisableViewsTextfield
[] = "disable-views-textfield";
18 // Enables support for bezel touch.
19 const char kEnableBezelTouch
[] = "enable-bezel-touch";
21 // Enables the new dialog style wherever it is available.
22 const char kEnableNewDialogStyle
[] = "enable-new-dialog-style";
24 const char kEnableTouchDragDrop
[] = "enable-touch-drag-drop";
26 // Enables controls that support touch base text editing.
27 const char kEnableTouchEditing
[] = "enable-touch-editing";
29 // Enables the Views textfield on Windows.
30 const char kEnableViewsTextfield
[] = "enable-views-textfield";
32 // Overrides the device scale factor for the browser UI and the contents.
33 const char kForceDeviceScaleFactor
[] = "force-device-scale-factor";
35 // If a resource is requested at a scale factor at which it is not available
36 // or the resource is the incorrect size (based on the size of the 1x resource),
37 // generates the missing resource and applies a red mask to the generated
38 // resource. Resources for which hidpi is not supported because of software
39 // reasons will show up pixelated.
40 const char kHighlightMissingScaledResources
[] =
41 "highlight-missing-scaled-resources";
43 // The language file that we want to try to open. Of the form
44 // language[-country] where language is the 2 letter code from ISO-639.
45 const char kLang
[] = "lang";
47 // Load the locale resources from the given path. When running on Mac/Unix the
48 // path should point to a locale.pak file.
49 const char kLocalePak
[] = "locale_pak";
51 // Disable ui::MessageBox. This is useful when running as part of scripts that
52 // do not have a user interface.
53 const char kNoMessageBox
[] = "no-message-box";
55 // Enable support for touch events.
56 const char kTouchEvents
[] = "touch-events";
58 // The values the kTouchEvents switch may have, as in --touch-events=disabled.
59 // auto: enabled at startup when an attached touchscreen is present.
60 const char kTouchEventsAuto
[] = "auto";
61 // enabled: touch events always enabled.
62 const char kTouchEventsEnabled
[] = "enabled";
63 // disabled: touch events are disabled.
64 const char kTouchEventsDisabled
[] = "disabled";
66 // Enables UI changes that make it easier to use with a touchscreen.
67 // WARNING: Do not check this flag directly when deciding what UI to draw,
68 // instead you must call ui::GetDisplayLayout
69 const char kTouchOptimizedUI
[] = "touch-optimized-ui";
71 // The values the kTouchOptimizedUI switch may have, as in
72 // "--touch-optimized-ui=disabled".
73 // auto: Enabled on monitors which have touchscreen support (default).
74 const char kTouchOptimizedUIAuto
[] = "auto";
75 // enabled: always optimized for touch (even if no touch support).
76 const char kTouchOptimizedUIEnabled
[] = "enabled";
77 // disabled: never optimized for touch.
78 const char kTouchOptimizedUIDisabled
[] = "disabled";
80 #if defined(USE_XI2_MT)
81 // The calibration factors given as "<left>,<right>,<top>,<bottom>".
82 const char kTouchCalibration
[] = "touch-calibration";
85 #if defined(OS_MACOSX)
86 // Disables support for Core Animation plugins. This is triggered when
87 // accelerated compositing is disabled. See http://crbug.com/122430 .
88 const char kDisableCoreAnimationPlugins
[] =
89 "disable-core-animation-plugins";
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";
99 } // namespace switches