| 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..a45a90644b1aa02e44f2b483397138adb8fe45e1 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 {
|
|
|
| @@ -21,8 +22,10 @@ class VIEWS_EXPORT MdTextButton : public LabelButton {
|
| const base::string16& text);
|
| static LabelButton* CreateSecondaryUiBlueButton(ButtonListener* listener,
|
| const base::string16& text);
|
| - static MdTextButton* Create(ButtonListener* listener,
|
| - const base::string16& text);
|
| + static MdTextButton* Create(
|
| + ButtonListener* listener,
|
| + const base::string16& text,
|
| + int button_context = style::CONTEXT_DIALOG_BUTTON);
|
|
|
| ~MdTextButton() override;
|
|
|
| @@ -46,16 +49,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();
|
|
|