summaryrefslogtreecommitdiffstats
path: root/content/browser/android
diff options
context:
space:
mode:
authormlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-24 16:20:57 +0000
committermlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-24 16:20:57 +0000
commit6ccd6f918acc45142003ea8603f428730cdc49c1 (patch)
tree7de84e0cc4d9482c7b3dd49846c0162726b1fa89 /content/browser/android
parent7bc9042ceee9ae55d05ab74b536d9f2779b513fb (diff)
downloadchromium_src-6ccd6f918acc45142003ea8603f428730cdc49c1.zip
chromium_src-6ccd6f918acc45142003ea8603f428730cdc49c1.tar.gz
chromium_src-6ccd6f918acc45142003ea8603f428730cdc49c1.tar.bz2
Successfuly resolve a screen lock request when the orientation has changed.
The promise returned by screen.lockOrientation() is resolved with the new orientation when the screen orientation changes to follow the locking rules. BUG=162827 Review URL: https://codereview.chromium.org/328303006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279422 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/android')
-rw-r--r--content/browser/android/content_view_core_impl.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index b25a405..c592d7233 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -1555,6 +1555,9 @@ 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());