| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/event_types.h" | 10 #include "base/event_types.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // Full width virtual keyboard. The virtual keyboard window has the same width | 41 // Full width virtual keyboard. The virtual keyboard window has the same width |
| 42 // as the display. | 42 // as the display. |
| 43 FULL_WIDTH, | 43 FULL_WIDTH, |
| 44 // Floating virtual keyboard. The virtual keyboard window has customizable | 44 // Floating virtual keyboard. The virtual keyboard window has customizable |
| 45 // width and is draggable. | 45 // width and is draggable. |
| 46 FLOATING, | 46 FLOATING, |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 // Provides control of the virtual keyboard, including providing a container | 49 // Provides control of the virtual keyboard, including providing a container |
| 50 // and controlling visibility. | 50 // and controlling visibility. |
| 51 class KEYBOARD_EXPORT KeyboardController : public ui::InputMethodObserver, | 51 class KeyboardController : public ui::InputMethodObserver, |
| 52 public aura::WindowObserver { | 52 public aura::WindowObserver { |
| 53 public: | 53 public: |
| 54 // Different ways to hide the keyboard. | 54 // Different ways to hide the keyboard. |
| 55 enum HideReason { | 55 enum HideReason { |
| 56 // System initiated. | 56 // System initiated. |
| 57 HIDE_REASON_AUTOMATIC, | 57 HIDE_REASON_AUTOMATIC, |
| 58 // User initiated. | 58 // User initiated. |
| 59 HIDE_REASON_MANUAL, | 59 HIDE_REASON_MANUAL, |
| 60 }; | 60 }; |
| 61 | 61 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 static KeyboardController* instance_; | 187 static KeyboardController* instance_; |
| 188 | 188 |
| 189 base::WeakPtrFactory<KeyboardController> weak_factory_; | 189 base::WeakPtrFactory<KeyboardController> weak_factory_; |
| 190 | 190 |
| 191 DISALLOW_COPY_AND_ASSIGN(KeyboardController); | 191 DISALLOW_COPY_AND_ASSIGN(KeyboardController); |
| 192 }; | 192 }; |
| 193 | 193 |
| 194 } // namespace keyboard | 194 } // namespace keyboard |
| 195 | 195 |
| 196 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ | 196 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ |
| OLD | NEW |