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

Unified Diff: ui/base/gestures/gesture_recognizer_impl.cc

Issue 10834269: gestures: Some more event cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge 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/event.cc ('k') | ui/base/gestures/gesture_sequence.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/gestures/gesture_recognizer_impl.cc
diff --git a/ui/base/gestures/gesture_recognizer_impl.cc b/ui/base/gestures/gesture_recognizer_impl.cc
index caa5054d95c0f34ea5980d2464d3775d2fe965a5..f99ba18418874219d3f211f0e0264d2312e64b36 100644
--- a/ui/base/gestures/gesture_recognizer_impl.cc
+++ b/ui/base/gestures/gesture_recognizer_impl.cc
@@ -178,11 +178,9 @@ void GestureRecognizerImpl::TransferEventsTo(GestureConsumer* current_consumer,
if (i->second != new_consumer &&
(i->second != current_consumer || new_consumer == NULL) &&
i->second != gesture_consumer_ignorer_.get()) {
- scoped_ptr<TouchEvent> touch_event(helper_->CreateTouchEvent(
- ui::ET_TOUCH_CANCELLED, gfx::Point(0, 0),
- i->first,
- base::Time::NowFromSystemTime() - base::Time()));
- helper_->DispatchCancelTouchEvent(touch_event.get());
+ TouchEvent touch_event(ui::ET_TOUCH_CANCELLED, gfx::Point(0, 0),
+ i->first, base::Time::NowFromSystemTime() - base::Time());
+ helper_->DispatchCancelTouchEvent(&touch_event);
i->second = gesture_consumer_ignorer_.get();
}
}
« no previous file with comments | « ui/base/event.cc ('k') | ui/base/gestures/gesture_sequence.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698