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

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

Issue 2451453002: Make all text buttons on download shelf work well with themes, not just the "show all" button. (Closed)
Patch Set: Created 4 years, 2 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/views/controls/button/md_text_button.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/md_text_button.cc
diff --git a/ui/views/controls/button/md_text_button.cc b/ui/views/controls/button/md_text_button.cc
index 9b3d05986a6469e9d7ec436c6575f13065149d8d..70492dca43288c6ba5f2244b317e7384b6cd162e 100644
--- a/ui/views/controls/button/md_text_button.cc
+++ b/ui/views/controls/button/md_text_button.cc
@@ -78,6 +78,8 @@ MdTextButton* MdTextButton::Create(ButtonListener* listener,
return button;
}
+MdTextButton::~MdTextButton() {}
+
void MdTextButton::SetProminent(bool is_prominent) {
if (is_prominent_ == is_prominent)
return;
@@ -198,8 +200,6 @@ MdTextButton::MdTextButton(ButtonListener* listener)
layer()->SetFillsBoundsOpaquely(false);
}
-MdTextButton::~MdTextButton() {}
-
void MdTextButton::UpdatePadding() {
// Don't use font-based padding when there's no text visible.
if (GetText().empty()) {
« no previous file with comments | « ui/views/controls/button/md_text_button.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698