Index: Source/platform/PlatformScreen.cpp |
diff --git a/Source/platform/PlatformScreen.cpp b/Source/platform/PlatformScreen.cpp |
index 6b57afce424c4907a4ed0cddce6acb9843831241..e7d50d70db3f269947cb5cd1e1da35d2bdd203e7 100644 |
--- a/Source/platform/PlatformScreen.cpp |
+++ b/Source/platform/PlatformScreen.cpp |
@@ -96,6 +96,14 @@ uint16_t screenOrientationAngle(Widget* widget) |
return hostWindow->screenInfo().orientationAngle; |
} |
+blink::WebScreenOrientationType screenOrientationType(Widget* widget) |
+{ |
+ HostWindow* hostWindow = toHostWindow(widget); |
+ if (!hostWindow) |
+ return blink::WebScreenOrientationUndefined; |
+ return hostWindow->screenInfo().orientationType; |
+} |
+ |
void screenColorProfile(ColorProfile& toProfile) |
{ |
blink::WebVector<char> profile; |