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/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 virtual void DetachTextInputClient(TextInputClient* client) OVERRIDE; | 43 virtual void DetachTextInputClient(TextInputClient* client) OVERRIDE; |
44 virtual TextInputClient* GetTextInputClient() const OVERRIDE; | 44 virtual TextInputClient* GetTextInputClient() const OVERRIDE; |
45 | 45 |
46 // If a derived class overrides this method, it should call parent's | 46 // If a derived class overrides this method, it should call parent's |
47 // implementation. | 47 // implementation. |
48 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; | 48 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; |
49 | 49 |
50 virtual TextInputType GetTextInputType() const OVERRIDE; | 50 virtual TextInputType GetTextInputType() const OVERRIDE; |
51 virtual TextInputMode GetTextInputMode() const OVERRIDE; | 51 virtual TextInputMode GetTextInputMode() const OVERRIDE; |
52 virtual bool CanComposeInline() const OVERRIDE; | 52 virtual bool CanComposeInline() const OVERRIDE; |
| 53 virtual void ShowImeIfNeeded() OVERRIDE; |
53 | 54 |
54 virtual void AddObserver(InputMethodObserver* observer) OVERRIDE; | 55 virtual void AddObserver(InputMethodObserver* observer) OVERRIDE; |
55 virtual void RemoveObserver(InputMethodObserver* observer) OVERRIDE; | 56 virtual void RemoveObserver(InputMethodObserver* observer) OVERRIDE; |
56 | 57 |
57 protected: | 58 protected: |
58 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before, | 59 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before, |
59 TextInputClient* focused) {} | 60 TextInputClient* focused) {} |
60 virtual void OnDidChangeFocusedClient(TextInputClient* focused_before, | 61 virtual void OnDidChangeFocusedClient(TextInputClient* focused_before, |
61 TextInputClient* focused) {} | 62 TextInputClient* focused) {} |
62 | 63 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 ObserverList<InputMethodObserver> observer_list_; | 108 ObserverList<InputMethodObserver> observer_list_; |
108 | 109 |
109 bool system_toplevel_window_focused_; | 110 bool system_toplevel_window_focused_; |
110 | 111 |
111 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); | 112 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); |
112 }; | 113 }; |
113 | 114 |
114 } // namespace ui | 115 } // namespace ui |
115 | 116 |
116 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ | 117 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ |
OLD | NEW |