summaryrefslogtreecommitdiffstats
path: root/ui/base
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base')
-rw-r--r--ui/base/ui_base_switches.cc18
-rw-r--r--ui/base/ui_base_switches.h1
2 files changed, 12 insertions, 7 deletions
diff --git a/ui/base/ui_base_switches.cc b/ui/base/ui_base_switches.cc
index 67ef448..773c441 100644
--- a/ui/base/ui_base_switches.cc
+++ b/ui/base/ui_base_switches.cc
@@ -8,28 +8,32 @@ namespace switches {
// The default device scale factor to apply to the browser UI and
// the contents in the absence of a viewport meta tag.
-const char kDefaultDeviceScaleFactor[] = "default-device-scale-factor";
+const char kDefaultDeviceScaleFactor[] = "default-device-scale-factor";
// Enable touch screen calibration.
-const char kDisableTouchCalibration[] = "disable-touch-calibration";
+const char kDisableTouchCalibration[] = "disable-touch-calibration";
+
+// Let text glyphs have X-positions that aren't snapped to the pixel grid.
+const char kEnableTextSubpixelPositioning[] =
+ "enable-text-subpixel-positioning";
// Enable support for touch events.
-const char kEnableTouchEvents[] = "enable-touch-events";
+const char kEnableTouchEvents[] = "enable-touch-events";
// The language file that we want to try to open. Of the form
// language[-country] where language is the 2 letter code from ISO-639.
-const char kLang[] = "lang";
+const char kLang[] = "lang";
// Load the locale resources from the given path. When running on Mac/Unix the
// path should point to a locale.pak file.
-const char kLocalePak[] = "locale_pak";
+const char kLocalePak[] = "locale_pak";
// Disable ui::MessageBox. This is useful when running as part of scripts that
// do not have a user interface.
-const char kNoMessageBox[] = "no-message-box";
+const char kNoMessageBox[] = "no-message-box";
// Enables UI changes that make it easier to use with a touchscreen.
-const char kTouchOptimizedUI[] = "touch-optimized-ui";
+const char kTouchOptimizedUI[] = "touch-optimized-ui";
#if defined(OS_MACOSX)
diff --git a/ui/base/ui_base_switches.h b/ui/base/ui_base_switches.h
index 14b4fc7..61f978f 100644
--- a/ui/base/ui_base_switches.h
+++ b/ui/base/ui_base_switches.h
@@ -15,6 +15,7 @@ namespace switches {
UI_EXPORT extern const char kDefaultDeviceScaleFactor[];
UI_EXPORT extern const char kDisableTouchCalibration[];
+UI_EXPORT extern const char kEnableTextSubpixelPositioning[];
UI_EXPORT extern const char kEnableTouchEvents[];
UI_EXPORT extern const char kLang[];
UI_EXPORT extern const char kLocalePak[];