Chromium Code Reviews

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

Issue 1995333002: Handle newCursorPosition correctly for Android's commitText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: For compile error. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: content/browser/renderer_host/render_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index 0999abfc8dc50bec67d819bb1e98e68d061448e7..e44199e5e8abfde9c905943b1e6c3fe384a3f766 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -376,7 +376,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost,
// * when insertText of NSTextInput is called (on Mac).
void ImeConfirmComposition(const base::string16& text,
const gfx::Range& replacement_range,
- bool keep_selection);
+ bool keep_selection,
+ int relative_cursor_pos = 1);
// Cancels an ongoing composition.
void ImeCancelComposition();

Powered by Google App Engine