Index: components/arc/ime/arc_ime_bridge_impl.cc |
diff --git a/components/arc/ime/arc_ime_bridge_impl.cc b/components/arc/ime/arc_ime_bridge_impl.cc |
index 13d787ef5eca056fcc8b2189b5b49b7b2709feb2..99abcd0a14ad14168f476957664b87d6722e14b6 100644 |
--- a/components/arc/ime/arc_ime_bridge_impl.cc |
+++ b/components/arc/ime/arc_ime_bridge_impl.cc |
@@ -141,10 +141,8 @@ void ArcImeBridgeImpl::OnTextInputTypeChanged(mojom::TextInputType type) { |
delegate_->OnTextInputTypeChanged(ConvertTextInputType(type)); |
} |
-void ArcImeBridgeImpl::OnCursorRectChanged(mojom::CursorRectPtr rect) { |
- delegate_->OnCursorRectChanged(gfx::Rect(rect->left, rect->top, |
- rect->right - rect->left, |
- rect->bottom - rect->top)); |
+void ArcImeBridgeImpl::OnCursorRectChanged(gfx::Rect rect) { |
+ delegate_->OnCursorRectChanged(rect); |
} |
void ArcImeBridgeImpl::OnCancelComposition() { |
@@ -155,4 +153,13 @@ void ArcImeBridgeImpl::ShowImeIfNeeded() { |
delegate_->ShowImeIfNeeded(); |
} |
+void ArcImeBridgeImpl::OnCursorRectChangedWithSurroundingText( |
+ gfx::Rect rect, |
+ gfx::Range text_range, |
+ const std::string& text_in_range, |
+ gfx::Range selection_range) { |
+ delegate_->OnCursorRectChangedWithSurroundingText( |
+ rect, text_range, base::UTF8ToUTF16(text_in_range), selection_range); |
+} |
+ |
} // namespace arc |