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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 2869823003: [VSync Queue] Plug touch ack to gesture events and flush vsync queue if necessary (Closed)
Patch Set: dtapuska's comment: Use ack to determine blocking vs. 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: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index d86e56623fd9426a5aa35f26291a36e41dfd7833..c1a7e50d6ed40c7dd42b2db2a1b062d31f91122d 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1036,9 +1036,18 @@ void RenderWidgetHostViewAura::ProcessAckedTouchEvent(
// TouchEventQueue. So we don't expect an ACK up here.
DCHECK(touch.event.GetType() != blink::WebInputEvent::kTouchScrollStarted);
- ui::EventResult result = (ack_result == INPUT_EVENT_ACK_STATE_CONSUMED)
- ? ui::ER_HANDLED
- : ui::ER_UNHANDLED;
+ ui::EventResult result;
+ switch (ack_result) {
+ case INPUT_EVENT_ACK_STATE_CONSUMED:
+ result = ui::ER_HANDLED;
+ break;
+ case INPUT_EVENT_ACK_STATE_IGNORED:
dtapuska 2017/05/25 15:40:12 I'm not sure we should map Ignored to ignored_non_
+ result = ui::ER_IGNORED_NON_BLOCKING;
+ break;
+ default:
+ result = ui::ER_UNHANDLED;
+ break;
+ }
blink::WebTouchPoint::State required_state;
switch (touch.event.GetType()) {

Powered by Google App Engine
This is Rietveld 408576698