WebScreenOrientationType screenOrientationType(Widget* widget) { HostWindow* hostWindow = toHostWindow(widget); if (!hostWindow) return WebScreenOrientationUndefined; return hostWindow->screenInfo().orientationType; }
uint16_t screenOrientationAngle(Widget* widget) { HostWindow* hostWindow = toHostWindow(widget); if (!hostWindow) return 0; return hostWindow->screenInfo().orientationAngle; }
FloatRect screenAvailableRect(Widget* widget) { HostWindow* hostWindow = toHostWindow(widget); if (!hostWindow) return FloatRect(); return IntRect(hostWindow->screenInfo().availableRect); }
bool screenIsMonochrome(Widget* widget) { HostWindow* hostWindow = toHostWindow(widget); if (!hostWindow) return false; return hostWindow->screenInfo().isMonochrome; }
int screenDepthPerComponent(Widget* widget) { HostWindow* hostWindow = toHostWindow(widget); if (!hostWindow) return 0; return hostWindow->screenInfo().depthPerComponent; }
int screenDepth(Widget* widget) { HostWindow* hostWindow = toHostWindow(widget); if (!hostWindow) return 0; return hostWindow->screenInfo().depth; }