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

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

Issue 2375543003: Add SetProminent() to MdTextButton to create blue buttons. (Closed)
Patch Set: Fix nits. Created 4 years, 3 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/native_theme/native_theme_win.cc ('k') | ui/views/controls/button/md_text_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/md_text_button.h
diff --git a/ui/views/controls/button/md_text_button.h b/ui/views/controls/button/md_text_button.h
index 97aa3c1af745199eb0054a6c47f8c4be7a8c68d3..f62979e33620de4b43c3d8717585f37501c7d39f 100644
--- a/ui/views/controls/button/md_text_button.h
+++ b/ui/views/controls/button/md_text_button.h
@@ -32,8 +32,8 @@ class VIEWS_EXPORT MdTextButton : public LabelButton {
static MdTextButton* Create(ButtonListener* listener,
const base::string16& text);
- // See |is_cta_|.
- void SetCallToAction(bool cta);
+ // See |is_prominent_|.
+ void SetProminent(bool is_prominent);
void set_bg_color_override(SkColor color) { bg_color_override_ = color; }
// LabelButton:
@@ -68,8 +68,8 @@ class VIEWS_EXPORT MdTextButton : public LabelButton {
// |this|.
internal::MdFocusRing* focus_ring_;
- // True if this button uses call-to-action styling.
- bool is_cta_;
+ // True if this button uses prominent styling (blue fill, etc.).
+ bool is_prominent_;
// When set, this provides the background color.
base::Optional<SkColor> bg_color_override_;
« no previous file with comments | « ui/native_theme/native_theme_win.cc ('k') | ui/views/controls/button/md_text_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698