| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1333 const gfx::Display& old_display) { | 1333 const gfx::Display& old_display) { |
| 1334 } | 1334 } |
| 1335 | 1335 |
| 1336 //////////////////////////////////////////////////////////////////////////////// | 1336 //////////////////////////////////////////////////////////////////////////////// |
| 1337 // RenderWidgetHostViewAura, aura::WindowDelegate implementation: | 1337 // RenderWidgetHostViewAura, aura::WindowDelegate implementation: |
| 1338 | 1338 |
| 1339 gfx::Size RenderWidgetHostViewAura::GetMinimumSize() const { | 1339 gfx::Size RenderWidgetHostViewAura::GetMinimumSize() const { |
| 1340 return gfx::Size(); | 1340 return gfx::Size(); |
| 1341 } | 1341 } |
| 1342 | 1342 |
| 1343 gfx::Size RenderWidgetHostViewAura::GetMaximumSize() const { |
| 1344 return gfx::Size(); |
| 1345 } |
| 1346 |
| 1343 void RenderWidgetHostViewAura::OnBoundsChanged(const gfx::Rect& old_bounds, | 1347 void RenderWidgetHostViewAura::OnBoundsChanged(const gfx::Rect& old_bounds, |
| 1344 const gfx::Rect& new_bounds) { | 1348 const gfx::Rect& new_bounds) { |
| 1345 // We care about this only in fullscreen mode, where there is no | 1349 // We care about this only in fullscreen mode, where there is no |
| 1346 // WebContentsViewAura. We are sized via SetSize() or SetBounds() by | 1350 // WebContentsViewAura. We are sized via SetSize() or SetBounds() by |
| 1347 // WebContentsViewAura in other cases. | 1351 // WebContentsViewAura in other cases. |
| 1348 if (is_fullscreen_) | 1352 if (is_fullscreen_) |
| 1349 SetSize(new_bounds.size()); | 1353 SetSize(new_bounds.size()); |
| 1350 } | 1354 } |
| 1351 | 1355 |
| 1352 void RenderWidgetHostViewAura::OnFocus(aura::Window* old_focused_window) { | 1356 void RenderWidgetHostViewAura::OnFocus(aura::Window* old_focused_window) { |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1979 RenderWidgetHost* widget) { | 1983 RenderWidgetHost* widget) { |
| 1980 return new RenderWidgetHostViewAura(widget); | 1984 return new RenderWidgetHostViewAura(widget); |
| 1981 } | 1985 } |
| 1982 | 1986 |
| 1983 // static | 1987 // static |
| 1984 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { | 1988 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { |
| 1985 GetScreenInfoForWindow(results, NULL); | 1989 GetScreenInfoForWindow(results, NULL); |
| 1986 } | 1990 } |
| 1987 | 1991 |
| 1988 } // namespace content | 1992 } // namespace content |
| OLD | NEW |