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

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

Issue 2801583002: Use views::style for buttons, bootstrap ash_typography to do so. (Closed)
Patch Set: placate gn check. new_avatar_button now just avatar_button Created 3 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
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 2ca349a0ffb8022e8e0d564c469a8cec0dba1e99..8d0d6e35b734aa3e8af7e0e65fb8ed009b95fce2 100644
--- a/ui/views/controls/button/md_text_button.h
+++ b/ui/views/controls/button/md_text_button.h
@@ -9,6 +9,7 @@
#include "base/optional.h"
#include "ui/views/controls/button/label_button.h"
+#include "ui/views/style/typography.h"
namespace views {
@@ -22,7 +23,8 @@ class VIEWS_EXPORT MdTextButton : public LabelButton {
static LabelButton* CreateSecondaryUiBlueButton(ButtonListener* listener,
const base::string16& text);
static MdTextButton* Create(ButtonListener* listener,
- const base::string16& text);
+ const base::string16& text,
+ int button_context = style::CONTEXT_BUTTON_MD);
~MdTextButton() override;
@@ -46,16 +48,11 @@ class VIEWS_EXPORT MdTextButton : public LabelButton {
SkColor GetInkDropBaseColor() const override;
void SetEnabledTextColors(SkColor color) override;
void SetText(const base::string16& text) override;
- void AdjustFontSize(int size_delta) override;
void UpdateStyleToIndicateDefaultStatus() override;
void StateChanged(ButtonState old_state) override;
- protected:
- // LabelButton:
- void SetFontList(const gfx::FontList& font_list) override;
-
private:
- explicit MdTextButton(ButtonListener* listener);
+ MdTextButton(ButtonListener* listener, int button_context);
void UpdatePadding();
void UpdateColors();

Powered by Google App Engine
This is Rietveld 408576698