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

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

Issue 1926943002: Introduce new flag to control usage of MD in secondary (not top-chrome) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: improve docs Created 4 years, 7 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
« no previous file with comments | « ui/base/ui_base_switches.cc ('k') | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1fbb00315a4a254de6426a5ba626fe67937dbf87..bc91661325a2f639bc9509ef479588a58831a75b 100644
--- a/ui/views/controls/button/label_button.h
+++ b/ui/views/controls/button/label_button.h
@@ -131,6 +131,10 @@ class VIEWS_EXPORT LabelButton : public CustomButton,
// Resets colors from the NativeTheme, explicitly set colors are unchanged.
virtual void ResetColorsFromNativeTheme();
+ // Changes the visual styling of this button to reflect the state of
+ // |is_default()|.
+ virtual void UpdateStyleForDefaultness();
sky 2016/05/05 15:40:12 defaultness? How about just UpdateStyleForDefault?
Evan Stade 2016/05/05 15:54:07 if I don't put the -ness it seems easier to misint
+
// Updates the image view to contain the appropriate button state image.
void UpdateImage();
« no previous file with comments | « ui/base/ui_base_switches.cc ('k') | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698