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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 2339793002: Handle newCursorPosition correctly for Android's commitText() (Closed)
Patch Set: Fix compile error (rebased on r418371) Created 4 years, 3 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: content/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 04f254f6ed6a4536505759b046e0d7a43d5f24c9..2fad18b314a0954892b3e4f2d4c879c16ffde99e 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1413,12 +1413,15 @@ void RenderWidgetHostImpl::ImeSetComposition(
selection_start, selection_end));
}
-void RenderWidgetHostImpl::ImeConfirmComposition(
- const base::string16& text,
- const gfx::Range& replacement_range,
- bool keep_selection) {
- Send(new InputMsg_ImeConfirmComposition(
- GetRoutingID(), text, replacement_range, keep_selection));
+void RenderWidgetHostImpl::ImeCommitText(const base::string16& text,
+ const gfx::Range& replacement_range,
+ int relative_cursor_pos) {
+ Send(new InputMsg_ImeCommitText(GetRoutingID(), text, replacement_range,
+ relative_cursor_pos));
+}
+
+void RenderWidgetHostImpl::ImeFinishComposingText(bool keep_selection) {
+ Send(new InputMsg_ImeFinishComposingText(GetRoutingID(), keep_selection));
}
void RenderWidgetHostImpl::ImeCancelComposition() {
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698