[email protected] | 7dfb6960 | 2012-02-17 00:29:01 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 3d2c6fb | 2011-07-06 22:26:45 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
[email protected] | 42ce29d | 2011-01-20 23:19:46 | [diff] [blame] | 4 | |
5 | #include "ui/base/ui_base_switches.h" | ||||
6 | |||||
7 | namespace switches { | ||||
8 | |||||
[email protected] | 8b3b3615 | 2012-05-01 04:55:07 | [diff] [blame] | 9 | // 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] | f463cd4 | 2012-05-09 16:05:15 | [diff] [blame] | 11 | const char kDefaultDeviceScaleFactor[] = "default-device-scale-factor"; |
[email protected] | 9b75ac5 | 2012-05-07 22:44:58 | [diff] [blame] | 12 | |
13 | // Enable touch screen calibration. | ||||
[email protected] | f463cd4 | 2012-05-09 16:05:15 | [diff] [blame] | 14 | const char kDisableTouchCalibration[] = "disable-touch-calibration"; |
15 | |||||
16 | // Let text glyphs have X-positions that aren't snapped to the pixel grid. | ||||
17 | const char kEnableTextSubpixelPositioning[] = | ||||
18 | "enable-text-subpixel-positioning"; | ||||
[email protected] | 8b3b3615 | 2012-05-01 04:55:07 | [diff] [blame] | 19 | |
[email protected] | 8a6aaa7 | 2012-04-20 20:53:58 | [diff] [blame] | 20 | // Enable support for touch events. |
[email protected] | f463cd4 | 2012-05-09 16:05:15 | [diff] [blame] | 21 | const char kEnableTouchEvents[] = "enable-touch-events"; |
[email protected] | 8a6aaa7 | 2012-04-20 20:53:58 | [diff] [blame] | 22 | |
[email protected] | 3455af4e | 2012-03-12 15:35:12 | [diff] [blame] | 23 | // The language file that we want to try to open. Of the form |
[email protected] | 42ce29d | 2011-01-20 23:19:46 | [diff] [blame] | 24 | // language[-country] where language is the 2 letter code from ISO-639. |
[email protected] | f463cd4 | 2012-05-09 16:05:15 | [diff] [blame] | 25 | const char kLang[] = "lang"; |
[email protected] | 42ce29d | 2011-01-20 23:19:46 | [diff] [blame] | 26 | |
[email protected] | 3d2c6fb | 2011-07-06 22:26:45 | [diff] [blame] | 27 | // Load the locale resources from the given path. When running on Mac/Unix the |
28 | // path should point to a locale.pak file. | ||||
[email protected] | f463cd4 | 2012-05-09 16:05:15 | [diff] [blame] | 29 | const char kLocalePak[] = "locale_pak"; |
[email protected] | 3d2c6fb | 2011-07-06 22:26:45 | [diff] [blame] | 30 | |
[email protected] | 3455af4e | 2012-03-12 15:35:12 | [diff] [blame] | 31 | // Disable ui::MessageBox. This is useful when running as part of scripts that |
32 | // do not have a user interface. | ||||
[email protected] | f463cd4 | 2012-05-09 16:05:15 | [diff] [blame] | 33 | const char kNoMessageBox[] = "no-message-box"; |
[email protected] | 3455af4e | 2012-03-12 15:35:12 | [diff] [blame] | 34 | |
[email protected] | 7dfb6960 | 2012-02-17 00:29:01 | [diff] [blame] | 35 | // Enables UI changes that make it easier to use with a touchscreen. |
[email protected] | 347a0c7 | 2012-05-14 20:28:06 | [diff] [blame^] | 36 | // WARNING: Do not check this flag directly when deciding what UI to draw, |
37 | // instead you must call ui::GetDisplayLayout | ||||
38 | const char kTouchOptimizedUI[] = "touch-optimized-ui"; | ||||
[email protected] | 7dfb6960 | 2012-02-17 00:29:01 | [diff] [blame] | 39 | |
[email protected] | 347a0c7 | 2012-05-14 20:28:06 | [diff] [blame^] | 40 | // The values the kTouchOptimizedUI switch may have, as in |
41 | // "--touch-optimized-ui=disabled". | ||||
42 | // auto: Enabled on monitors which have touchscreen support (default). | ||||
43 | const char kTouchOptimizedUIAuto[] = "auto"; | ||||
44 | // enabled: always optimized for touch (even if no touch support). | ||||
45 | const char kTouchOptimizedUIEnabled[] = "enabled"; | ||||
46 | // disabled: never optimized for touch. | ||||
47 | const char kTouchOptimizedUIDisabled[] = "disabled"; | ||||
[email protected] | 9b75ac5 | 2012-05-07 22:44:58 | [diff] [blame] | 48 | |
[email protected] | dc51d1c | 2011-11-30 04:42:21 | [diff] [blame] | 49 | #if defined(OS_MACOSX) |
50 | const char kDisableCompositedCoreAnimationPlugins[] = | ||||
51 | "disable-composited-core-animation-plugins"; | ||||
52 | #endif | ||||
53 | |||||
[email protected] | 42ce29d | 2011-01-20 23:19:46 | [diff] [blame] | 54 | } // namespace switches |