OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/base/ui_base_switches.h" | 5 #include "ui/base/ui_base_switches.h" |
6 | 6 |
7 namespace switches { | 7 namespace switches { |
8 | 8 |
9 // The default device scale factor to apply to the browser UI and | 9 // The default device scale factor to apply to the browser UI and |
10 // the contents in the absence of a viewport meta tag. | 10 // the contents in the absence of a viewport meta tag. |
11 const char kDefaultDeviceScaleFactor[] = "default-device-scale-factor"; | 11 const char kDefaultDeviceScaleFactor[] = "default-device-scale-factor"; |
12 | 12 |
13 // Let text glyphs have X-positions that aren't snapped to the pixel grid. | 13 // Let text glyphs have X-positions that aren't snapped to the pixel grid. |
14 const char kEnableTextSubpixelPositioning[] = | 14 const char kEnableTextSubpixelPositioning[] = |
15 "enable-text-subpixel-positioning"; | 15 "enable-text-subpixel-positioning"; |
16 | 16 |
17 // Enable touch screen calibration. | 17 // Enable touch screen calibration. |
18 const char kEnableTouchCalibration[] = "enable-touch-calibration"; | 18 const char kEnableTouchCalibration[] = "enable-touch-calibration"; |
19 | 19 |
20 // Enable support for touch events. | 20 // Enable support for touch events. |
21 const char kEnableTouchEvents[] = "enable-touch-events"; | 21 const char kEnableTouchEvents[] = "enable-touch-events"; |
22 | 22 |
| 23 // Enables the Views textfield on Windows. |
| 24 const char kEnableViewsTextfield[] = "enable-views-textfield"; |
| 25 |
23 // Generates a 2x version of resources for which no 2x version is available or | 26 // 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 | 27 // 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 | 28 // resource. Resources for which hidpi is not supported because of software |
26 // reasons will show up pixelated. | 29 // reasons will show up pixelated. |
27 const char kHighlightMissing2xResources[] = | 30 const char kHighlightMissing2xResources[] = |
28 "highlight-missing-2x-resources"; | 31 "highlight-missing-2x-resources"; |
29 | 32 |
30 // The language file that we want to try to open. Of the form | 33 // The language file that we want to try to open. Of the form |
31 // language[-country] where language is the 2 letter code from ISO-639. | 34 // language[-country] where language is the 2 letter code from ISO-639. |
32 const char kLang[] = "lang"; | 35 const char kLang[] = "lang"; |
(...skipping 30 matching lines...) Expand all Loading... |
63 #endif | 66 #endif |
64 | 67 |
65 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) | 68 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) |
66 // Tells chrome to interpret events from these devices as touch events. Only | 69 // 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 | 70 // 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'. | 71 // devices can be retrieved from 'xinput list'. |
69 const char kTouchDevices[] = "touch-devices"; | 72 const char kTouchDevices[] = "touch-devices"; |
70 #endif | 73 #endif |
71 | 74 |
72 } // namespace switches | 75 } // namespace switches |
OLD | NEW |