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

Unified Diff: ui/aura/window_event_dispatcher.cc

Issue 718153002: Indicate whether a touch event will cause scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « content/common/input/web_input_event_traits.cc ('k') | ui/events/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_event_dispatcher.cc
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc
index eadda03f6794645960382900eb4dcc4970ebb0a6..452cea8ccfcbc7b6f3669a465f2d99e72206e80f 100644
--- a/ui/aura/window_event_dispatcher.cc
+++ b/ui/aura/window_event_dispatcher.cc
@@ -161,8 +161,8 @@ void WindowEventDispatcher::ProcessedTouchEvent(ui::TouchEvent* event,
ui::EventResult result) {
// TODO(tdresser): Move this to PreDispatchTouchEvent, to enable eager
// gesture detection. See crbug.com/410280.
- if (!ui::GestureRecognizer::Get()
- ->ProcessTouchEventPreDispatch(*event, window)) {
+ if (!ui::GestureRecognizer::Get()->ProcessTouchEventPreDispatch(event,
+ window)) {
return;
}
@@ -510,9 +510,8 @@ ui::EventDispatchDetails WindowEventDispatcher::PostDispatchEvent(
// TODO(tdresser): Move this to PreDispatchTouchEvent, to enable eager
// gesture detection. See crbug.com/410280.
- if (!ui::GestureRecognizer::Get()
- ->ProcessTouchEventPreDispatch(orig_event,
- static_cast<Window*>(target))) {
+ if (!ui::GestureRecognizer::Get()->ProcessTouchEventPreDispatch(
+ &orig_event, static_cast<Window*>(target))) {
return details;
}
« no previous file with comments | « content/common/input/web_input_event_traits.cc ('k') | ui/events/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698