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 // Overrides the device scale factor for the browser UI and the contents. | 9 // Overrides the device scale factor for the browser UI and the contents. |
10 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; | 10 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; |
11 | 11 |
| 12 // Enables fixed precision for scale factors, so that different scale factors |
| 13 // which are almost equal (differ by some threshold magnitude of floating point |
| 14 // epsilon) are considered as same. |
| 15 const char kEnableFixedPrecisionScale[] = "enable-fixed-precision-scale"; |
| 16 |
12 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
13 // Disables the DirectWrite font rendering system on windows. | 18 // Disables the DirectWrite font rendering system on windows. |
14 const char kDisableDirectWrite[] = "disable-direct-write"; | 19 const char kDisableDirectWrite[] = "disable-direct-write"; |
15 | 20 |
16 // Disables DirectWrite font rendering for general UI elements. | 21 // Disables DirectWrite font rendering for general UI elements. |
17 const char kDisableDirectWriteForUI[] = "disable-directwrite-for-ui"; | 22 const char kDisableDirectWriteForUI[] = "disable-directwrite-for-ui"; |
18 #endif | 23 #endif |
19 | 24 |
20 #if defined(OS_MACOSX) | 25 #if defined(OS_MACOSX) |
21 // Enables the HarfBuzz port of RenderText on Mac (it's already used only for | 26 // Enables the HarfBuzz port of RenderText on Mac (it's already used only for |
22 // text editing; this enables it for everything else). | 27 // text editing; this enables it for everything else). |
23 const char kEnableHarfBuzzRenderText[] = "enable-harfbuzz-rendertext"; | 28 const char kEnableHarfBuzzRenderText[] = "enable-harfbuzz-rendertext"; |
24 #endif | 29 #endif |
25 | 30 |
26 } // namespace switches | 31 } // namespace switches |
OLD | NEW |