Roll WebRTC 5699->5721.
[chromium-blink-merge.git] / ui / base / ui_base_switches.cc
blobb861be990c77e2a5a2dc5d69e36e5c1df55a07a9
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 #if defined(OS_MACOSX) && !defined(OS_IOS)
10 // Disable use of CoreAnimation to draw on the Mac.
11 const char kDisableCoreAnimation[] = "disable-core-animation";
12 #endif
14 // Disables use of DWM composition for top level windows.
15 const char kDisableDwmComposition[] = "disable-dwm-composition";
17 // Disables touch adjustment.
18 const char kDisableTouchAdjustment[] = "disable-touch-adjustment";
20 // Disables touch event based drag and drop.
21 const char kDisableTouchDragDrop[] = "disable-touch-drag-drop";
23 // Disables controls that support touch base text editing.
24 const char kDisableTouchEditing[] = "disable-touch-editing";
26 // Enables touch event based drag and drop.
27 const char kEnableTouchDragDrop[] = "enable-touch-drag-drop";
29 // Enables controls that support touch base text editing.
30 const char kEnableTouchEditing[] = "enable-touch-editing";
32 // If a resource is requested at a scale factor at which it is not available
33 // or the resource is the incorrect size (based on the size of the 1x resource),
34 // generates the missing resource and applies a red mask to the generated
35 // resource. Resources for which hidpi is not supported because of software
36 // reasons will show up pixelated.
37 const char kHighlightMissingScaledResources[] =
38 "highlight-missing-scaled-resources";
40 // The language file that we want to try to open. Of the form
41 // language[-country] where language is the 2 letter code from ISO-639.
42 const char kLang[] = "lang";
44 // Load the locale resources from the given path. When running on Mac/Unix the
45 // path should point to a locale.pak file.
46 const char kLocalePak[] = "locale_pak";
48 // Disable ui::MessageBox. This is useful when running as part of scripts that
49 // do not have a user interface.
50 const char kNoMessageBox[] = "no-message-box";
52 // Enables UI changes that make it easier to use with a touchscreen.
53 // WARNING: Do not check this flag directly when deciding what UI to draw,
54 // instead you must call ui::GetDisplayLayout
55 const char kTouchOptimizedUI[] = "touch-optimized-ui";
57 // The values the kTouchOptimizedUI switch may have, as in
58 // "--touch-optimized-ui=disabled".
59 // auto: Enabled on monitors which have touchscreen support (default).
60 const char kTouchOptimizedUIAuto[] = "auto";
61 // enabled: always optimized for touch (even if no touch support).
62 const char kTouchOptimizedUIEnabled[] = "enabled";
63 // disabled: never optimized for touch.
64 const char kTouchOptimizedUIDisabled[] = "disabled";
66 #if defined(OS_ANDROID)
67 // Uses the tablet specific UI components when available.
68 const char kTabletUI[] = "tablet-ui";
69 #endif
71 #if defined(USE_XI2_MT)
72 // The calibration factors given as "<left>,<right>,<top>,<bottom>".
73 const char kTouchCalibration[] = "touch-calibration";
74 #endif
76 } // namespace switches