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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 11273127: Merge 164146 - Handle OnBoundsChanged for fullscreen RWHV because it dosen't have WebContentsViewAu… (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1271/src/
Patch Set: Created 8 years, 2 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/renderer_host/render_widget_host_view_aura.cc
===================================================================
--- content/browser/renderer_host/render_widget_host_view_aura.cc (revision 165064)
+++ content/browser/renderer_host/render_widget_host_view_aura.cc (working copy)
@@ -1203,8 +1203,11 @@
void RenderWidgetHostViewAura::OnBoundsChanged(const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds) {
- // We don't care about this one, we are always sized via SetSize() or
- // SetBounds().
+ // We care about this only in fullscreen mode, where there is no
+ // WebContentsViewAura. We are sized via SetSize() or SetBounds() by
+ // WebContentsViewAura in other cases.
+ if (is_fullscreen_)
+ SetSize(new_bounds.size());
}
void RenderWidgetHostViewAura::OnFocus(aura::Window* old_focused_window) {
« 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