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

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

Issue 2380303004: Move MdFocusRing to be a property of FocusManager. (Closed)
Patch Set: 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 | « no previous file | 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 f62979e33620de4b43c3d8717585f37501c7d39f..4c1dcc26c004202beffdd34b7afdaa1a2d4a516f 100644
--- a/ui/views/controls/button/md_text_button.h
+++ b/ui/views/controls/button/md_text_button.h
@@ -12,10 +12,6 @@
namespace views {
-namespace internal {
-class MdFocusRing;
-} // namespace internal
-
// A button class that implements the Material Design text button spec.
class VIEWS_EXPORT MdTextButton : public LabelButton {
public:
@@ -37,9 +33,6 @@ class VIEWS_EXPORT MdTextButton : public LabelButton {
void set_bg_color_override(SkColor color) { bg_color_override_ = color; }
// LabelButton:
- void Layout() override;
- void OnFocus() override;
- void OnBlur() override;
void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override;
std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight()
@@ -63,11 +56,6 @@ class VIEWS_EXPORT MdTextButton : public LabelButton {
void UpdatePadding();
void UpdateColors();
- // The MD-style focus ring. This is not done via a FocusPainter
- // because it needs to paint to a layer so it can extend beyond the bounds of
- // |this|.
- internal::MdFocusRing* focus_ring_;
-
// True if this button uses prominent styling (blue fill, etc.).
bool is_prominent_;
« no previous file with comments | « no previous file | ui/views/controls/button/md_text_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698