summaryrefslogtreecommitdiffstats
path: root/ui/base/ui_base_switches.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base/ui_base_switches.cc')
-rw-r--r--ui/base/ui_base_switches.cc14
1 files changed, 12 insertions, 2 deletions
diff --git a/ui/base/ui_base_switches.cc b/ui/base/ui_base_switches.cc
index 773c441..93601f4 100644
--- a/ui/base/ui_base_switches.cc
+++ b/ui/base/ui_base_switches.cc
@@ -33,8 +33,18 @@ const char kLocalePak[] = "locale_pak";
const char kNoMessageBox[] = "no-message-box";
// Enables UI changes that make it easier to use with a touchscreen.
-const char kTouchOptimizedUI[] = "touch-optimized-ui";
-
+// WARNING: Do not check this flag directly when deciding what UI to draw,
+// instead you must call ui::GetDisplayLayout
+const char kTouchOptimizedUI[] = "touch-optimized-ui";
+
+// The values the kTouchOptimizedUI switch may have, as in
+// "--touch-optimized-ui=disabled".
+// auto: Enabled on monitors which have touchscreen support (default).
+const char kTouchOptimizedUIAuto[] = "auto";
+// enabled: always optimized for touch (even if no touch support).
+const char kTouchOptimizedUIEnabled[] = "enabled";
+// disabled: never optimized for touch.
+const char kTouchOptimizedUIDisabled[] = "disabled";
#if defined(OS_MACOSX)
const char kDisableCompositedCoreAnimationPlugins[] =