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

Unified Diff: components/test_runner/text_input_controller.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/text_input_controller.cc
diff --git a/components/test_runner/text_input_controller.cc b/components/test_runner/text_input_controller.cc
index d1d6c03afc5d2a77f27d08ec4d9bf0f741aff3a0..4c2786401b55e4f0adc8fcc38710dc5c90bb9933 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/CoalescedWebInputEvent.h"
#include "third_party/WebKit/public/web/WebCompositionUnderline.h"
#include "third_party/WebKit/public/web/WebFrameWidget.h"
#include "third_party/WebKit/public/web/WebInputMethodController.h"
@@ -291,7 +291,7 @@ void TextInputController::SetComposition(const std::string& text) {
key_down.type = blink::WebInputEvent::RawKeyDown;
key_down.modifiers = 0;
key_down.windowsKeyCode = 0xE5; // VKEY_PROCESSKEY
- view()->handleInputEvent(key_down);
+ view()->handleInputEvent(CoalescedWebInputEvent(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

Powered by Google App Engine
This is Rietveld 408576698