OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ | 5 #ifndef UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ |
6 #define UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ | 6 #define UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/event_types.h" | 9 #include "base/event_types.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 virtual void OnBlur() OVERRIDE {} | 76 virtual void OnBlur() OVERRIDE {} |
77 virtual void OnUntranslatedIMEMessage( | 77 virtual void OnUntranslatedIMEMessage( |
78 const base::NativeEvent& event) OVERRIDE {} | 78 const base::NativeEvent& event) OVERRIDE {} |
79 virtual void OnCaretBoundsChanged( | 79 virtual void OnCaretBoundsChanged( |
80 const ui::TextInputClient* client) OVERRIDE {} | 80 const ui::TextInputClient* client) OVERRIDE {} |
81 virtual void OnInputLocaleChanged() OVERRIDE {} | 81 virtual void OnInputLocaleChanged() OVERRIDE {} |
82 virtual void OnTextInputStateChanged( | 82 virtual void OnTextInputStateChanged( |
83 const ui::TextInputClient* client) OVERRIDE; | 83 const ui::TextInputClient* client) OVERRIDE; |
84 virtual void OnInputMethodDestroyed( | 84 virtual void OnInputMethodDestroyed( |
85 const ui::InputMethod* input_method) OVERRIDE; | 85 const ui::InputMethod* input_method) OVERRIDE; |
| 86 virtual void OnShowVirtualKeyboard() OVERRIDE; |
86 | 87 |
87 // Returns true if keyboard is scheduled to hide. | 88 // Returns true if keyboard is scheduled to hide. |
88 bool WillHideKeyboard() const; | 89 bool WillHideKeyboard() const; |
89 | 90 |
90 scoped_ptr<KeyboardControllerProxy> proxy_; | 91 scoped_ptr<KeyboardControllerProxy> proxy_; |
91 scoped_ptr<aura::Window> container_; | 92 scoped_ptr<aura::Window> container_; |
92 ui::InputMethod* input_method_; | 93 ui::InputMethod* input_method_; |
93 bool keyboard_visible_; | 94 bool keyboard_visible_; |
94 | 95 |
95 ObserverList<KeyboardControllerObserver> observer_list_; | 96 ObserverList<KeyboardControllerObserver> observer_list_; |
96 | 97 |
97 base::WeakPtrFactory<KeyboardController> weak_factory_; | 98 base::WeakPtrFactory<KeyboardController> weak_factory_; |
98 | 99 |
99 DISALLOW_COPY_AND_ASSIGN(KeyboardController); | 100 DISALLOW_COPY_AND_ASSIGN(KeyboardController); |
100 }; | 101 }; |
101 | 102 |
102 } // namespace keyboard | 103 } // namespace keyboard |
103 | 104 |
104 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ | 105 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ |
OLD | NEW |