diff options
Diffstat (limited to 'chrome/browser/views/frame')
-rw-r--r-- | chrome/browser/views/frame/aero_glass_non_client_view.cc | 10 | ||||
-rw-r--r-- | chrome/browser/views/frame/aero_glass_non_client_view.h | 1 | ||||
-rw-r--r-- | chrome/browser/views/frame/browser_view.cc | 5 | ||||
-rw-r--r-- | chrome/browser/views/frame/browser_view.h | 1 | ||||
-rw-r--r-- | chrome/browser/views/frame/browser_view2.cc | 7 | ||||
-rw-r--r-- | chrome/browser/views/frame/browser_view2.h | 1 | ||||
-rw-r--r-- | chrome/browser/views/frame/opaque_non_client_view.cc | 12 | ||||
-rw-r--r-- | chrome/browser/views/frame/opaque_non_client_view.h | 1 |
8 files changed, 6 insertions, 32 deletions
diff --git a/chrome/browser/views/frame/aero_glass_non_client_view.cc b/chrome/browser/views/frame/aero_glass_non_client_view.cc index 5155634..65b9f9d 100644 --- a/chrome/browser/views/frame/aero_glass_non_client_view.cc +++ b/chrome/browser/views/frame/aero_glass_non_client_view.cc @@ -250,11 +250,6 @@ gfx::Size AeroGlassNonClientView::GetPreferredSize() { return prefsize; } -void AeroGlassNonClientView::DidChangeBounds(const CRect& previous, - const CRect& current) { - Layout(); -} - void AeroGlassNonClientView::ViewHierarchyChanged(bool is_add, ChromeViews::View* parent, ChromeViews::View* child) { @@ -413,9 +408,8 @@ void AeroGlassNonClientView::LayoutDistributorLogo() { } void AeroGlassNonClientView::LayoutClientView() { - gfx::Rect client_bounds( - CalculateClientAreaBounds(width(), height())); - frame_->client_view()->SetBounds(client_bounds.ToRECT()); + gfx::Rect client_bounds = CalculateClientAreaBounds(width(), height()); + frame_->client_view()->SetBounds(client_bounds); } // static diff --git a/chrome/browser/views/frame/aero_glass_non_client_view.h b/chrome/browser/views/frame/aero_glass_non_client_view.h index 2412a63..2814918 100644 --- a/chrome/browser/views/frame/aero_glass_non_client_view.h +++ b/chrome/browser/views/frame/aero_glass_non_client_view.h @@ -34,7 +34,6 @@ class AeroGlassNonClientView : public ChromeViews::NonClientView { virtual void Paint(ChromeCanvas* canvas); virtual void Layout(); virtual gfx::Size GetPreferredSize(); - virtual void DidChangeBounds(const CRect& previous, const CRect& current); virtual void ViewHierarchyChanged(bool is_add, ChromeViews::View* parent, ChromeViews::View* child); diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc index 5a8b495..7e8303d 100644 --- a/chrome/browser/views/frame/browser_view.cc +++ b/chrome/browser/views/frame/browser_view.cc @@ -220,11 +220,6 @@ void BrowserView::Layout() { toolbar_->SetBounds(0, 0, width(), height()); } -void BrowserView::DidChangeBounds(const CRect& previous, - const CRect& current) { - Layout(); -} - void BrowserView::ViewHierarchyChanged(bool is_add, ChromeViews::View* parent, ChromeViews::View* child) { diff --git a/chrome/browser/views/frame/browser_view.h b/chrome/browser/views/frame/browser_view.h index 5d48fc7..704d6a7 100644 --- a/chrome/browser/views/frame/browser_view.h +++ b/chrome/browser/views/frame/browser_view.h @@ -79,7 +79,6 @@ class BrowserView : public BrowserWindow, // Overridden from ChromeViews::View: virtual void Layout(); - virtual void DidChangeBounds(const CRect& previous, const CRect& current); virtual void ViewHierarchyChanged(bool is_add, ChromeViews::View* parent, ChromeViews::View* child); diff --git a/chrome/browser/views/frame/browser_view2.cc b/chrome/browser/views/frame/browser_view2.cc index f3f8800..c1e3588 100644 --- a/chrome/browser/views/frame/browser_view2.cc +++ b/chrome/browser/views/frame/browser_view2.cc @@ -782,11 +782,6 @@ void BrowserView2::Layout() { SchedulePaint(); } -void BrowserView2::DidChangeBounds(const CRect& previous, - const CRect& current) { - Layout(); -} - void BrowserView2::ViewHierarchyChanged(bool is_add, ChromeViews::View* parent, ChromeViews::View* child) { @@ -1046,7 +1041,7 @@ bool BrowserView2::UpdateChildViewAndLayout(ChromeViews::View* new_view, } else if (new_view && *old_view) { // The view changed, but the new view wants the same size, give it the // bounds of the last view and have it repaint. - new_view->SetBounds((*old_view)->bounds().ToRECT()); + new_view->SetBounds((*old_view)->bounds()); new_view->SchedulePaint(); } else if (new_view) { DCHECK(new_height == 0); diff --git a/chrome/browser/views/frame/browser_view2.h b/chrome/browser/views/frame/browser_view2.h index 6f1329d..dbe4f5d 100644 --- a/chrome/browser/views/frame/browser_view2.h +++ b/chrome/browser/views/frame/browser_view2.h @@ -221,7 +221,6 @@ class BrowserView2 : public BrowserWindow, protected: // Overridden from ChromeViews::View: virtual void Layout(); - virtual void DidChangeBounds(const CRect& previous, const CRect& current); virtual void ViewHierarchyChanged(bool is_add, ChromeViews::View* parent, ChromeViews::View* child); diff --git a/chrome/browser/views/frame/opaque_non_client_view.cc b/chrome/browser/views/frame/opaque_non_client_view.cc index 72b2215..ac29c56 100644 --- a/chrome/browser/views/frame/opaque_non_client_view.cc +++ b/chrome/browser/views/frame/opaque_non_client_view.cc @@ -651,11 +651,6 @@ ChromeViews::View* OpaqueNonClientView::GetViewForPoint( return View::GetViewForPoint(point, can_create_floating); } -void OpaqueNonClientView::DidChangeBounds(const CRect& previous, - const CRect& current) { - Layout(); -} - void OpaqueNonClientView::ViewHierarchyChanged(bool is_add, ChromeViews::View* parent, ChromeViews::View* child) { @@ -1007,13 +1002,12 @@ void OpaqueNonClientView::LayoutTitleBar() { // Do this last, after the icon has been moved. if (window_icon_) - window_icon_->SetBounds(icon_bounds_.ToRECT()); + window_icon_->SetBounds(icon_bounds_); } void OpaqueNonClientView::LayoutClientView() { - gfx::Rect client_bounds( - CalculateClientAreaBounds(width(), height())); - frame_->client_view()->SetBounds(client_bounds.ToRECT()); + gfx::Rect client_bounds = CalculateClientAreaBounds(width(), height()); + frame_->client_view()->SetBounds(client_bounds); } // static diff --git a/chrome/browser/views/frame/opaque_non_client_view.h b/chrome/browser/views/frame/opaque_non_client_view.h index 5b9bc54..830ba76 100644 --- a/chrome/browser/views/frame/opaque_non_client_view.h +++ b/chrome/browser/views/frame/opaque_non_client_view.h @@ -59,7 +59,6 @@ class OpaqueNonClientView : public ChromeViews::NonClientView, virtual gfx::Size GetPreferredSize(); virtual ChromeViews::View* GetViewForPoint(const gfx::Point& point, bool can_create_floating); - virtual void DidChangeBounds(const CRect& previous, const CRect& current); virtual void ViewHierarchyChanged(bool is_add, ChromeViews::View* parent, ChromeViews::View* child); |