Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: ui/keyboard/keyboard_controller.h

Issue 13164002: Create and show the virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove fixme Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
sadrul 2013/04/02 16:10:31 explicit
bryeung 2013/04/03 14:46:03 Done.
+ 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
sadrul 2013/04/02 16:10:31 keyboard
bryeung 2013/04/03 14:46:03 Done.
+
+#endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698