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

Unified Diff: components/test_runner/text_input_controller.cc

Issue 1995333002: Handle newCursorPosition correctly for Android's commitText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change for aelias@'s review Created 4 years, 4 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/text_input_controller.cc
diff --git a/components/test_runner/text_input_controller.cc b/components/test_runner/text_input_controller.cc
index cd0aa73b8f394b3e6d7c1649e954ae49c103fd5f..28c4fe41f6d06d054fa9c4835727c1afd50b43cc 100644
--- a/components/test_runner/text_input_controller.cc
+++ b/components/test_runner/text_input_controller.cc
@@ -160,7 +160,7 @@ void TextInputController::Install(blink::WebLocalFrame* frame) {
}
void TextInputController::InsertText(const std::string& text) {
- view()->confirmComposition(blink::WebString::fromUTF8(text));
+ view()->confirmComposition(blink::WebString::fromUTF8(text), 1);
}
void TextInputController::UnmarkText() {
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.h » ('j') | content/renderer/render_frame_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698