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 18 matching lines...) Expand all Loading... |
29 virtual ~InputMethodBase(); | 29 virtual ~InputMethodBase(); |
30 | 30 |
31 // Overriden from InputMethod. | 31 // Overriden from InputMethod. |
32 virtual void SetDelegate(internal::InputMethodDelegate* delegate) OVERRIDE; | 32 virtual void SetDelegate(internal::InputMethodDelegate* delegate) OVERRIDE; |
33 virtual void Init(bool focused) OVERRIDE; | 33 virtual void Init(bool focused) OVERRIDE; |
34 // If a derived class overrides OnFocus()/OnBlur(), it should call parent's | 34 // If a derived class overrides OnFocus()/OnBlur(), it should call parent's |
35 // implementation first, to make sure |system_toplevel_window_focused_| flag | 35 // implementation first, to make sure |system_toplevel_window_focused_| flag |
36 // can be updated correctly. | 36 // can be updated correctly. |
37 virtual void OnFocus() OVERRIDE; | 37 virtual void OnFocus() OVERRIDE; |
38 virtual void OnBlur() OVERRIDE; | 38 virtual void OnBlur() OVERRIDE; |
| 39 virtual void OnPossibleRefocus() OVERRIDE; |
39 virtual void SetFocusedTextInputClient(TextInputClient* client) OVERRIDE; | 40 virtual void SetFocusedTextInputClient(TextInputClient* client) OVERRIDE; |
40 virtual TextInputClient* GetTextInputClient() const OVERRIDE; | 41 virtual TextInputClient* GetTextInputClient() const OVERRIDE; |
41 | 42 |
42 // If a derived class overrides this method, it should call parent's | 43 // If a derived class overrides this method, it should call parent's |
43 // implementation. | 44 // implementation. |
44 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; | 45 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; |
45 | 46 |
46 virtual TextInputType GetTextInputType() const OVERRIDE; | 47 virtual TextInputType GetTextInputType() const OVERRIDE; |
47 virtual bool CanComposeInline() const OVERRIDE; | 48 virtual bool CanComposeInline() const OVERRIDE; |
48 | 49 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 ObserverList<InputMethodObserver> observer_list_; | 93 ObserverList<InputMethodObserver> observer_list_; |
93 | 94 |
94 bool system_toplevel_window_focused_; | 95 bool system_toplevel_window_focused_; |
95 | 96 |
96 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); | 97 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); |
97 }; | 98 }; |
98 | 99 |
99 } // namespace ui | 100 } // namespace ui |
100 | 101 |
101 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ | 102 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ |
OLD | NEW |