diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-16 18:17:47 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-16 18:17:47 +0000 |
commit | 80f8b9f5cf620c37e9d1408a114dc90699584d89 (patch) | |
tree | 9e2f5fcacbb18cd86690bc47e0d22ea8f10ac317 /chrome/browser/views/location_bar_view.cc | |
parent | f377cebc8bb25bb9f6708adbfda567a95c296642 (diff) | |
download | chromium_src-80f8b9f5cf620c37e9d1408a114dc90699584d89.zip chromium_src-80f8b9f5cf620c37e9d1408a114dc90699584d89.tar.gz chromium_src-80f8b9f5cf620c37e9d1408a114dc90699584d89.tar.bz2 |
Make View::SetBounds take a const gfx::Rect& instead of a const CRect&
Make View::DidChangeBounds call Layout by default, eliminating this function from most places.
http://crbug.com/2186
Review URL: http://codereview.chromium.org/7429
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3471 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/location_bar_view.cc')
-rw-r--r-- | chrome/browser/views/location_bar_view.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/chrome/browser/views/location_bar_view.cc b/chrome/browser/views/location_bar_view.cc index 51081bd..bd9774c 100644 --- a/chrome/browser/views/location_bar_view.cc +++ b/chrome/browser/views/location_bar_view.cc @@ -213,11 +213,6 @@ gfx::Size LocationBarView::GetPreferredSize() { security_image_view_.GetPreferredSize().width())); } -void LocationBarView::DidChangeBounds(const CRect& previous, - const CRect& current) { - Layout(); -} - void LocationBarView::Layout() { DoLayout(true); } @@ -646,12 +641,6 @@ gfx::Size LocationBarView::SelectedKeywordView::GetMinimumSize() { return partial_label_.GetMinimumSize(); } -void LocationBarView::SelectedKeywordView::DidChangeBounds( - const CRect& previous, - const CRect& current) { - Layout(); -} - void LocationBarView::SelectedKeywordView::Layout() { gfx::Size pref = GetPreferredSize(); bool at_pref = (width() == pref.width()); @@ -804,11 +793,6 @@ void LocationBarView::KeywordHintView::Layout() { } } -void LocationBarView::KeywordHintView::DidChangeBounds(const CRect& previous, - const CRect& current) { - Layout(); -} - // We don't translate accelerators for ALT + numpad digit, they are used for // entering special characters. bool LocationBarView::ShouldLookupAccelerators(const ChromeViews::KeyEvent& e) { |