OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/gfx/switches.h" | 5 #include "ui/gfx/switches.h" |
6 | 6 |
7 namespace switches { | 7 namespace switches { |
8 | 8 |
| 9 // When allowed, the ImageSkia looks up the resource pack with the closest |
| 10 // available scale factor instead of the actual device scale factor and then |
| 11 // rescale on ImageSkia side. |
| 12 // In Windows: default is allowed. Specify --disallow-... to prevent this. |
| 13 // Other platforms: default is not allowed. Specify --allow-... to do this. |
| 14 const char kAllowArbitraryScaleFactorInImageSkia[] = |
| 15 "allow-arbitrary-scale-factor-in-image-skia"; |
| 16 |
| 17 const char kDisallowArbitraryScaleFactorInImageSkia[] = |
| 18 "disallow-arbitrary-scale-factor-in-image-skia"; |
| 19 |
9 // Let text glyphs have X-positions that aren't snapped to the pixel grid in | 20 // Let text glyphs have X-positions that aren't snapped to the pixel grid in |
10 // the browser UI. | 21 // the browser UI. |
11 const char kEnableBrowserTextSubpixelPositioning[] = | 22 const char kEnableBrowserTextSubpixelPositioning[] = |
12 "enable-browser-text-subpixel-positioning"; | 23 "enable-browser-text-subpixel-positioning"; |
13 | 24 |
14 // Enable text glyphs to have X-positions that aren't snapped to the pixel grid | 25 // Enable text glyphs to have X-positions that aren't snapped to the pixel grid |
15 // in webkit renderers. | 26 // in webkit renderers. |
16 const char kEnableWebkitTextSubpixelPositioning[] = | 27 const char kEnableWebkitTextSubpixelPositioning[] = |
17 "enable-webkit-text-subpixel-positioning"; | 28 "enable-webkit-text-subpixel-positioning"; |
18 | 29 |
19 // Overrides the device scale factor for the browser UI and the contents. | 30 // Overrides the device scale factor for the browser UI and the contents. |
20 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; | 31 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; |
21 | 32 |
22 // Enables/Disables High DPI support (windows) | 33 // Enables/Disables High DPI support (windows) |
23 const char kHighDPISupport[] = "high-dpi-support"; | 34 const char kHighDPISupport[] = "high-dpi-support"; |
24 | 35 |
25 } // namespace switches | 36 } // namespace switches |
OLD | NEW |