Index: ui/keyboard/keyboard_controller.h |
diff --git a/ui/keyboard/keyboard_controller.h b/ui/keyboard/keyboard_controller.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9b15788a813c4303c06389b234b17510d515c156 |
--- /dev/null |
+++ b/ui/keyboard/keyboard_controller.h |
@@ -0,0 +1,41 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ |
+#define UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ |
+ |
+#include "base/basictypes.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "ui/keyboard/keyboard_export.h" |
+ |
+namespace aura { |
+class Window; |
+} // namespace aura |
+ |
+namespace keyboard { |
+ |
+class KeyboardControllerProxy; |
+ |
+// Provides control of the virtual keyboard, including providing a container, |
+// managing object lifetimes and controlling visibility. |
+class KEYBOARD_EXPORT KeyboardController { |
+ public: |
+ // Takes ownership of |proxy|. |
+ KeyboardController(KeyboardControllerProxy* proxy); |
+ virtual ~KeyboardController(); |
+ |
+ // Returns the container for the keyboard, which is owned by the |
+ // KeyboardController. |
+ aura::Window* GetContainerWindow(); |
+ |
+ private: |
+ scoped_ptr<KeyboardControllerProxy> proxy_; |
+ scoped_ptr<aura::Window> container_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(KeyboardController); |
+}; |
+ |
+} // namespace message_center |
+ |
+#endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_ |