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 44c2e1117971a2b85f7a0379c4ab34e953ac9c16..b6f967103737b04e084424d38090533869dd56de 100644 |
--- a/ui/views/controls/button/custom_button.h |
+++ b/ui/views/controls/button/custom_button.h |
@@ -151,6 +151,12 @@ class VIEWS_EXPORT CustomButton : public Button, public gfx::AnimationDelegate { |
// This implementation returns true if the left mouse button is down. |
virtual bool IsTriggerableEvent(const ui::Event& event); |
+ // Returns true if the ink drop should be updated by CustomButton when |
+ // OnClickCanceled() is called. This method is provided for subclasses. |
+ // If the method is overriden and returns false, the subclass is responsible |
+ // will be responsible for updating the ink drop. |
+ virtual bool ShouldUpdateInkDropOnClickCanceled() const; |
+ |
// Returns true if the button should become pressed when the user |
// holds the mouse down over the button. For this implementation, |
// we simply return IsTriggerableEvent(event). |