| Index: ui/base/layout.cc
|
| diff --git a/ui/base/layout.cc b/ui/base/layout.cc
|
| index fffa271a18eac5fb272e2b5dc59b5562479ddfd6..9e6be4031874c0ab3fb129ee163db44c26dfe73f 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
|
|
|