#ifndef CHROMEOS_UI_BASE_DISPLAY_UTIL_H_
#define CHROMEOS_UI_BASE_DISPLAY_UTIL_H_
#include "ui/display/display_util.h"
namespace chromeos {
enum class OrientationType {
kAny,
kNatural,
kCurrent,
kPortrait,
kLandscape,
kPortraitPrimary,
kPortraitSecondary,
kLandscapePrimary,
kLandscapeSecondary,
};
COMPONENT_EXPORT(CHROMEOS_UI_BASE)
OrientationType GetDisplayNaturalOrientation(const display::Display& display);
COMPONENT_EXPORT(CHROMEOS_UI_BASE)
OrientationType RotationToOrientation(OrientationType natural,
display::Display::Rotation rotation);
COMPONENT_EXPORT(CHROMEOS_UI_BASE)
display::Display::Rotation OrientationToRotation(OrientationType natural,
OrientationType orientation);
COMPONENT_EXPORT(CHROMEOS_UI_BASE)
bool IsPrimaryOrientation(OrientationType type);
COMPONENT_EXPORT(CHROMEOS_UI_BASE)
bool IsLandscapeOrientation(OrientationType type);
COMPONENT_EXPORT(CHROMEOS_UI_BASE)
bool IsPortraitOrientation(OrientationType type);
COMPONENT_EXPORT(CHROMEOS_UI_BASE)
OrientationType GetDisplayCurrentOrientation(const display::Display& display);
COMPONENT_EXPORT(CHROMEOS_UI_BASE)
bool IsDisplayLayoutPrimary(const display::Display& display);
COMPONENT_EXPORT(CHROMEOS_UI_BASE)
float GetRepresentativeDeviceScaleFactor(
const std::vector<display::Display>& displays);
}
#endif