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

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

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: Creating CoalescedWebInputEvent 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/web_input_event_queue.h
diff --git a/content/common/input/web_input_event_queue.h b/content/common/input/web_input_event_queue.h
index 59a4d9a9c42241cf02b3f843c97e306fe197e900..23bd6b54181fd27b1fec931ff37804574ab80c72 100644
--- a/content/common/input/web_input_event_queue.h
+++ b/content/common/input/web_input_event_queue.h
@@ -23,7 +23,10 @@ class WebInputEventQueue {
void Queue(std::unique_ptr<T> event) {
for (auto last_event_iter = queue_.rbegin();
last_event_iter != queue_.rend(); ++last_event_iter) {
- if (!(*last_event_iter)->event().isSameEventClass(event->event())) {
+ if (!(*last_event_iter)
+ ->coalescedEvent()
+ .event()
+ .isSameEventClass(event->coalescedEvent().event())) {
continue;
}

Powered by Google App Engine
This is Rietveld 408576698