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

Unified Diff: chrome/browser/ui/views/location_bar/search_button.cc

Issue 371633002: LabelButton: cache the last computed preferred size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 5 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
Index: chrome/browser/ui/views/location_bar/search_button.cc
diff --git a/chrome/browser/ui/views/location_bar/search_button.cc b/chrome/browser/ui/views/location_bar/search_button.cc
index 0e0fec4cd5157bd577b9494e5817c7323cd7d929..da61a78595b232d692a8ecfab3da58635507e806 100644
--- a/chrome/browser/ui/views/location_bar/search_button.cc
+++ b/chrome/browser/ui/views/location_bar/search_button.cc
@@ -15,7 +15,7 @@ SearchButton::SearchButton(views::ButtonListener* listener)
ui::EF_LEFT_MOUSE_BUTTON | ui::EF_MIDDLE_MOUSE_BUTTON);
SetStyle(views::Button::STYLE_BUTTON);
SetFocusable(false);
- set_min_size(gfx::Size());
+ SetMinSize(gfx::Size());
scoped_ptr<views::LabelButtonBorder> border(
new views::LabelButtonBorder(style()));
border->set_insets(gfx::Insets());
@@ -40,7 +40,7 @@ SearchButton::SearchButton(views::ButtonListener* listener)
border->SetPainter(true, views::Button::STATE_DISABLED, NULL);
SetBorder(border.PassAs<views::Border>());
const int kSearchButtonWidth = 56;
- set_min_size(gfx::Size(kSearchButtonWidth, 0));
+ SetMinSize(gfx::Size(kSearchButtonWidth, 0));
}
SearchButton::~SearchButton() {
« no previous file with comments | « chrome/browser/ui/views/fullscreen_exit_bubble_views.cc ('k') | chrome/browser/ui/views/profiles/new_avatar_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698