1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_DISPLAY_UTIL_DISPLAY_UTIL_H_
6 #define UI_DISPLAY_UTIL_DISPLAY_UTIL_H_
8 #include "ui/display/util/display_util_export.h"
9 #include "ui/gfx/geometry/size.h"
13 // Returns true if a given size is in the list of bogus sizes in mm that should
15 DISPLAY_UTIL_EXPORT
bool IsDisplaySizeBlackListed(
16 const gfx::Size
& physical_size
);
18 // Returns the desired device scale factor for the display with the given
19 // physical_size and resoultion.
20 DISPLAY_UTIL_EXPORT
float GetScaleFactor(
21 const gfx::Size
& physical_size_in_mm
,
22 const gfx::Size
& screen_size_in_pixels
);
26 #endif // UI_DISPLAY_UTIL_DISPLAY_UTIL_H_