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

Unified Diff: components/test_runner/event_sender.cc

Issue 2621303004: Keep track of coalesced events in main thread event queue (Closed)
Patch Set: Improve MainThreadEventQueue unittests 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: components/test_runner/event_sender.cc
diff --git a/components/test_runner/event_sender.cc b/components/test_runner/event_sender.cc
index bcfa5f16acf0ee01c126ce55e87374acb7106586..c3a51af9a2e972fe741d2fcbee6f256a9027c4d8 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/WebPointerProperties.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/platform/WebVector.h"
@@ -2806,7 +2806,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 =
@@ -2814,7 +2815,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));
dtapuska 2017/01/13 18:56:23 Does it not make sense here to adjust TranslateAnd
Navid Zolghadr 2017/01/13 19:02:10 I have done the modification to the generator func
dtapuska 2017/01/13 19:10:22 Ugh; I had clicked on it; but it is used in a numb
}
void EventSender::SendGesturesForMouseWheelEvent(

Powered by Google App Engine
This is Rietveld 408576698