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

Unified Diff: ui/aura/gestures/gesture_recognizer_unittest.cc

Issue 268483004: events: Remove stationary touch-event type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « ash/touch/touch_uma.cc ('k') | ui/events/event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/gestures/gesture_recognizer_unittest.cc
diff --git a/ui/aura/gestures/gesture_recognizer_unittest.cc b/ui/aura/gestures/gesture_recognizer_unittest.cc
index 5acc6ba516087fecb163d7e09a4f0a7eb1cc3b38..d1550485058123026dc75a77a9732bded48919c6 100644
--- a/ui/aura/gestures/gesture_recognizer_unittest.cc
+++ b/ui/aura/gestures/gesture_recognizer_unittest.cc
@@ -597,8 +597,9 @@ class TimedEvents {
// An event handler to keep track of events.
class TestEventHandler : public ui::EventHandler {
public:
- TestEventHandler() : touch_released_count_(0), touch_pressed_count_(0),
- touch_moved_count_(0), touch_stationary_count_(0),
+ TestEventHandler() : touch_released_count_(0),
+ touch_pressed_count_(0),
+ touch_moved_count_(0),
touch_cancelled_count_(0) {
}
@@ -615,9 +616,6 @@ class TestEventHandler : public ui::EventHandler {
case ui::ET_TOUCH_MOVED:
touch_moved_count_++;
break;
- case ui::ET_TOUCH_STATIONARY:
- touch_stationary_count_++;
- break;
case ui::ET_TOUCH_CANCELLED:
touch_cancelled_count_++;
break;
@@ -630,21 +628,18 @@ class TestEventHandler : public ui::EventHandler {
touch_released_count_ = 0;
touch_pressed_count_ = 0;
touch_moved_count_ = 0;
- touch_stationary_count_ = 0;
touch_cancelled_count_ = 0;
}
int touch_released_count() const { return touch_released_count_; }
int touch_pressed_count() const { return touch_pressed_count_; }
int touch_moved_count() const { return touch_moved_count_; }
- int touch_stationary_count() const { return touch_stationary_count_; }
int touch_cancelled_count() const { return touch_cancelled_count_; }
private:
int touch_released_count_;
int touch_pressed_count_;
int touch_moved_count_;
- int touch_stationary_count_;
int touch_cancelled_count_;
DISALLOW_COPY_AND_ASSIGN(TestEventHandler);
« no previous file with comments | « ash/touch/touch_uma.cc ('k') | ui/events/event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698