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

Unified Diff: content/browser/renderer_host/input/synthetic_gesture_controller.h

Issue 217163006: Defer synthetic gesture completions until events have been flushed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore browser test Created 6 years, 9 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/input/synthetic_gesture_controller.h
diff --git a/content/browser/renderer_host/input/synthetic_gesture_controller.h b/content/browser/renderer_host/input/synthetic_gesture_controller.h
index 8be8538dad7926175aa8160ec689cb0c635d9feb..0a42f316756f4b708a0112faaa2e887e9112cc03 100644
--- a/content/browser/renderer_host/input/synthetic_gesture_controller.h
+++ b/content/browser/renderer_host/input/synthetic_gesture_controller.h
@@ -38,6 +38,10 @@ class CONTENT_EXPORT SyntheticGestureController {
// Forward input events of the currently processed gesture.
void Flush(base::TimeTicks timestamp);
+ // To be called when all events generated from the current gesture have been
+ // fully flushed from the input pipeline (i.e., sent, processed and ack'ed).
+ void OnDidFlushInput();
+
private:
void StartGesture(const SyntheticGesture& gesture);
void StopGesture(const SyntheticGesture& gesture,
@@ -45,6 +49,7 @@ class CONTENT_EXPORT SyntheticGestureController {
SyntheticGesture::Result result);
scoped_ptr<SyntheticGestureTarget> gesture_target_;
+ scoped_ptr<SyntheticGesture::Result> pending_gesture_result_;
// A queue of gesture/callback pairs. Implemented as two queues to
// simplify the ownership of SyntheticGesture pointers.

Powered by Google App Engine
This is Rietveld 408576698