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 // Disable support for bezel touch. | 9 // Disable support for bezel touch. |
10 const char kEnableBezelTouch[] = "enable-bezel-touch"; | 10 const char kEnableBezelTouch[] = "enable-bezel-touch"; |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 // Enable text glyphs to have X-positions that aren't snapped to the pixel grid | 34 // Enable text glyphs to have X-positions that aren't snapped to the pixel grid |
35 // in webkit renderers. | 35 // in webkit renderers. |
36 const char kEnableWebkitTextSubpixelPositioning[] = | 36 const char kEnableWebkitTextSubpixelPositioning[] = |
37 "enable-webkit-text-subpixel-positioning"; | 37 "enable-webkit-text-subpixel-positioning"; |
38 | 38 |
39 // Overrides the device scale factor for the browser UI and the | 39 // Overrides the device scale factor for the browser UI and the |
40 // contents. | 40 // contents. |
41 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; | 41 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; |
42 | 42 |
43 // Generates a 2x version of resources for which no 2x version is available or | 43 // If a resource is requested at a scale factor at which it is not available |
44 // the 2x version is of an incorrect size and applies a red mask to the | 44 // or the resource is the incorrect size (based on the size of the 1x resource), |
| 45 // generates the missing resource and applies a red mask to the generated |
45 // resource. Resources for which hidpi is not supported because of software | 46 // resource. Resources for which hidpi is not supported because of software |
46 // reasons will show up pixelated. | 47 // reasons will show up pixelated. |
47 const char kHighlightMissing2xResources[] = | 48 const char kHighlightMissingScaledResources[] = |
48 "highlight-missing-2x-resources"; | 49 "highlight-missing-scaled-resources"; |
49 | 50 |
50 // The language file that we want to try to open. Of the form | 51 // The language file that we want to try to open. Of the form |
51 // language[-country] where language is the 2 letter code from ISO-639. | 52 // language[-country] where language is the 2 letter code from ISO-639. |
52 const char kLang[] = "lang"; | 53 const char kLang[] = "lang"; |
53 | 54 |
54 // Load the locale resources from the given path. When running on Mac/Unix the | 55 // Load the locale resources from the given path. When running on Mac/Unix the |
55 // path should point to a locale.pak file. | 56 // path should point to a locale.pak file. |
56 const char kLocalePak[] = "locale_pak"; | 57 const char kLocalePak[] = "locale_pak"; |
57 | 58 |
58 // Disables the new appearance for checkboxes and radio buttons. | 59 // Disables the new appearance for checkboxes and radio buttons. |
(...skipping 27 matching lines...) Expand all Loading... |
86 #endif | 87 #endif |
87 | 88 |
88 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) | 89 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) |
89 // Tells chrome to interpret events from these devices as touch events. Only | 90 // 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 // 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'. | 92 // devices can be retrieved from 'xinput list'. |
92 const char kTouchDevices[] = "touch-devices"; | 93 const char kTouchDevices[] = "touch-devices"; |
93 #endif | 94 #endif |
94 | 95 |
95 } // namespace switches | 96 } // namespace switches |
OLD | NEW |