Port Android relocation packer to chromium build
[chromium-blink-merge.git] / ash / display / display_util.h
blob1a032b41a440c53c5e9ac8cc137ce360af369ea4
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 ASH_DISPLAY_DISPLAY_UTIL_H_
6 #define ASH_DISPLAY_DISPLAY_UTIL_H_
8 #include <vector>
10 #include "ash/ash_export.h"
12 namespace ash {
14 struct DisplayMode;
15 class DisplayInfo;
17 // Creates the display mode list for internal display
18 // based on |native_mode|.
19 ASH_EXPORT std::vector<DisplayMode> CreateInternalDisplayModeList(
20 const DisplayMode& native_mode);
22 // Returns next valid UI scale.
23 float GetNextUIScale(const DisplayInfo& info, bool up);
25 // Tests if the |info| has display mode that matches |ui_scale|.
26 bool HasDisplayModeForUIScale(const DisplayInfo& info, float ui_scale);
28 } // namespace ash
30 #endif // ASH_DISPLAY_DISPLAY_UTIL_H_