blob: 9cd8ad90272dcdde9120b4e105f436576c7f7ad9 [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]1995d80d2012-08-23 02:58:479// Disable 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]831d9ba2012-07-10 22:53:0912// Whether or not ImageSkiaOperations methods can scale one of images
13// if they don't have the same scale factor.
14const char kDisableScalingInImageSkiaOperations[] =
15 "disable-scaling-in-image-skia-operations";
16
[email protected]f6f82832012-09-04 17:12:0417// Let text glyphs have X-positions that aren't snapped to the pixel grid in
18// the browser UI.
19const char kEnableBrowserTextSubpixelPositioning[] =
20 "enable-browser-text-subpixel-positioning";
[email protected]8b3b36152012-05-01 04:55:0721
[email protected]8a6aaa72012-04-20 20:53:5822// Enable support for touch events.
[email protected]f463cd42012-05-09 16:05:1523const char kEnableTouchEvents[] = "enable-touch-events";
[email protected]8a6aaa72012-04-20 20:53:5824
[email protected]fc7a93c2012-06-08 20:25:3925// Enables the Views textfield on Windows.
26const char kEnableViewsTextfield[] = "enable-views-textfield";
27
[email protected]f6f82832012-09-04 17:12:0428// Enable text glyphs to have X-positions that aren't snapped to the pixel grid
29// in webkit renderers.
30const char kEnableWebkitTextSubpixelPositioning[] =
31 "enable-webkit-text-subpixel-positioning";
32
[email protected]4bd20202012-06-14 17:35:0133// Overrides the device scale factor for the browser UI and the
34// contents.
35const char kForceDeviceScaleFactor[] = "force-device-scale-factor";
36
[email protected]a67239d2012-09-19 19:20:1937// If a resource is requested at a scale factor at which it is not available
38// or the resource is the incorrect size (based on the size of the 1x resource),
39// generates the missing resource and applies a red mask to the generated
[email protected]e5c641c2012-06-08 17:24:5140// resource. Resources for which hidpi is not supported because of software
41// reasons will show up pixelated.
[email protected]a67239d2012-09-19 19:20:1942const char kHighlightMissingScaledResources[] =
43 "highlight-missing-scaled-resources";
[email protected]e5c641c2012-06-08 17:24:5144
[email protected]3455af4e2012-03-12 15:35:1245// The language file that we want to try to open. Of the form
[email protected]42ce29d2011-01-20 23:19:4646// language[-country] where language is the 2 letter code from ISO-639.
[email protected]f463cd42012-05-09 16:05:1547const char kLang[] = "lang";
[email protected]42ce29d2011-01-20 23:19:4648
[email protected]3d2c6fb2011-07-06 22:26:4549// Load the locale resources from the given path. When running on Mac/Unix the
50// path should point to a locale.pak file.
[email protected]f463cd42012-05-09 16:05:1551const char kLocalePak[] = "locale_pak";
[email protected]3d2c6fb2011-07-06 22:26:4552
[email protected]ef41b7ee2012-07-24 19:10:4153// Disables the new appearance for checkboxes and radio buttons.
[email protected]bca8f6c2012-10-23 19:23:3654const char kOldCheckboxStyle[] = "old-checkbox-style";
[email protected]bd0cd3bb2012-06-14 03:03:3855
[email protected]3455af4e2012-03-12 15:35:1256// Disable ui::MessageBox. This is useful when running as part of scripts that
57// do not have a user interface.
[email protected]f463cd42012-05-09 16:05:1558const char kNoMessageBox[] = "no-message-box";
[email protected]3455af4e2012-03-12 15:35:1259
[email protected]7dfb69602012-02-17 00:29:0160// Enables UI changes that make it easier to use with a touchscreen.
[email protected]347a0c72012-05-14 20:28:0661// WARNING: Do not check this flag directly when deciding what UI to draw,
62// instead you must call ui::GetDisplayLayout
[email protected]bca8f6c2012-10-23 19:23:3663const char kTouchOptimizedUI[] = "touch-optimized-ui";
[email protected]7dfb69602012-02-17 00:29:0164
[email protected]347a0c72012-05-14 20:28:0665// The values the kTouchOptimizedUI switch may have, as in
66// "--touch-optimized-ui=disabled".
67// auto: Enabled on monitors which have touchscreen support (default).
68const char kTouchOptimizedUIAuto[] = "auto";
69// enabled: always optimized for touch (even if no touch support).
70const char kTouchOptimizedUIEnabled[] = "enabled";
71// disabled: never optimized for touch.
72const char kTouchOptimizedUIDisabled[] = "disabled";
[email protected]9b75ac52012-05-07 22:44:5873
[email protected]bca8f6c2012-10-23 19:23:3674#if defined(USE_XI2_MT)
75// The calibration factors given as "<left>,<right>,<top>,<bottom>".
76const char kTouchCalibration[] = "touch-calibration";
77#endif
78
[email protected]dc51d1c2011-11-30 04:42:2179#if defined(OS_MACOSX)
80const char kDisableCompositedCoreAnimationPlugins[] =
81 "disable-composited-core-animation-plugins";
[email protected]89ac531b2012-06-28 05:35:1682// Disables using core animation in plugins. This is triggered when accelerated
83// compositing is disabled. See http://crbug.com/122430
84const char kDisableCoreAnimationPlugins[] =
85 "disable-core-animation-plugins";
[email protected]dc51d1c2011-11-30 04:42:2186#endif
87
[email protected]bcb93db2012-05-25 20:03:0488#if defined(TOOLKIT_VIEWS) && defined(OS_LINUX)
89// Tells chrome to interpret events from these devices as touch events. Only
90// available with XInput 2 (i.e. X server 1.8 or above). The id's of the
91// devices can be retrieved from 'xinput list'.
92const char kTouchDevices[] = "touch-devices";
93#endif
94
[email protected]42ce29d2011-01-20 23:19:4695} // namespace switches