| 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 // 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. |
| 27 const char kHighlightMissing2xResources[] = |
| 28 "highlight-missing-2x-resources"; |
| 29 |
| 23 // The language file that we want to try to open. Of the form | 30 // The language file that we want to try to open. Of the form |
| 24 // language[-country] where language is the 2 letter code from ISO-639. | 31 // language[-country] where language is the 2 letter code from ISO-639. |
| 25 const char kLang[] = "lang"; | 32 const char kLang[] = "lang"; |
| 26 | 33 |
| 27 // Loads 2x resources. These resource paks currently contain | 34 // Loads 2x resources. These resource paks currently contain |
| 28 // mix of 1x and 2x and loading them may break the UI on 2x display. | 35 // mix of 1x and 2x and loading them may break the UI on 2x display. |
| 29 const char kLoad2xResources[] = "load-2x-resources"; | 36 const char kLoad2xResources[] = "load-2x-resources"; |
| 30 | 37 |
| 31 // Load the locale resources from the given path. When running on Mac/Unix the | 38 // Load the locale resources from the given path. When running on Mac/Unix the |
| 32 // path should point to a locale.pak file. | 39 // path should point to a locale.pak file. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 56 #endif | 63 #endif |
| 57 | 64 |
| 58 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) | 65 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) |
| 59 // Tells chrome to interpret events from these devices as touch events. Only | 66 // Tells chrome to interpret events from these devices as touch events. Only |
| 60 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the | 67 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the |
| 61 // devices can be retrieved from 'xinput list'. | 68 // devices can be retrieved from 'xinput list'. |
| 62 const char kTouchDevices[] = "touch-devices"; | 69 const char kTouchDevices[] = "touch-devices"; |
| 63 #endif | 70 #endif |
| 64 | 71 |
| 65 } // namespace switches | 72 } // namespace switches |
| OLD | NEW |