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

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

Issue 2621303004: Keep track of coalesced events in main thread event queue (Closed)
Patch Set: Rebase Created 3 years, 11 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: 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 c0e69a2d0a71697b45fc3edcefb24b9db2f28d79..563b887b646c9370f9aba384aa65aeb8a22820a5 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
@@ -308,7 +308,8 @@ void WebFrameWidgetImpl::themeChanged() {
const WebInputEvent* WebFrameWidgetImpl::m_currentInputEvent = nullptr;
WebInputEventResult WebFrameWidgetImpl::handleInputEvent(
- const WebInputEvent& inputEvent) {
+ const WebCoalescedInputEvent& coalescedEvent) {
+ const WebInputEvent& inputEvent = coalescedEvent.event();
TRACE_EVENT1("input", "WebFrameWidgetImpl::handleInputEvent", "type",
WebInputEvent::GetName(inputEvent.type()));
@@ -379,8 +380,8 @@ WebInputEventResult WebFrameWidgetImpl::handleInputEvent(
return WebInputEventResult::HandledSystem;
}
- return PageWidgetDelegate::handleInputEvent(
- *this, WebCoalescedInputEvent(inputEvent), m_localRoot->frame());
+ return PageWidgetDelegate::handleInputEvent(*this, coalescedEvent,
+ m_localRoot->frame());
}
void WebFrameWidgetImpl::setCursorVisibilityState(bool isVisible) {
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetImpl.h ('k') | third_party/WebKit/Source/web/WebPagePopupImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698