Chromium Code Reviews| Index: content/browser/web_contents/web_contents_view_aura.cc |
| diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc |
| index 2201cd0505018b1f5bbf0fb9da8d829d38f1f995..bfc08102a46a4e0a19214e34c0df4061dd63a3c1 100644 |
| --- a/content/browser/web_contents/web_contents_view_aura.cc |
| +++ b/content/browser/web_contents/web_contents_view_aura.cc |
| @@ -528,6 +528,8 @@ class WebContentsViewAura::WindowObserver |
| void OnWindowBoundsChanged(aura::Window* window, |
| const gfx::Rect& old_bounds, |
| const gfx::Rect& new_bounds) override { |
| + fprintf(stderr, ">>>OnWindowBoundsChanged new_bounds(%d, %d, %d, %d)\n", |
| + new_bounds.x(), new_bounds.y(), new_bounds.width(), new_bounds.height()); |
|
Fady Samuel
2015/11/24 04:42:38
Revert all of this.
|
| if (window == host_window_ || window == view_->window_.get()) { |
| SendScreenRects(); |
| if (old_bounds.origin() != new_bounds.origin()) { |
| @@ -673,6 +675,7 @@ WebContentsViewAura::~WebContentsViewAura() { |
| } |
| void WebContentsViewAura::SizeChangedCommon(const gfx::Size& size) { |
| + fprintf(stderr, ">>>size: %d, %d\n", size.width(), size.height()); |
| if (web_contents_->GetInterstitialPage()) |
| web_contents_->GetInterstitialPage()->SetSize(size); |
| RenderWidgetHostView* rwhv = |
| @@ -1102,6 +1105,9 @@ gfx::Size WebContentsViewAura::GetMaximumSize() const { |
| void WebContentsViewAura::OnBoundsChanged(const gfx::Rect& old_bounds, |
| const gfx::Rect& new_bounds) { |
| + fprintf(stderr, ">>>>%s new_bounds(%d, %d, %d, %d)\n", |
| + __PRETTY_FUNCTION__, new_bounds.x(), new_bounds.y(), |
| + new_bounds.width(), new_bounds.height()); |
| SizeChangedCommon(new_bounds.size()); |
| if (delegate_) |
| delegate_->SizeChanged(new_bounds.size()); |