| 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 | |
| 10 // the contents in the absence of a viewport meta tag. | |
| 11 const char kDefaultDeviceScaleFactor[] = "default-device-scale-factor"; | |
| 12 | |
| 13 // Let text glyphs have X-positions that aren't snapped to the pixel grid. | 9 // Let text glyphs have X-positions that aren't snapped to the pixel grid. |
| 14 const char kEnableTextSubpixelPositioning[] = | 10 const char kEnableTextSubpixelPositioning[] = |
| 15 "enable-text-subpixel-positioning"; | 11 "enable-text-subpixel-positioning"; |
| 16 | 12 |
| 17 // Enable touch screen calibration. | 13 // Enable touch screen calibration. |
| 18 const char kEnableTouchCalibration[] = "enable-touch-calibration"; | 14 const char kEnableTouchCalibration[] = "enable-touch-calibration"; |
| 19 | 15 |
| 20 // Enable support for touch events. | 16 // Enable support for touch events. |
| 21 const char kEnableTouchEvents[] = "enable-touch-events"; | 17 const char kEnableTouchEvents[] = "enable-touch-events"; |
| 22 | 18 |
| 23 // Enables the Views textfield on Windows. | 19 // Enables the Views textfield on Windows. |
| 24 const char kEnableViewsTextfield[] = "enable-views-textfield"; | 20 const char kEnableViewsTextfield[] = "enable-views-textfield"; |
| 25 | 21 |
| 22 // Overrides the device scale factor for the browser UI and the |
| 23 // contents. |
| 24 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; |
| 25 |
| 26 // 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 |
| 27 // 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 |
| 28 // resource. Resources for which hidpi is not supported because of software | 28 // resource. Resources for which hidpi is not supported because of software |
| 29 // reasons will show up pixelated. | 29 // reasons will show up pixelated. |
| 30 const char kHighlightMissing2xResources[] = | 30 const char kHighlightMissing2xResources[] = |
| 31 "highlight-missing-2x-resources"; | 31 "highlight-missing-2x-resources"; |
| 32 | 32 |
| 33 // 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 |
| 34 // 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. |
| 35 const char kLang[] = "lang"; | 35 const char kLang[] = "lang"; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 66 #endif | 66 #endif |
| 67 | 67 |
| 68 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) | 68 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) |
| 69 // 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 |
| 70 // 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 |
| 71 // devices can be retrieved from 'xinput list'. | 71 // devices can be retrieved from 'xinput list'. |
| 72 const char kTouchDevices[] = "touch-devices"; | 72 const char kTouchDevices[] = "touch-devices"; |
| 73 #endif | 73 #endif |
| 74 | 74 |
| 75 } // namespace switches | 75 } // namespace switches |
| OLD | NEW |