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

Unified Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp

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: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
index 185f2888c58a3ce78d13ccf5fbb8c90284c11984..3249e552126edc53e9054dfeb4f240c39a32d21e 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
@@ -322,7 +322,8 @@ void WebFrameWidgetImpl::themeChanged() {
const WebInputEvent* WebFrameWidgetImpl::m_currentInputEvent = nullptr;
WebInputEventResult WebFrameWidgetImpl::handleInputEvent(
- const WebInputEvent& inputEvent) {
+ const CoalescedWebInputEvent& coalescedEvent) {
+ const WebInputEvent& inputEvent = coalescedEvent.event();
TRACE_EVENT1("input", "WebFrameWidgetImpl::handleInputEvent", "type",
WebInputEvent::GetName(inputEvent.type));
@@ -331,7 +332,7 @@ WebInputEventResult WebFrameWidgetImpl::handleInputEvent(
return WebInputEventResult::NotHandled;
if (InspectorOverlay* overlay = inspectorOverlay()) {
- if (overlay->handleInputEvent(inputEvent))
+ if (overlay->handleInputEvent(coalescedEvent))
return WebInputEventResult::HandledSuppressed;
}
@@ -388,7 +389,7 @@ WebInputEventResult WebFrameWidgetImpl::handleInputEvent(
return WebInputEventResult::HandledSystem;
}
- return PageWidgetDelegate::handleInputEvent(*this, inputEvent,
+ return PageWidgetDelegate::handleInputEvent(*this, coalescedEvent,
m_localRoot->frame());
}

Powered by Google App Engine
This is Rietveld 408576698