diff options
author | mlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-15 16:01:45 +0000 |
---|---|---|
committer | mlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-15 16:01:45 +0000 |
commit | 67a505915359ef85c416d4edfba3827808bdd9b9 (patch) | |
tree | c37a419f3d8d791297c45feba065b2b859dc9646 /content/browser/android | |
parent | 043181264edd6c7082ba5bcc6b30ac3d777da557 (diff) | |
download | chromium_src-67a505915359ef85c416d4edfba3827808bdd9b9.zip chromium_src-67a505915359ef85c416d4edfba3827808bdd9b9.tar.gz chromium_src-67a505915359ef85c416d4edfba3827808bdd9b9.tar.bz2 |
Properly route screen orientation IPC messages.
The messages will now go trough RF/RFH.
This is in order to make screen orientation lock Frame specific
instead of global to Chromium. The next step is to change the provider
accordingly.
BUG=162827
Review URL: https://codereview.chromium.org/327573002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277321 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/android')
-rw-r--r-- | content/browser/android/content_view_core_impl.cc | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc index 0fdc058..2335d0a 100644 --- a/content/browser/android/content_view_core_impl.cc +++ b/content/browser/android/content_view_core_impl.cc @@ -1542,38 +1542,6 @@ void ContentViewCoreImpl::SendOrientationChangeEventInternal() { RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); if (rwhv) rwhv->UpdateScreenInfo(GetViewAndroid()); - - // TODO(mlamouri): temporary plumbing for Screen Orientation, this will change - // in the future. The OnResize IPC message sent from UpdateScreenInfo() will - // propagate the information. - blink::WebScreenOrientationType orientation = - blink::WebScreenOrientationPortraitPrimary; - - switch (device_orientation_) { - case 0: - orientation = blink::WebScreenOrientationPortraitPrimary; - break; - case 90: - orientation = blink::WebScreenOrientationLandscapePrimary; - break; - case -90: - orientation = blink::WebScreenOrientationLandscapeSecondary; - break; - case 180: - orientation = blink::WebScreenOrientationPortraitSecondary; - break; - default: - NOTREACHED(); - } - - ScreenOrientationDispatcherHost* sodh = - static_cast<RenderProcessHostImpl*>(web_contents_-> - GetRenderProcessHost())->screen_orientation_dispatcher_host(); - - // sodh can be null if the RenderProcessHost is in the process of being - // destroyed or not yet initialized. - if (sodh) - sodh->OnOrientationChange(orientation); } void ContentViewCoreImpl::ExtractSmartClipData(JNIEnv* env, |