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

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

Issue 10546104: Make IsTriggerableEvent take Event objects and use it to verify whether tap events should trigger. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pass Event to ShouldEnterPushedState. Created 8 years, 6 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/controls/button/button_dropdown.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 46a99eac252609b93105fc8052b4b4ba48f38259..0d30ee49624efc3b5e9e2912653c61059f9843a9 100644
--- a/ui/views/controls/button/custom_button.h
+++ b/ui/views/controls/button/custom_button.h
@@ -110,12 +110,12 @@ class VIEWS_EXPORT CustomButton : public Button,
// Returns true if the event is one that can trigger notifying the listener.
// This implementation returns true if the left mouse button is down.
- virtual bool IsTriggerableEvent(const MouseEvent& event);
+ virtual bool IsTriggerableEvent(const Event& event);
// 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).
- virtual bool ShouldEnterPushedState(const MouseEvent& event);
+ virtual bool ShouldEnterPushedState(const Event& event);
// Overridden from View:
virtual void ViewHierarchyChanged(bool is_add,
« no previous file with comments | « ui/views/controls/button/button_dropdown.cc ('k') | ui/views/controls/button/custom_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698