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

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

Issue 2406323002: CustomButton: restrict animation repaints to buttons that actually animate (Closed)
Patch Set: CustomButton: restrict animation repaints to buttons that actually animate 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
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 0ec17642c2cf74e3b17060c219a4fa45e18fcf1a..6633fa4998f6da585ca1865d765af07ad2fc9453 100644
--- a/ui/views/controls/button/md_text_button.h
+++ b/ui/views/controls/button/md_text_button.h
@@ -30,6 +30,9 @@ class VIEWS_EXPORT MdTextButton : public LabelButton {
// See |bg_color_override_|.
void SetBgColorOverride(const base::Optional<SkColor>& color);
+ // View:
+ void OnPaintBackground(gfx::Canvas* canvas) override;
+
// LabelButton:
void OnFocus() override;
void OnBlur() override;

Powered by Google App Engine
This is Rietveld 408576698