Index: ui/views/controls/button/custom_button.h |
diff --git a/ui/views/controls/button/custom_button.h b/ui/views/controls/button/custom_button.h |
index 1ec88a00b73dca1ddfcb144cb5af0ee628af4c40..dfd0384c4340fed7e40af5510a0ab06be78190d3 100644 |
--- a/ui/views/controls/button/custom_button.h |
+++ b/ui/views/controls/button/custom_button.h |
@@ -122,6 +122,9 @@ class VIEWS_EXPORT CustomButton : public Button, public gfx::AnimationDelegate { |
// we simply return IsTriggerableEvent(event). |
virtual bool ShouldEnterPushedState(const ui::Event& event); |
+ // Returns true if hover effect should be visible. |
+ virtual bool ShouldShowInkDropHover() const; |
+ |
void set_has_ink_drop_action_on_click(bool has_ink_drop_action_on_click) { |
has_ink_drop_action_on_click_ = has_ink_drop_action_on_click; |
} |
@@ -151,8 +154,6 @@ class VIEWS_EXPORT CustomButton : public Button, public gfx::AnimationDelegate { |
} |
private: |
- bool ShouldShowInkDropHover() const; |
- |
ButtonState state_; |
gfx::ThrobAnimation hover_animation_; |