blob: eb61a2cb572674d5bc3171cd82c9981f769270ad [file] [log] [blame]
[email protected]7dfb69602012-02-17 00:29:011// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]3d2c6fb2011-07-06 22:26:452// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
[email protected]42ce29d2011-01-20 23:19:464
5#include "ui/base/ui_base_switches.h"
6
7namespace switches {
8
[email protected]e3605f9e2012-10-30 01:11:329// Enable support for bezel touch.
[email protected]c5667b282012-08-31 00:32:5010const char kEnableBezelTouch[] = "enable-bezel-touch";
[email protected]1995d80d2012-08-23 02:58:4711
[email protected]fc7a93c2012-06-08 20:25:3912// Enables the Views textfield on Windows.
13const char kEnableViewsTextfield[] = "enable-views-textfield";
14
[email protected]4bd20202012-06-14 17:35:0115// Overrides the device scale factor for the browser UI and the
16// contents.
17const char kForceDeviceScaleFactor[] = "force-device-scale-factor";
18
[email protected]a67239d2012-09-19 19:20:1919// If a resource is requested at a scale factor at which it is not available
20// or the resource is the incorrect size (based on the size of the 1x resource),
21// generates the missing resource and applies a red mask to the generated
[email protected]e5c641c2012-06-08 17:24:5122// resource. Resources for which hidpi is not supported because of software
23// reasons will show up pixelated.
[email protected]a67239d2012-09-19 19:20:1924const char kHighlightMissingScaledResources[] =
25 "highlight-missing-scaled-resources";
[email protected]e5c641c2012-06-08 17:24:5126
[email protected]3455af4e2012-03-12 15:35:1227// The language file that we want to try to open. Of the form
[email protected]42ce29d2011-01-20 23:19:4628// language[-country] where language is the 2 letter code from ISO-639.
[email protected]f463cd42012-05-09 16:05:1529const char kLang[] = "lang";
[email protected]42ce29d2011-01-20 23:19:4630
[email protected]3d2c6fb2011-07-06 22:26:4531// Load the locale resources from the given path. When running on Mac/Unix the
32// path should point to a locale.pak file.
[email protected]f463cd42012-05-09 16:05:1533const char kLocalePak[] = "locale_pak";
[email protected]3d2c6fb2011-07-06 22:26:4534
[email protected]ef41b7ee2012-07-24 19:10:4135// Disables the new appearance for checkboxes and radio buttons.
[email protected]bca8f6c2012-10-23 19:23:3636const char kOldCheckboxStyle[] = "old-checkbox-style";
[email protected]bd0cd3bb2012-06-14 03:03:3837
[email protected]3455af4e2012-03-12 15:35:1238// Disable ui::MessageBox. This is useful when running as part of scripts that
39// do not have a user interface.
[email protected]f463cd42012-05-09 16:05:1540const char kNoMessageBox[] = "no-message-box";
[email protected]3455af4e2012-03-12 15:35:1241
[email protected]d7932532012-11-21 21:10:3142// Enable support for touch events.
43const char kTouchEvents[] = "touch-events";
44
45// The values the kTouchEvents switch may have, as in --touch-events=disabled.
46// auto: enabled at startup when an attached touchscreen is present.
47const char kTouchEventsAuto[] = "auto";
48// enabled: touch events always enabled.
49const char kTouchEventsEnabled[] = "enabled";
50// disabled: touch events are disabled.
51const char kTouchEventsDisabled[] = "disabled";
52
[email protected]7dfb69602012-02-17 00:29:0153// Enables UI changes that make it easier to use with a touchscreen.
[email protected]347a0c72012-05-14 20:28:0654// WARNING: Do not check this flag directly when deciding what UI to draw,
55// instead you must call ui::GetDisplayLayout
[email protected]bca8f6c2012-10-23 19:23:3656const char kTouchOptimizedUI[] = "touch-optimized-ui";
[email protected]7dfb69602012-02-17 00:29:0157
[email protected]347a0c72012-05-14 20:28:0658// The values the kTouchOptimizedUI switch may have, as in
59// "--touch-optimized-ui=disabled".
60// auto: Enabled on monitors which have touchscreen support (default).
61const char kTouchOptimizedUIAuto[] = "auto";
62// enabled: always optimized for touch (even if no touch support).
63const char kTouchOptimizedUIEnabled[] = "enabled";
64// disabled: never optimized for touch.
65const char kTouchOptimizedUIDisabled[] = "disabled";
[email protected]9b75ac52012-05-07 22:44:5866
[email protected]a673f352012-11-20 00:52:2967// Enables new menu UI.
68const char kEnableNewMenuStyle[] = "enable-new-menu-style";
69
[email protected]bca8f6c2012-10-23 19:23:3670#if defined(USE_XI2_MT)
71// The calibration factors given as "<left>,<right>,<top>,<bottom>".
72const char kTouchCalibration[] = "touch-calibration";
73#endif
74
[email protected]dc51d1c2011-11-30 04:42:2175#if defined(OS_MACOSX)
76const char kDisableCompositedCoreAnimationPlugins[] =
77 "disable-composited-core-animation-plugins";
[email protected]89ac531b2012-06-28 05:35:1678// Disables using core animation in plugins. This is triggered when accelerated
79// compositing is disabled. See http://crbug.com/122430
80const char kDisableCoreAnimationPlugins[] =
81 "disable-core-animation-plugins";
[email protected]dc51d1c2011-11-30 04:42:2182#endif
83
[email protected]bcb93db2012-05-25 20:03:0484#if defined(TOOLKIT_VIEWS) && defined(OS_LINUX)
85// Tells chrome to interpret events from these devices as touch events. Only
86// available with XInput 2 (i.e. X server 1.8 or above). The id's of the
87// devices can be retrieved from 'xinput list'.
88const char kTouchDevices[] = "touch-devices";
89#endif
90
[email protected]42ce29d2011-01-20 23:19:4691} // namespace switches