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

Unified Diff: components/test_runner/event_sender.cc

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
« no previous file with comments | « components/plugins/renderer/webview_plugin.cc ('k') | components/test_runner/text_input_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/event_sender.cc
diff --git a/components/test_runner/event_sender.cc b/components/test_runner/event_sender.cc
index 366f20aa2a3a260449e5cae4af856bf576e0d9d1..7f38826f9b52e91b910257135d2fa7d2086bdb54 100644
--- a/components/test_runner/event_sender.cc
+++ b/components/test_runner/event_sender.cc
@@ -26,8 +26,8 @@
#include "gin/handle.h"
#include "gin/object_template_builder.h"
#include "gin/wrappable.h"
+#include "third_party/WebKit/public/platform/WebCoalescedInputEvent.h"
#include "third_party/WebKit/public/platform/WebGestureEvent.h"
-#include "third_party/WebKit/public/platform/WebInputEvent.h"
#include "third_party/WebKit/public/platform/WebKeyboardEvent.h"
#include "third_party/WebKit/public/platform/WebPointerProperties.h"
#include "third_party/WebKit/public/platform/WebString.h"
@@ -2808,7 +2808,8 @@ WebInputEventResult EventSender::HandleInputEventOnViewOrPopup(
raw_event, delegate()->GetWindowToViewportScale());
const WebInputEvent* popup_friendly_event =
scaled_event.get() ? scaled_event.get() : &raw_event;
- return popup->handleInputEvent(*popup_friendly_event);
+ return popup->handleInputEvent(
+ blink::WebCoalescedInputEvent(*popup_friendly_event));
}
std::unique_ptr<WebInputEvent> widget_event =
@@ -2816,7 +2817,7 @@ WebInputEventResult EventSender::HandleInputEventOnViewOrPopup(
const WebInputEvent* event =
widget_event.get() ? static_cast<WebMouseEvent*>(widget_event.get())
: &raw_event;
- return widget()->handleInputEvent(*event);
+ return widget()->handleInputEvent(blink::WebCoalescedInputEvent(*event));
}
void EventSender::SendGesturesForMouseWheelEvent(
« no previous file with comments | « components/plugins/renderer/webview_plugin.cc ('k') | components/test_runner/text_input_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698