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

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

Issue 2576013002: Introducing WebCoalescedInputEvent and inclusion in content/common (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 9c99761c650aaa6f37a2e061928317b80a000ceb..a63111c0929c88b375d33b32cf8a9a6314039946 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -2106,7 +2106,8 @@ bool WebViewImpl::hasVerticalScrollbar() {
const WebInputEvent* WebViewImpl::m_currentInputEvent = nullptr;
WebInputEventResult WebViewImpl::handleInputEvent(
- const WebInputEvent& inputEvent) {
+ const WebCoalescedInputEvent& coalescedEvent) {
+ const WebInputEvent& inputEvent = coalescedEvent.event();
// TODO(dcheng): The fact that this is getting called when there is no local
// main frame is problematic and probably indicates a bug in the input event
// routing code.
@@ -2209,7 +2210,7 @@ WebInputEventResult WebViewImpl::handleInputEvent(
// FIXME: This should take in the intended frame, not the local frame root.
WebInputEventResult result = PageWidgetDelegate::handleInputEvent(
- *this, inputEvent, mainFrameImpl()->frame());
+ *this, coalescedEvent, mainFrameImpl()->frame());
if (result != WebInputEventResult::NotHandled)
return result;

Powered by Google App Engine
This is Rietveld 408576698