OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ |
| 6 #define UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ui/keyboard/keyboard_export.h" |
| 11 |
| 12 namespace aura { |
| 13 class Window; |
| 14 } |
| 15 |
| 16 namespace keyboard { |
| 17 |
| 18 class KeyboardControllerProxy; |
| 19 |
| 20 // Provides control of the virtual keyboard, including providing a container, |
| 21 // managing object lifetimes and controlling visibility. |
| 22 class KEYBOARD_EXPORT KeyboardController { |
| 23 public: |
| 24 // Takes ownership of |proxy|. |
| 25 explicit KeyboardController(KeyboardControllerProxy* proxy); |
| 26 virtual ~KeyboardController(); |
| 27 |
| 28 // Returns the container for the keyboard, which is then owned by the caller. |
| 29 // It is the responsibility of the caller to Show() the returned window. |
| 30 aura::Window* GetContainerWindow(); |
| 31 |
| 32 private: |
| 33 scoped_ptr<KeyboardControllerProxy> proxy_; |
| 34 aura::Window* container_; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(KeyboardController); |
| 37 }; |
| 38 |
| 39 } // namespace keyboard |
| 40 |
| 41 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ |
OLD | NEW |