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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 void OnWindowHierarchyChanged(const HierarchyChangeParams& params) override; | 118 void OnWindowHierarchyChanged(const HierarchyChangeParams& params) override; |
119 | 119 |
120 // InputMethodObserver overrides | 120 // InputMethodObserver overrides |
121 void OnTextInputTypeChanged(const ui::TextInputClient* client) override {} | 121 void OnTextInputTypeChanged(const ui::TextInputClient* client) override {} |
122 void OnFocus() override {} | 122 void OnFocus() override {} |
123 void OnBlur() override {} | 123 void OnBlur() override {} |
124 void OnCaretBoundsChanged(const ui::TextInputClient* client) override {} | 124 void OnCaretBoundsChanged(const ui::TextInputClient* client) override {} |
125 void OnTextInputStateChanged(const ui::TextInputClient* client) override; | 125 void OnTextInputStateChanged(const ui::TextInputClient* client) override; |
126 void OnInputMethodDestroyed(const ui::InputMethod* input_method) override; | 126 void OnInputMethodDestroyed(const ui::InputMethod* input_method) override; |
127 void OnShowImeIfNeeded() override; | 127 void OnShowImeIfNeeded() override; |
| 128 void OnKeyboardBoundsUnchanged() override; |
128 | 129 |
129 // Show virtual keyboard immediately with animation. | 130 // Show virtual keyboard immediately with animation. |
130 void ShowKeyboardInternal(); | 131 void ShowKeyboardInternal(); |
131 | 132 |
132 // Clears any insets on web content windows. | 133 // Clears any insets on web content windows. |
133 void ResetWindowInsets(); | 134 void ResetWindowInsets(); |
134 | 135 |
135 // Returns true if keyboard is scheduled to hide. | 136 // Returns true if keyboard is scheduled to hide. |
136 bool WillHideKeyboard() const; | 137 bool WillHideKeyboard() const; |
137 | 138 |
(...skipping 29 matching lines...) Expand all Loading... |
167 static KeyboardController* instance_; | 168 static KeyboardController* instance_; |
168 | 169 |
169 base::WeakPtrFactory<KeyboardController> weak_factory_; | 170 base::WeakPtrFactory<KeyboardController> weak_factory_; |
170 | 171 |
171 DISALLOW_COPY_AND_ASSIGN(KeyboardController); | 172 DISALLOW_COPY_AND_ASSIGN(KeyboardController); |
172 }; | 173 }; |
173 | 174 |
174 } // namespace keyboard | 175 } // namespace keyboard |
175 | 176 |
176 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ | 177 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ |
OLD | NEW |