| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 virtual void DetachTextInputClient(TextInputClient* client) OVERRIDE; | 42 virtual void DetachTextInputClient(TextInputClient* client) OVERRIDE; |
| 43 virtual TextInputClient* GetTextInputClient() const OVERRIDE; | 43 virtual TextInputClient* GetTextInputClient() const OVERRIDE; |
| 44 | 44 |
| 45 // If a derived class overrides this method, it should call parent's | 45 // If a derived class overrides this method, it should call parent's |
| 46 // implementation. | 46 // implementation. |
| 47 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; | 47 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; |
| 48 | 48 |
| 49 virtual TextInputType GetTextInputType() const OVERRIDE; | 49 virtual TextInputType GetTextInputType() const OVERRIDE; |
| 50 virtual TextInputMode GetTextInputMode() const OVERRIDE; | 50 virtual TextInputMode GetTextInputMode() const OVERRIDE; |
| 51 virtual bool CanComposeInline() const OVERRIDE; | 51 virtual bool CanComposeInline() const OVERRIDE; |
| 52 virtual void ShowVirtualKeyboard() OVERRIDE; |
| 52 | 53 |
| 53 virtual void AddObserver(InputMethodObserver* observer) OVERRIDE; | 54 virtual void AddObserver(InputMethodObserver* observer) OVERRIDE; |
| 54 virtual void RemoveObserver(InputMethodObserver* observer) OVERRIDE; | 55 virtual void RemoveObserver(InputMethodObserver* observer) OVERRIDE; |
| 55 | 56 |
| 56 protected: | 57 protected: |
| 57 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before, | 58 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before, |
| 58 TextInputClient* focused) {} | 59 TextInputClient* focused) {} |
| 59 virtual void OnDidChangeFocusedClient(TextInputClient* focused_before, | 60 virtual void OnDidChangeFocusedClient(TextInputClient* focused_before, |
| 60 TextInputClient* focused) {} | 61 TextInputClient* focused) {} |
| 61 | 62 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 ObserverList<InputMethodObserver> observer_list_; | 100 ObserverList<InputMethodObserver> observer_list_; |
| 100 | 101 |
| 101 bool system_toplevel_window_focused_; | 102 bool system_toplevel_window_focused_; |
| 102 | 103 |
| 103 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); | 104 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace ui | 107 } // namespace ui |
| 107 | 108 |
| 108 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ | 109 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ |
| OLD | NEW |