Index: ui/base/ime/input_method_base.cc |
diff --git a/ui/base/ime/input_method_base.cc b/ui/base/ime/input_method_base.cc |
index d37707653409a117540c85d8edbfaeca86533817..73b727fb323392995cc5db5f81ff944c7e73e88a 100644 |
--- a/ui/base/ime/input_method_base.cc |
+++ b/ui/base/ime/input_method_base.cc |
@@ -74,6 +74,20 @@ void InputMethodBase::OnTextInputTypeChanged(const TextInputClient* client) { |
NotifyTextInputStateChanged(client); |
} |
+void InputMethodBase::OnCaretBoundsChanged(const TextInputClient* client) { |
+ if (!IsTextInputClientFocused(client)) |
+ return; |
+ FOR_EACH_OBSERVER(InputMethodObserver, |
+ observer_list_, |
+ OnCaretBoundsChanged(client)); |
+} |
+ |
+void InputMethodBase::OnInputLocaleChanged() { |
+ FOR_EACH_OBSERVER(InputMethodObserver, |
+ observer_list_, |
+ OnInputLocaleChanged()); |
+} |
+ |
TextInputType InputMethodBase::GetTextInputType() const { |
TextInputClient* client = GetTextInputClient(); |
return client ? client->GetTextInputType() : TEXT_INPUT_TYPE_NONE; |