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

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

Issue 247933002: Call SendScreenRects() when the content has been resized. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rotation_screeninfo
Patch Set: Created 6 years, 8 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 dd82192ead00dca2a25dc481ca05abdf675ccfd6..5b4939ff185bd786324bf68c6725c55bfd20cedb 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -1372,8 +1372,12 @@ jboolean ContentViewCoreImpl::OnAnimate(JNIEnv* env, jobject /* obj */,
void ContentViewCoreImpl::WasResized(JNIEnv* env, jobject obj) {
RenderWidgetHostViewAndroid* view = GetRenderWidgetHostViewAndroid();
- if (view)
+ if (view) {
+ RenderWidgetHostImpl* host = RenderWidgetHostImpl::From(
jdduke (slow) 2014/04/22 19:27:25 I'm probably not the best reviewer for this, but c
+ view->GetRenderWidgetHost());
+ host->SendScreenRects();
view->WasResized();
+ }
}
void ContentViewCoreImpl::ShowInterstitialPage(
« 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