| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/base/ime/input_method_base.h" | 5 #include "ui/base/ime/input_method_base.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // Overriden from InputMethod. | 142 // Overriden from InputMethod. |
| 143 bool OnUntranslatedIMEMessage( | 143 bool OnUntranslatedIMEMessage( |
| 144 const base::NativeEvent& event, | 144 const base::NativeEvent& event, |
| 145 InputMethod::NativeEventResult* result) override { | 145 InputMethod::NativeEventResult* result) override { |
| 146 return false; | 146 return false; |
| 147 } | 147 } |
| 148 void DispatchKeyEvent(ui::KeyEvent*) override {} | 148 void DispatchKeyEvent(ui::KeyEvent*) override {} |
| 149 void OnCaretBoundsChanged(const TextInputClient* client) override {} | 149 void OnCaretBoundsChanged(const TextInputClient* client) override {} |
| 150 void CancelComposition(const TextInputClient* client) override {} | 150 void CancelComposition(const TextInputClient* client) override {} |
| 151 void OnInputLocaleChanged() override {} | 151 void OnInputLocaleChanged() override {} |
| 152 std::string GetInputLocale() override { return ""; } | 152 bool IsInputLocaleCJK() const override { return false; } |
| 153 bool IsCandidatePopupOpen() const override { return false; } | 153 bool IsCandidatePopupOpen() const override { return false; } |
| 154 // Overriden from InputMethodBase. | 154 // Overriden from InputMethodBase. |
| 155 void OnWillChangeFocusedClient(TextInputClient* focused_before, | 155 void OnWillChangeFocusedClient(TextInputClient* focused_before, |
| 156 TextInputClient* focused) override { | 156 TextInputClient* focused) override { |
| 157 verifier_->OnWillChangeFocusedClient(focused_before, focused); | 157 verifier_->OnWillChangeFocusedClient(focused_before, focused); |
| 158 } | 158 } |
| 159 | 159 |
| 160 void OnDidChangeFocusedClient(TextInputClient* focused_before, | 160 void OnDidChangeFocusedClient(TextInputClient* focused_before, |
| 161 TextInputClient* focused) override { | 161 TextInputClient* focused) override { |
| 162 verifier_->OnDidChangeFocusedClient(focused_before, focused); | 162 verifier_->OnDidChangeFocusedClient(focused_before, focused); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 input_method.OnFocus(); | 296 input_method.OnFocus(); |
| 297 verifier.ExpectClientChange(&text_input_client, NULL); | 297 verifier.ExpectClientChange(&text_input_client, NULL); |
| 298 input_method.DetachTextInputClient(&text_input_client); | 298 input_method.DetachTextInputClient(&text_input_client); |
| 299 EXPECT_EQ(NULL, input_method.GetTextInputClient()); | 299 EXPECT_EQ(NULL, input_method.GetTextInputClient()); |
| 300 verifier.Verify(); | 300 verifier.Verify(); |
| 301 } | 301 } |
| 302 } | 302 } |
| 303 | 303 |
| 304 } // namespace | 304 } // namespace |
| 305 } // namespace ui | 305 } // namespace ui |
| OLD | NEW |