| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 virtual void OnTextInputTypeChanged( | 85 virtual void OnTextInputTypeChanged( |
| 86 const ui::TextInputClient* client) OVERRIDE {} | 86 const ui::TextInputClient* client) OVERRIDE {} |
| 87 virtual void OnFocus() OVERRIDE {} | 87 virtual void OnFocus() OVERRIDE {} |
| 88 virtual void OnBlur() OVERRIDE {} | 88 virtual void OnBlur() OVERRIDE {} |
| 89 virtual void OnCaretBoundsChanged( | 89 virtual void OnCaretBoundsChanged( |
| 90 const ui::TextInputClient* client) OVERRIDE {} | 90 const ui::TextInputClient* client) OVERRIDE {} |
| 91 virtual void OnTextInputStateChanged( | 91 virtual void OnTextInputStateChanged( |
| 92 const ui::TextInputClient* client) OVERRIDE; | 92 const ui::TextInputClient* client) OVERRIDE; |
| 93 virtual void OnInputMethodDestroyed( | 93 virtual void OnInputMethodDestroyed( |
| 94 const ui::InputMethod* input_method) OVERRIDE; | 94 const ui::InputMethod* input_method) OVERRIDE; |
| 95 virtual void OnShowImeIfNeeded() OVERRIDE; |
| 95 | 96 |
| 96 // Returns true if keyboard is scheduled to hide. | 97 // Returns true if keyboard is scheduled to hide. |
| 97 bool WillHideKeyboard() const; | 98 bool WillHideKeyboard() const; |
| 98 | 99 |
| 99 scoped_ptr<KeyboardControllerProxy> proxy_; | 100 scoped_ptr<KeyboardControllerProxy> proxy_; |
| 100 scoped_ptr<aura::Window> container_; | 101 scoped_ptr<aura::Window> container_; |
| 101 ui::InputMethod* input_method_; | 102 ui::InputMethod* input_method_; |
| 102 bool keyboard_visible_; | 103 bool keyboard_visible_; |
| 103 bool lock_keyboard_; | 104 bool lock_keyboard_; |
| 104 | 105 |
| 105 ObserverList<KeyboardControllerObserver> observer_list_; | 106 ObserverList<KeyboardControllerObserver> observer_list_; |
| 106 | 107 |
| 107 base::WeakPtrFactory<KeyboardController> weak_factory_; | 108 base::WeakPtrFactory<KeyboardController> weak_factory_; |
| 108 | 109 |
| 109 DISALLOW_COPY_AND_ASSIGN(KeyboardController); | 110 DISALLOW_COPY_AND_ASSIGN(KeyboardController); |
| 110 }; | 111 }; |
| 111 | 112 |
| 112 } // namespace keyboard | 113 } // namespace keyboard |
| 113 | 114 |
| 114 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ | 115 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ |
| OLD | NEW |