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

Unified Diff: ui/views/controls/slider.h

Issue 2335513002: Adding ripple effect for clicks on MD slider (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
« ui/views/controls/md_slider.cc ('K') | « ui/views/controls/md_slider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/slider.h
diff --git a/ui/views/controls/slider.h b/ui/views/controls/slider.h
index e90da3a4ab1ae20426f114e9c184a7dbd6d6bef5..451e1913f80976318d37e96981694f89eda1c76c 100644
--- a/ui/views/controls/slider.h
+++ b/ui/views/controls/slider.h
@@ -72,6 +72,10 @@ class VIEWS_EXPORT Slider : public View, public gfx::AnimationDelegate {
virtual void UpdateState(bool control_on) = 0;
protected:
+ bool OnMousePressed(const ui::MouseEvent& event) override;
+ void OnMouseReleased(const ui::MouseEvent& event) override;
+
+ protected:
explicit Slider(SliderListener* listener);
// Returns the current position of the thumb on the slider.
@@ -106,9 +110,7 @@ class VIEWS_EXPORT Slider : public View, public gfx::AnimationDelegate {
// views::View:
const char* GetClassName() const override;
gfx::Size GetPreferredSize() const override;
- bool OnMousePressed(const ui::MouseEvent& event) override;
bool OnMouseDragged(const ui::MouseEvent& event) override;
- void OnMouseReleased(const ui::MouseEvent& event) override;
bool OnKeyPressed(const ui::KeyEvent& event) override;
void GetAccessibleState(ui::AXViewState* state) override;
void OnFocus() override;
« ui/views/controls/md_slider.cc ('K') | « ui/views/controls/md_slider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698