Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1259)

Unified Diff: Source/platform/PlatformScreen.cpp

Issue 277413002: Make screen.orientation implementation use WebScreenInfo::orientationType (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add FIXME comment Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/PlatformScreen.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/platform/PlatformScreen.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698