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

Unified Diff: components/test_runner/text_input_controller.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/test_runner/event_sender.cc ('k') | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/text_input_controller.cc
diff --git a/components/test_runner/text_input_controller.cc b/components/test_runner/text_input_controller.cc
index 3232d73813265a139ef25ce4d4e0da8aab3959ce..9b5c9828cebc4e2efb9d2a4a6ffa6bdf278c4120 100644
--- a/components/test_runner/text_input_controller.cc
+++ b/components/test_runner/text_input_controller.cc
@@ -11,7 +11,7 @@
#include "gin/handle.h"
#include "gin/object_template_builder.h"
#include "gin/wrappable.h"
-#include "third_party/WebKit/public/platform/WebInputEvent.h"
+#include "third_party/WebKit/public/platform/WebCoalescedInputEvent.h"
#include "third_party/WebKit/public/platform/WebInputEventResult.h"
#include "third_party/WebKit/public/platform/WebKeyboardEvent.h"
#include "third_party/WebKit/public/web/WebCompositionUnderline.h"
@@ -301,7 +301,7 @@ void TextInputController::SetComposition(const std::string& text) {
ui::EventTimeStampToSeconds(ui::EventTimeForNow()));
key_down.windowsKeyCode = 0xE5; // VKEY_PROCESSKEY
- view()->handleInputEvent(key_down);
+ view()->handleInputEvent(blink::WebCoalescedInputEvent(key_down));
// The value returned by std::string::length() may not correspond to the
// actual number of encoded characters in sequences of multi-byte or
« no previous file with comments | « components/test_runner/event_sender.cc ('k') | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698