summaryrefslogtreecommitdiffstats
path: root/ui/base/layout.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base/layout.cc')
-rw-r--r--ui/base/layout.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/base/layout.cc b/ui/base/layout.cc
index fffa271..9e6be40 100644
--- a/ui/base/layout.cc
+++ b/ui/base/layout.cc
@@ -20,6 +20,7 @@
#endif // defined(OS_WIN)
namespace {
+
// Helper function that determines whether we want to optimize the UI for touch.
bool UseTouchOptimizedUI() {
// If --touch-optimized-ui is specified and not set to "auto", then override
@@ -54,6 +55,9 @@ bool UseTouchOptimizedUI() {
return false;
#endif
}
+
+const float kScaleFactorScales[] = {1.0, 2.0};
+
}
namespace ui {
@@ -75,4 +79,8 @@ DisplayLayout GetDisplayLayout() {
#endif
}
+float GetScaleFactorScale(ScaleFactor scale_factor) {
+ return kScaleFactorScales[scale_factor];
+}
+
} // namespace ui