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

Unified Diff: ui/aura/window_event_dispatcher.cc

Issue 2869823003: [VSync Queue] Plug touch ack to gesture events and flush vsync queue if necessary (Closed)
Patch Set: Use seperate bool for set_non_blocking Created 3 years, 7 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.cc
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc
index dc286d0826545413afb7ddb91314056bf84d439d..ea3e2fdc2b9e3f007ee2751e08050bedccbde851 100644
--- a/ui/aura/window_event_dispatcher.cc
+++ b/ui/aura/window_event_dispatcher.cc
@@ -180,12 +180,15 @@ DispatchDetails WindowEventDispatcher::DispatchMouseExitAtPoint(
return DispatchMouseEnterOrExit(window, event, ui::ET_MOUSE_EXITED);
}
-void WindowEventDispatcher::ProcessedTouchEvent(uint32_t unique_event_id,
- Window* window,
- ui::EventResult result) {
+void WindowEventDispatcher::ProcessedTouchEvent(
+ uint32_t unique_event_id,
+ Window* window,
+ ui::EventResult result,
+ bool is_source_touch_event_set_non_blocking) {
ui::GestureRecognizer::Gestures gestures =
- ui::GestureRecognizer::Get()->AckTouchEvent(unique_event_id, result,
- window);
+ ui::GestureRecognizer::Get()->AckTouchEvent(
+ unique_event_id, result, is_source_touch_event_set_non_blocking,
+ window);
DispatchDetails details = ProcessGestures(window, std::move(gestures));
if (details.dispatcher_destroyed)
return;
@@ -555,7 +558,8 @@ ui::EventDispatchDetails WindowEventDispatcher::PostDispatchEvent(
Window* window = static_cast<Window*>(target);
ui::GestureRecognizer::Gestures gestures =
ui::GestureRecognizer::Get()->AckTouchEvent(
- touchevent.unique_event_id(), event.result(), window);
+ touchevent.unique_event_id(), event.result(),
+ false /* is_source_touch_event_set_non_blocking */, window);
return ProcessGestures(window, std::move(gestures));
}

Powered by Google App Engine
This is Rietveld 408576698