Commit 29dc9cac authored by mlamouri@chromium.org's avatar mlamouri@chromium.org

Notify RenderWidgetHostView before ScreenOrientationDispatcherHost.

... in order to have the orientation values updated before the promise
gets resolved.

BUG=162827

Review URL: https://codereview.chromium.org/405983004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284457 0039d316-1c4b-4281-b951-d872f2087c98
parent 10d2e340
...@@ -1463,12 +1463,12 @@ void ContentViewCoreImpl::SetAccessibilityEnabledInternal(bool enabled) { ...@@ -1463,12 +1463,12 @@ void ContentViewCoreImpl::SetAccessibilityEnabledInternal(bool enabled) {
} }
void ContentViewCoreImpl::SendOrientationChangeEventInternal() { void ContentViewCoreImpl::SendOrientationChangeEventInternal() {
static_cast<WebContentsImpl*>(web_contents())->
screen_orientation_dispatcher_host()->OnOrientationChange();
RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid();
if (rwhv) if (rwhv)
rwhv->UpdateScreenInfo(GetViewAndroid()); rwhv->UpdateScreenInfo(GetViewAndroid());
static_cast<WebContentsImpl*>(web_contents())->
screen_orientation_dispatcher_host()->OnOrientationChange();
} }
void ContentViewCoreImpl::ExtractSmartClipData(JNIEnv* env, void ContentViewCoreImpl::ExtractSmartClipData(JNIEnv* env,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment