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

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

Issue 10964051: events: Clean up dispatching code for touch-events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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/aura/event_filter_unittest.cc ('k') | ui/aura/root_window.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 b64ec7df2874caa8691ce71b463bfb369a44cf6e..788fbf47e06af0f91daffafb35d2744434e3cdad 100644
--- a/ui/aura/gestures/gesture_recognizer_unittest.cc
+++ b/ui/aura/gestures/gesture_recognizer_unittest.cc
@@ -287,11 +287,8 @@ class QueueTouchEventDelegate : public GestureEventConsumeDelegate {
}
virtual ~QueueTouchEventDelegate() {}
- virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE {
- if (!queue_events_)
- return ui::TOUCH_STATUS_UNKNOWN;
- return event->type() == ui::ET_TOUCH_RELEASED ?
- ui::TOUCH_STATUS_QUEUED_END : ui::TOUCH_STATUS_QUEUED;
+ virtual ui::EventResult OnTouchEvent(ui::TouchEvent* event) OVERRIDE {
+ return queue_events_ ? ui::ER_ASYNC : ui::ER_UNHANDLED;
}
void ReceivedAck() {
@@ -2556,9 +2553,9 @@ class ConsumesTouchMovesDelegate : public GestureEventConsumeDelegate {
void set_consume_touch_move(bool consume) { consume_touch_move_ = consume; }
private:
- virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* touch) OVERRIDE {
+ virtual ui::EventResult OnTouchEvent(ui::TouchEvent* touch) OVERRIDE {
if (consume_touch_move_ && touch->type() == ui::ET_TOUCH_MOVED)
- return ui::TOUCH_STATUS_CONTINUE;
+ return ui::ER_HANDLED;
return GestureEventConsumeDelegate::OnTouchEvent(touch);
}
« no previous file with comments | « ui/aura/event_filter_unittest.cc ('k') | ui/aura/root_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698