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

Unified Diff: ui/aura/window_event_dispatcher_unittest.cc

Issue 551373006: Re-enable Eager Gesture Recognition on Aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Whitespace. Created 6 years, 2 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
Index: ui/aura/window_event_dispatcher_unittest.cc
diff --git a/ui/aura/window_event_dispatcher_unittest.cc b/ui/aura/window_event_dispatcher_unittest.cc
index 6822101b4e46b789d1f3a053e9bc52397484114a..599b3701fc1dabeab78f465d1690d94ca15affa9 100644
--- a/ui/aura/window_event_dispatcher_unittest.cc
+++ b/ui/aura/window_event_dispatcher_unittest.cc
@@ -2320,10 +2320,9 @@ class AsyncWindowDelegate : public test::TestWindowDelegate {
}
private:
virtual void OnTouchEvent(ui::TouchEvent* event) override {
- // Convert touch event back to root window coordinates.
- event->ConvertLocationToTarget(window_, window_->GetRootWindow());
- dispatcher_->ProcessedTouchEvent(event, window_, ui::ER_UNHANDLED);
event->StopPropagation();
+ if (dispatcher_->OnForwardingAsyncTouchEvent(event))
+ dispatcher_->ProcessedTouchEvent(event, window_, ui::ER_UNHANDLED);
}
WindowEventDispatcher* dispatcher_;

Powered by Google App Engine
This is Rietveld 408576698