| Index: content/renderer/render_widget.cc
|
| diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
|
| index 829ae4633a5fabac46f3bd97d057dda7a10bfafe..188a29dcdf336f10fc2ff4f1f3d8609a88de781e 100644
|
| --- a/content/renderer/render_widget.cc
|
| +++ b/content/renderer/render_widget.cc
|
| @@ -1413,11 +1413,12 @@ void RenderWidget::OnImeSetComposition(
|
|
|
| void RenderWidget::OnImeConfirmComposition(const base::string16& text,
|
| const gfx::Range& replacement_range,
|
| - bool keep_selection) {
|
| + bool keep_selection,
|
| + int relative_cursor_pos) {
|
| #if defined(ENABLE_PLUGINS)
|
| if (focused_pepper_plugin_) {
|
| focused_pepper_plugin_->render_frame()->OnImeConfirmComposition(
|
| - text, replacement_range, keep_selection);
|
| + text, replacement_range, keep_selection, relative_cursor_pos);
|
| return;
|
| }
|
| #endif
|
| @@ -1431,7 +1432,7 @@ void RenderWidget::OnImeConfirmComposition(const base::string16& text,
|
| ImeEventGuard guard(this);
|
| input_handler_->set_handling_input_event(true);
|
| if (text.length())
|
| - webwidget_->confirmComposition(text);
|
| + webwidget_->confirmComposition(text, relative_cursor_pos);
|
| else if (keep_selection)
|
| webwidget_->confirmComposition(WebWidget::KeepSelection);
|
| else
|
|
|