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

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

Issue 1144333004: Make WebView work for external displays (over Presentations). Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix another context-use through making WindowAndroid::GetJavaContext public Created 5 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
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 9e70f65118c4b6f12ede2807ccd3ca9ebf4fe158..27d16f974fb4c244085d790cb12fd2803e6af77e 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -1337,6 +1337,10 @@ void ContentViewCoreImpl::SetAccessibilityEnabledInternal(bool enabled) {
}
void ContentViewCoreImpl::SendOrientationChangeEventInternal() {
+ ui::WindowAndroid* windowAndroid = GetWindowAndroid();
+ if (windowAndroid)
+ windowAndroid->UpdateDeviceDisplayInfo();
+
RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid();
if (rwhv)
rwhv->UpdateScreenInfo(GetViewAndroid());

Powered by Google App Engine
This is Rietveld 408576698