// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/base/ui_base_switches.h" namespace switches { // Disables new menu UI. const char kDisableNewMenuStyle[] = "disable-new-menu-style"; // Disable touch adjustment. const char kDisableTouchAdjustment[] = "disable-touch-adjustment"; // Enable support for bezel touch. const char kEnableBezelTouch[] = "enable-bezel-touch"; // Enables the new dialog style wherever it is available. const char kEnableNewDialogStyle[] = "enable-new-dialog-style"; const char kEnableTouchDragDrop[] = "enable-touch-drag-drop"; // Enables the Views textfield on Windows. const char kEnableViewsTextfield[] = "enable-views-textfield"; // Overrides the device scale factor for the browser UI and the // contents. const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; // If a resource is requested at a scale factor at which it is not available // or the resource is the incorrect size (based on the size of the 1x resource), // generates the missing resource and applies a red mask to the generated // resource. Resources for which hidpi is not supported because of software // reasons will show up pixelated. const char kHighlightMissingScaledResources[] = "highlight-missing-scaled-resources"; // The language file that we want to try to open. Of the form // language[-country] where language is the 2 letter code from ISO-639. const char kLang[] = "lang"; // Load the locale resources from the given path. When running on Mac/Unix the // path should point to a locale.pak file. const char kLocalePak[] = "locale_pak"; // Disables the new appearance for checkboxes and radio buttons. const char kOldCheckboxStyle[] = "old-checkbox-style"; // Disable ui::MessageBox. This is useful when running as part of scripts that // do not have a user interface. const char kNoMessageBox[] = "no-message-box"; // Enable support for touch events. const char kTouchEvents[] = "touch-events"; // The values the kTouchEvents switch may have, as in --touch-events=disabled. // auto: enabled at startup when an attached touchscreen is present. const char kTouchEventsAuto[] = "auto"; // enabled: touch events always enabled. const char kTouchEventsEnabled[] = "enabled"; // disabled: touch events are disabled. const char kTouchEventsDisabled[] = "disabled"; // Enables UI changes that make it easier to use with a touchscreen. // 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(USE_XI2_MT) // The calibration factors given as ",,,". const char kTouchCalibration[] = "touch-calibration"; #endif #if defined(OS_MACOSX) const char kDisableCompositedCoreAnimationPlugins[] = "disable-composited-core-animation-plugins"; // Disables using core animation in plugins. This is triggered when accelerated // compositing is disabled. See http://crbug.com/122430 const char kDisableCoreAnimationPlugins[] = "disable-core-animation-plugins"; #endif #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) // Tells chrome to interpret events from these devices as touch events. Only // available with XInput 2 (i.e. X server 1.8 or above). The id's of the // devices can be retrieved from 'xinput list'. const char kTouchDevices[] = "touch-devices"; #endif } // namespace switches