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

Unified Diff: components/test_runner/event_sender.cc

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: components/test_runner/event_sender.cc
diff --git a/components/test_runner/event_sender.cc b/components/test_runner/event_sender.cc
index 8b2ccef10b451ef46bbc12def713bf47ee1fd73e..9d5c353ac7ef30ae6043065fcebf528abd10c464 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/CoalescedWebInputEvent.h"
#include "third_party/WebKit/public/platform/WebGestureEvent.h"
-#include "third_party/WebKit/public/platform/WebInputEvent.h"
#include "third_party/WebKit/public/platform/WebPointerProperties.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/platform/WebVector.h"
@@ -2810,7 +2810,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(
+ CoalescedWebInputEvent(popup_friendly_event));
}
std::unique_ptr<WebInputEvent> widget_event =
@@ -2818,7 +2819,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(CoalescedWebInputEvent(*event));
}
void EventSender::SendGesturesForMouseWheelEvent(

Powered by Google App Engine
This is Rietveld 408576698