blob: 012269d1038062fe189eb2e4416fe9c6930faff6 [file] [log] [blame]
James Robinson646469d2014-10-03 15:33:28 -07001// 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.
4
5#ifndef UI_DISPLAY_UTIL_DISPLAY_UTIL_H_
6#define UI_DISPLAY_UTIL_DISPLAY_UTIL_H_
7
8#include "ui/display/util/display_util_export.h"
9#include "ui/gfx/geometry/size.h"
10
11namespace ui {
12
13// Returns true if a given size is in the list of bogus sizes in mm that should
14// be ignored.
15DISPLAY_UTIL_EXPORT bool IsDisplaySizeBlackListed(
16 const gfx::Size& physical_size);
17
18// Returns the desired device scale factor for the display with the given
19// physical_size and resoultion.
20DISPLAY_UTIL_EXPORT float GetScaleFactor(
21 const gfx::Size& physical_size_in_mm,
22 const gfx::Size& screen_size_in_pixels);
23
24} // namespace ui
25
26#endif // UI_DISPLAY_UTIL_DISPLAY_UTIL_H_