blob: 7d40de89c2950c913e01353ac51f9be4a08432f4 [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]8b3b36152012-05-01 04:55:079// The default device scale factor to apply to the browser UI and
10// the contents in the absence of a viewport meta tag.
[email protected]f463cd42012-05-09 16:05:1511const char kDefaultDeviceScaleFactor[] = "default-device-scale-factor";
[email protected]9b75ac52012-05-07 22:44:5812
[email protected]f463cd42012-05-09 16:05:1513// Let text glyphs have X-positions that aren't snapped to the pixel grid.
14const char kEnableTextSubpixelPositioning[] =
15 "enable-text-subpixel-positioning";
[email protected]8b3b36152012-05-01 04:55:0716
[email protected]74a02d72012-05-14 21:19:2417// Enable touch screen calibration.
18const char kEnableTouchCalibration[] = "enable-touch-calibration";
19
[email protected]8a6aaa72012-04-20 20:53:5820// Enable support for touch events.
[email protected]f463cd42012-05-09 16:05:1521const char kEnableTouchEvents[] = "enable-touch-events";
[email protected]8a6aaa72012-04-20 20:53:5822
[email protected]e5c641c2012-06-08 17:24:5123// Generates a 2x version of resources for which no 2x version is available or
24// the 2x version is of an incorrect size and applies a red mask to the
25// resource. Resources for which hidpi is not supported because of software
26// reasons will show up pixelated.
27const char kHighlightMissing2xResources[] =
28 "highlight-missing-2x-resources";
29
[email protected]3455af4e2012-03-12 15:35:1230// The language file that we want to try to open. Of the form
[email protected]42ce29d2011-01-20 23:19:4631// language[-country] where language is the 2 letter code from ISO-639.
[email protected]f463cd42012-05-09 16:05:1532const char kLang[] = "lang";
[email protected]42ce29d2011-01-20 23:19:4633
[email protected]0f739b02012-05-25 07:11:2834// Loads 2x resources. These resource paks currently contain
35// mix of 1x and 2x and loading them may break the UI on 2x display.
36const char kLoad2xResources[] = "load-2x-resources";
37
[email protected]3d2c6fb2011-07-06 22:26:4538// Load the locale resources from the given path. When running on Mac/Unix the
39// path should point to a locale.pak file.
[email protected]f463cd42012-05-09 16:05:1540const char kLocalePak[] = "locale_pak";
[email protected]3d2c6fb2011-07-06 22:26:4541
[email protected]3455af4e2012-03-12 15:35:1242// Disable ui::MessageBox. This is useful when running as part of scripts that
43// do not have a user interface.
[email protected]f463cd42012-05-09 16:05:1544const char kNoMessageBox[] = "no-message-box";
[email protected]3455af4e2012-03-12 15:35:1245
[email protected]7dfb69602012-02-17 00:29:0146// Enables UI changes that make it easier to use with a touchscreen.
[email protected]347a0c72012-05-14 20:28:0647// WARNING: Do not check this flag directly when deciding what UI to draw,
48// instead you must call ui::GetDisplayLayout
49const char kTouchOptimizedUI[] = "touch-optimized-ui";
[email protected]7dfb69602012-02-17 00:29:0150
[email protected]347a0c72012-05-14 20:28:0651// The values the kTouchOptimizedUI switch may have, as in
52// "--touch-optimized-ui=disabled".
53// auto: Enabled on monitors which have touchscreen support (default).
54const char kTouchOptimizedUIAuto[] = "auto";
55// enabled: always optimized for touch (even if no touch support).
56const char kTouchOptimizedUIEnabled[] = "enabled";
57// disabled: never optimized for touch.
58const char kTouchOptimizedUIDisabled[] = "disabled";
[email protected]9b75ac52012-05-07 22:44:5859
[email protected]dc51d1c2011-11-30 04:42:2160#if defined(OS_MACOSX)
61const char kDisableCompositedCoreAnimationPlugins[] =
62 "disable-composited-core-animation-plugins";
63#endif
64
[email protected]bcb93db2012-05-25 20:03:0465#if defined(TOOLKIT_VIEWS) && defined(OS_LINUX)
66// Tells chrome to interpret events from these devices as touch events. Only
67// available with XInput 2 (i.e. X server 1.8 or above). The id's of the
68// devices can be retrieved from 'xinput list'.
69const char kTouchDevices[] = "touch-devices";
70#endif
71
[email protected]42ce29d2011-01-20 23:19:4672} // namespace switches