Index: content/browser/renderer_host/text_input_manager.cc |
diff --git a/content/browser/renderer_host/text_input_manager.cc b/content/browser/renderer_host/text_input_manager.cc |
index e0dee0adb5de70e8cd446cc0575e1a7185bb503a..c327c98b174fa88b337c5adedf857de8f45b549a 100644 |
--- a/content/browser/renderer_host/text_input_manager.cc |
+++ b/content/browser/renderer_host/text_input_manager.cc |
@@ -293,6 +293,12 @@ ui::TextInputType TextInputManager::GetTextInputTypeForViewForTesting( |
return text_input_state_map_[view].type; |
} |
+const gfx::Range* TextInputManager::GetCompositionRangeForTesting() const { |
+ if (auto* info = GetCompositionRangeInfo()) |
+ return &info->range; |
+ return nullptr; |
+} |
+ |
void TextInputManager::NotifyObserversAboutInputStateUpdate( |
RenderWidgetHostViewBase* updated_view, |
bool did_update_state) { |