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

Unified Diff: Source/web/WebLocalFrameImpl.cpp

Issue 366853008: [screen-orientation] Expose orientation info in OrientationInformation interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review comments Created 6 years, 6 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
Index: Source/web/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index 31ade06d839a1800cdfe97b5499330af91b81a3c..16b075b630c14e799b88c10f2738ec3afc640d37 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -1384,7 +1384,7 @@ void WebLocalFrameImpl::resetMatchCount()
void WebLocalFrameImpl::sendOrientationChangeEvent()
{
if (frame())
- frame()->sendOrientationChangeEvent();
+ ScreenOrientationController::from(*frame()).notifyOrientationChanged();
}
void WebLocalFrameImpl::dispatchMessageEventWithOriginCheck(const WebSecurityOrigin& intendedTargetOrigin, const WebDOMEvent& event)

Powered by Google App Engine
This is Rietveld 408576698