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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 1995333002: Handle newCursorPosition correctly for Android's commitText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add 3 tests 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: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 97f94f0afe5bc8d03702c47ba7e861d04eb0f3fd..a034069b5f1ca912cd0189d3b9644379e84cd5e7 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -1327,7 +1327,7 @@ void RenderFrameImpl::SimulateImeSetComposition(
void RenderFrameImpl::SimulateImeConfirmComposition(
const base::string16& text,
const gfx::Range& replacement_range) {
- render_view_->OnImeConfirmComposition(text, replacement_range, false);
+ render_view_->OnImeConfirmComposition(text, replacement_range, false, 1);
}
void RenderFrameImpl::OnImeSetComposition(
@@ -1364,7 +1364,8 @@ void RenderFrameImpl::OnImeSetComposition(
void RenderFrameImpl::OnImeConfirmComposition(
const base::string16& text,
const gfx::Range& replacement_range,
- bool keep_selection) {
+ bool keep_selection,
+ int new_cursor_pos) {
// When a PPAPI plugin has focus, we bypass WebKit.
// Here, text.empty() has a special meaning. It means to commit the last
// update of composition text (see

Powered by Google App Engine
This is Rietveld 408576698