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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 405983004: Notify RenderWidgetHostView before ScreenOrientationDispatcherHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index 08051f5dfb6acc9fca324492f6ea911aef8f6b6f..51262ba38e8f550ebc7dd0be5dfc6d8abc1d7738 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -1463,12 +1463,12 @@ void ContentViewCoreImpl::SetAccessibilityEnabledInternal(bool enabled) {
}
void ContentViewCoreImpl::SendOrientationChangeEventInternal() {
- static_cast<WebContentsImpl*>(web_contents())->
- screen_orientation_dispatcher_host()->OnOrientationChange();
-
RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid();
if (rwhv)
rwhv->UpdateScreenInfo(GetViewAndroid());
+
+ static_cast<WebContentsImpl*>(web_contents())->
+ screen_orientation_dispatcher_host()->OnOrientationChange();
}
void ContentViewCoreImpl::ExtractSmartClipData(JNIEnv* env,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698