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

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

Issue 24312009: Properly forward queued touch events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit test Created 7 years, 3 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/mock_input_ack_handler.h
diff --git a/content/browser/renderer_host/input/mock_input_ack_handler.h b/content/browser/renderer_host/input/mock_input_ack_handler.h
index 604b26b94cb4d242761230904322e930fd1a6040..4a51f9dd105786679331bebb759bb7307839626d 100644
--- a/content/browser/renderer_host/input/mock_input_ack_handler.h
+++ b/content/browser/renderer_host/input/mock_input_ack_handler.h
@@ -35,6 +35,10 @@ class MockInputAckHandler : public InputAckHandler {
}
void set_followup_touch_event(scoped_ptr<GestureEventWithLatencyInfo> event) {
+ gesture_followup_event_ = event.Pass();
+ }
+
+ void set_followup_touch_event(scoped_ptr<TouchEventWithLatencyInfo> event) {
touch_followup_event_ = event.Pass();
}
@@ -69,7 +73,8 @@ class MockInputAckHandler : public InputAckHandler {
TouchEventWithLatencyInfo acked_touch_event_;
WebKit::WebGestureEvent acked_gesture_event_;
- scoped_ptr<GestureEventWithLatencyInfo> touch_followup_event_;
+ scoped_ptr<GestureEventWithLatencyInfo> gesture_followup_event_;
+ scoped_ptr<TouchEventWithLatencyInfo> touch_followup_event_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698