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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2832093003: Implement screen orientation for out-of-process iframes. (Closed)
Patch Set: add comments Created 3 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
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 919d333fd105979beff2e770c0b3535e76e4ca82..38daa10d170d153fb98c0981c6756f452efcec46 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1845,6 +1845,10 @@ void WebContentsImpl::RenderWidgetWasResized(
if (!rfh || render_widget_host != rfh->GetRenderWidgetHost())
return;
+ ScreenInfo screen_info;
+ GetScreenInfo(&screen_info);
+ SendPageMessage(new PageMsg_UpdateScreenInfo(MSG_ROUTING_NONE, screen_info));
+
for (auto& observer : observers_)
observer.MainFrameWasResized(width_changed);
}
« no previous file with comments | « content/browser/screen_orientation/screen_orientation_browsertest.cc ('k') | content/common/page_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698