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