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 } // namespace aura | |
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 KeyboardController(KeyboardControllerProxy* proxy); | |
sadrul
2013/04/02 16:10:31
explicit
bryeung
2013/04/03 14:46:03
Done.
| |
26 virtual ~KeyboardController(); | |
27 | |
28 // Returns the container for the keyboard, which is owned by the | |
29 // KeyboardController. | |
30 aura::Window* GetContainerWindow(); | |
31 | |
32 private: | |
33 scoped_ptr<KeyboardControllerProxy> proxy_; | |
34 scoped_ptr<aura::Window> container_; | |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(KeyboardController); | |
37 }; | |
38 | |
39 } // namespace message_center | |
sadrul
2013/04/02 16:10:31
keyboard
bryeung
2013/04/03 14:46:03
Done.
| |
40 | |
41 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ | |
OLD | NEW |