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

Unified Diff: ui/virtual_keyboard/virtual_keyboard_controller.h

Issue 13164002: Create and show the virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/virtual_keyboard/virtual_keyboard_controller.h
diff --git a/ui/virtual_keyboard/virtual_keyboard_controller.h b/ui/virtual_keyboard/virtual_keyboard_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..e66ffaf554c1514fce0748ac2a103444c25b50e1
--- /dev/null
+++ b/ui/virtual_keyboard/virtual_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_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_CONTROLLER_H_
+#define UI_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_CONTROLLER_H_
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+#include "ui/virtual_keyboard/virtual_keyboard_export.h"
+
+namespace aura {
+class Window;
+} // namespace aura
+
+namespace virtual_keyboard {
+
+class VirtualKeyboardControllerProxy;
+
+class VIRTUAL_KEYBOARD_EXPORT VirtualKeyboardController {
sadrul 2013/03/28 19:17:00 doc
bryeung 2013/04/02 15:56:53 Done.
+ public:
+ // Takes ownership of |proxy|.
+ VirtualKeyboardController(VirtualKeyboardControllerProxy* proxy);
+ virtual ~VirtualKeyboardController();
+
+ // Returns the container for the keyboard, which is owned by the
+ // VirtualKeyboardController.
+ aura::Window* Init();
sadrul 2013/03/28 19:17:00 Perhaps Init() and GetContainerWindow() should be
bryeung 2013/04/02 15:56:53 Done.
+
+ private:
+ scoped_ptr<VirtualKeyboardControllerProxy> proxy_;
+ scoped_ptr<aura::Window> container_;
+ // FIXME(bryeung): there's a crash on shutdown...maybe I don't get to own
+ // container_ once I've added it to the RootWindow?
sadrul 2013/03/28 19:17:00 By default, an aura window is owned by the parent.
bryeung 2013/04/02 15:56:53 Done.
+
+ DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardController);
+};
+
+} // namespace message_center
+
+#endif // UI_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698