| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_UI_H_ | 5 #ifndef UI_KEYBOARD_KEYBOARD_UI_H_ |
| 6 #define UI_KEYBOARD_KEYBOARD_UI_H_ | 6 #define UI_KEYBOARD_KEYBOARD_UI_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/base/ime/text_input_type.h" | 9 #include "ui/base/ime/text_input_type.h" |
| 10 #include "ui/keyboard/keyboard_export.h" | 10 #include "ui/keyboard/keyboard_export.h" |
| 11 | 11 |
| 12 namespace aura { | 12 namespace aura { |
| 13 class Window; | 13 class Window; |
| 14 } | 14 } |
| 15 namespace gfx { | 15 namespace gfx { |
| 16 class Rect; | 16 class Rect; |
| 17 } | 17 } |
| 18 namespace ui { | 18 namespace ui { |
| 19 class InputMethod; | 19 class InputMethod; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace keyboard { | 22 namespace keyboard { |
| 23 | 23 |
| 24 class KeyboardController; | 24 class KeyboardController; |
| 25 | 25 |
| 26 // An interface implemented by an object that implements a keyboard UI. | 26 // An interface implemented by an object that implements a keyboard UI. |
| 27 class KEYBOARD_EXPORT KeyboardUI { | 27 class KeyboardUI { |
| 28 public: | 28 public: |
| 29 KeyboardUI(); | 29 KeyboardUI(); |
| 30 virtual ~KeyboardUI(); | 30 virtual ~KeyboardUI(); |
| 31 | 31 |
| 32 // Gets the virtual keyboard window. May return null if the window has not yet | 32 // Gets the virtual keyboard window. May return null if the window has not yet |
| 33 // been created. | 33 // been created. |
| 34 virtual aura::Window* GetKeyboardWindow() = 0; | 34 virtual aura::Window* GetKeyboardWindow() = 0; |
| 35 | 35 |
| 36 // Whether the keyboard window has been created. | 36 // Whether the keyboard window has been created. |
| 37 virtual bool HasKeyboardWindow() const = 0; | 37 virtual bool HasKeyboardWindow() const = 0; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 private: | 91 private: |
| 92 keyboard::KeyboardController* keyboard_controller_; | 92 keyboard::KeyboardController* keyboard_controller_; |
| 93 | 93 |
| 94 DISALLOW_COPY_AND_ASSIGN(KeyboardUI); | 94 DISALLOW_COPY_AND_ASSIGN(KeyboardUI); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace keyboard | 97 } // namespace keyboard |
| 98 | 98 |
| 99 #endif // UI_KEYBOARD_KEYBOARD_UI_H_ | 99 #endif // UI_KEYBOARD_KEYBOARD_UI_H_ |
| OLD | NEW |