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

Unified Diff: components/test_runner/text_input_controller.cc

Issue 2674253004: [refactor] Remove WebWidget::applyReplacementRange (Closed)
Patch Set: Rebased Created 3 years, 10 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 | « no previous file | content/renderer/render_widget.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 9b5c9828cebc4e2efb9d2a4a6ffa6bdf278c4120..2cdfd66b2f4a3ac6f68e3c920137bf6f067212f1 100644
--- a/components/test_runner/text_input_controller.cc
+++ b/components/test_runner/text_input_controller.cc
@@ -173,7 +173,8 @@ void TextInputController::Install(blink::WebLocalFrame* frame) {
void TextInputController::InsertText(const std::string& text) {
if (auto* controller = GetInputMethodController()) {
controller->commitText(blink::WebString::fromUTF8(text),
- std::vector<blink::WebCompositionUnderline>(), 0);
+ std::vector<blink::WebCompositionUnderline>(),
+ blink::WebRange(), 0);
}
}
@@ -221,7 +222,8 @@ void TextInputController::SetMarkedText(const std::string& text,
}
if (auto* controller = GetInputMethodController()) {
- controller->setComposition(web_text, underlines, start, start + length);
+ controller->setComposition(web_text, underlines, blink::WebRange(), start,
+ start + length);
}
}
@@ -315,7 +317,7 @@ void TextInputController::SetComposition(const std::string& text) {
if (auto* controller = GetInputMethodController()) {
controller->setComposition(
newText, blink::WebVector<blink::WebCompositionUnderline>(underlines),
- textLength, textLength);
+ blink::WebRange(), textLength, textLength);
}
}
« no previous file with comments | « no previous file | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698