| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef UI_BASE_IME_INPUT_METHOD_BASE_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_BASE_H_ |
| 6 #define UI_BASE_IME_INPUT_METHOD_BASE_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_BASE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 void SetDelegate(internal::InputMethodDelegate* delegate) override; | 40 void SetDelegate(internal::InputMethodDelegate* delegate) override; |
| 41 void OnFocus() override; | 41 void OnFocus() override; |
| 42 void OnBlur() override; | 42 void OnBlur() override; |
| 43 void SetFocusedTextInputClient(TextInputClient* client) override; | 43 void SetFocusedTextInputClient(TextInputClient* client) override; |
| 44 void DetachTextInputClient(TextInputClient* client) override; | 44 void DetachTextInputClient(TextInputClient* client) override; |
| 45 TextInputClient* GetTextInputClient() const override; | 45 TextInputClient* GetTextInputClient() const override; |
| 46 | 46 |
| 47 // If a derived class overrides this method, it should call parent's | 47 // If a derived class overrides this method, it should call parent's |
| 48 // implementation. | 48 // implementation. |
| 49 void OnTextInputTypeChanged(const TextInputClient* client) override; | 49 void OnTextInputTypeChanged(const TextInputClient* client) override; |
| 50 void OnInputLocaleChanged() override; |
| 51 bool IsInputLocaleCJK() const override; |
| 50 | 52 |
| 51 TextInputType GetTextInputType() const override; | 53 TextInputType GetTextInputType() const override; |
| 52 TextInputMode GetTextInputMode() const override; | 54 TextInputMode GetTextInputMode() const override; |
| 53 int GetTextInputFlags() const override; | 55 int GetTextInputFlags() const override; |
| 54 bool CanComposeInline() const override; | 56 bool CanComposeInline() const override; |
| 55 void ShowImeIfNeeded() override; | 57 void ShowImeIfNeeded() override; |
| 56 | 58 |
| 57 void AddObserver(InputMethodObserver* observer) override; | 59 void AddObserver(InputMethodObserver* observer) override; |
| 58 void RemoveObserver(InputMethodObserver* observer) override; | 60 void RemoveObserver(InputMethodObserver* observer) override; |
| 59 | 61 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 base::ObserverList<InputMethodObserver> observer_list_; | 123 base::ObserverList<InputMethodObserver> observer_list_; |
| 122 | 124 |
| 123 std::vector<std::unique_ptr<ui::KeyEvent>> key_events_for_testing_; | 125 std::vector<std::unique_ptr<ui::KeyEvent>> key_events_for_testing_; |
| 124 | 126 |
| 125 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); | 127 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); |
| 126 }; | 128 }; |
| 127 | 129 |
| 128 } // namespace ui | 130 } // namespace ui |
| 129 | 131 |
| 130 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ | 132 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ |
| OLD | NEW |