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

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: fix upstream Created 7 years, 8 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
« no previous file with comments | « ui/keyboard/keyboard.gyp ('k') | ui/keyboard/keyboard_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..408a71f2b84419c39ab8eec27cf8a681d4b06bc7
--- /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 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|.
+ explicit KeyboardController(KeyboardControllerProxy* proxy);
+ virtual ~KeyboardController();
+
+ // Returns the container for the keyboard, which is then owned by the caller.
+ // It is the responsibility of the caller to Show() the returned window.
+ aura::Window* GetContainerWindow();
+
+ private:
+ scoped_ptr<KeyboardControllerProxy> proxy_;
+ aura::Window* container_;
+
+ DISALLOW_COPY_AND_ASSIGN(KeyboardController);
+};
+
+} // namespace keyboard
+
+#endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_
« no previous file with comments | « ui/keyboard/keyboard.gyp ('k') | ui/keyboard/keyboard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698