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

Unified Diff: ui/base/gestures/gesture_types.h

Issue 10824158: Pass tap count (1 or 2) with tap gesture events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with trunk Created 8 years, 4 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/base/gestures/gesture_sequence.cc ('k') | ui/base/gestures/gesture_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/gestures/gesture_types.h
diff --git a/ui/base/gestures/gesture_types.h b/ui/base/gestures/gesture_types.h
index 56dad14df12890f0aa970cb0369c9c457f4f71ac..b84faeecb61d45104c6b95bcf3016c582cf52f5b 100644
--- a/ui/base/gestures/gesture_types.h
+++ b/ui/base/gestures/gesture_types.h
@@ -69,12 +69,9 @@ struct UI_EXPORT GestureEventDetails {
return data.swipe.down;
}
- float generic_x() const {
- return data.generic.delta_x;
- }
-
- float generic_y() const {
- return data.generic.delta_y;
+ int tap_count() const {
+ CHECK_EQ(ui::ET_GESTURE_TAP, type_);
+ return data.tap_count;
}
private:
@@ -101,6 +98,8 @@ struct UI_EXPORT GestureEventDetails {
bool down;
} swipe;
+ int tap_count; // TAP repeat count.
+
struct {
float delta_x;
float delta_y;
« no previous file with comments | « ui/base/gestures/gesture_sequence.cc ('k') | ui/base/gestures/gesture_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698