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

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

Issue 2720183002: [Views] Update ink drop for omnibox icons (Closed)
Patch Set: Removed CanProcessEventsWithinSubtree Created 3 years, 7 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 | « ui/views/animation/test/test_ink_drop.cc ('k') | ui/views/controls/button/custom_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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).
« no previous file with comments | « ui/views/animation/test/test_ink_drop.cc ('k') | ui/views/controls/button/custom_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698