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

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

Issue 11270022: Handle OnBoundsChanged for fullscreen RWHV because it dosen't have WebContentsViewAura that calls S… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/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
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 6896797ea5ec633f904e12bd1372fc20f29ee11e..3f962641c69b71b30ceb3de80c4e87e8972d87ae 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1277,8 +1277,11 @@ gfx::Size RenderWidgetHostViewAura::GetMinimumSize() const {
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. Wwe are sized via SetSize() or
Ben Goodger (Google) 2012/10/25 17:22:52 We
oshima 2012/10/25 17:28:06 Done.
+ // 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