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

Unified Diff: ui/events/blink/event_with_callback.cc

Issue 2552853002: [Compositor event queue] Coalesce gesture scroll&pinch of the same sequence (Closed)
Patch Set: sadrul's comments, fix dependency Created 4 years 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 | « ui/events/blink/event_with_callback.h ('k') | ui/events/blink/input_handler_proxy_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/blink/event_with_callback.cc
diff --git a/ui/events/blink/event_with_callback.cc b/ui/events/blink/event_with_callback.cc
index bcbd862ec5208e8ef3c4b3ad7b7d01c1575c8f9c..e2c90a200c9438da5b17a3f46cc5cf8c4496c9c1 100644
--- a/ui/events/blink/event_with_callback.cc
+++ b/ui/events/blink/event_with_callback.cc
@@ -26,6 +26,20 @@ EventWithCallback::EventWithCallback(
original_events_.emplace_back(std::move(event), callback);
}
+EventWithCallback::EventWithCallback(
+ ScopedWebInputEvent event,
+ const LatencyInfo& latency,
+ base::TimeTicks creation_timestamp,
+ base::TimeTicks last_coalesced_timestamp,
+ std::unique_ptr<OriginalEventList> original_events)
+ : event_(std::move(event)),
+ latency_(latency),
+ creation_timestamp_(creation_timestamp),
+ last_coalesced_timestamp_(last_coalesced_timestamp) {
+ if (original_events)
+ original_events_.splice(original_events_.end(), *original_events);
+}
+
EventWithCallback::~EventWithCallback() {}
bool EventWithCallback::CanCoalesceWith(const EventWithCallback& other) const {
« no previous file with comments | « ui/events/blink/event_with_callback.h ('k') | ui/events/blink/input_handler_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698