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

Unified Diff: content/common/input/event_with_latency_info.h

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: Created 4 years, 1 month 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/common/input/event_with_latency_info.h
diff --git a/content/common/input/event_with_latency_info.h b/content/common/input/event_with_latency_info.h
index 021b3bfc8ac9c9bc73f69105188820f28d248983..4ac1d45bebf166e18b06e145fc5196f025186ef0 100644
--- a/content/common/input/event_with_latency_info.h
+++ b/content/common/input/event_with_latency_info.h
@@ -47,12 +47,16 @@ class ScopedWebInputEventWithLatencyInfo {
const blink::WebInputEvent& event() const;
blink::WebInputEvent& event();
+ const std::vector<const blink::WebInputEvent*>& coalescedEvents();
const ui::LatencyInfo latencyInfo() const { return latency_; }
void CoalesceWith(const ScopedWebInputEventWithLatencyInfo& other);
private:
ui::ScopedWebInputEvent event_;
+ std::vector<ui::ScopedWebInputEvent> scopedCoalescedEvents_;
+ std::vector<const blink::WebInputEvent*> coalescedEvents_;
+
mutable ui::LatencyInfo latency_;
};

Powered by Google App Engine
This is Rietveld 408576698