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

Unified Diff: ui/views/controls/button/label_button.h

Issue 1569113002: MacViews: Style BUTTON_STYLE buttons using the "modern" UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: respond to comments, desktop linux Created 4 years, 8 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: ui/views/controls/button/label_button.h
diff --git a/ui/views/controls/button/label_button.h b/ui/views/controls/button/label_button.h
index a8f419c96fabd120b146bfdba16ffe1f945b9794..8e869cfd4e38adc0293bc2bf2e60e1fd777aeed0 100644
--- a/ui/views/controls/button/label_button.h
+++ b/ui/views/controls/button/label_button.h
@@ -146,7 +146,6 @@ class VIEWS_EXPORT LabelButton : public CustomButton,
FRIEND_TEST_ALL_PREFIXES(LabelButtonTest, Image);
FRIEND_TEST_ALL_PREFIXES(LabelButtonTest, LabelAndImage);
FRIEND_TEST_ALL_PREFIXES(LabelButtonTest, FontList);
- FRIEND_TEST_ALL_PREFIXES(LabelButtonTest, ButtonStyleIsDefaultSize);
void SetTextInternal(const base::string16& text);
@@ -167,6 +166,11 @@ class VIEWS_EXPORT LabelButton : public CustomButton,
// as false.
void ResetCachedPreferredSize();
+ // Updates additional state related to focus or default status, rather than
+ // merely the CustomButton::state(). E.g. ensures the label text color is
+ // correct for the current background.
+ void HighlightStateChanged();
+
// The image and label shown in the button.
ImageView* image_;
Label* label_;

Powered by Google App Engine
This is Rietveld 408576698