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

Side by Side 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, 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_CONTROLLER_H_
6 #define UI_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_CONTROLLER_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ui/virtual_keyboard/virtual_keyboard_export.h"
11
12 namespace aura {
13 class Window;
14 } // namespace aura
15
16 namespace virtual_keyboard {
17
18 class VirtualKeyboardControllerProxy;
19
20 class VIRTUAL_KEYBOARD_EXPORT VirtualKeyboardController {
sadrul 2013/03/28 19:17:00 doc
bryeung 2013/04/02 15:56:53 Done.
21 public:
22 // Takes ownership of |proxy|.
23 VirtualKeyboardController(VirtualKeyboardControllerProxy* proxy);
24 virtual ~VirtualKeyboardController();
25
26 // Returns the container for the keyboard, which is owned by the
27 // VirtualKeyboardController.
28 aura::Window* Init();
sadrul 2013/03/28 19:17:00 Perhaps Init() and GetContainerWindow() should be
bryeung 2013/04/02 15:56:53 Done.
29
30 private:
31 scoped_ptr<VirtualKeyboardControllerProxy> proxy_;
32 scoped_ptr<aura::Window> container_;
33 // FIXME(bryeung): there's a crash on shutdown...maybe I don't get to own
34 // 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.
35
36 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardController);
37 };
38
39 } // namespace message_center
40
41 #endif // UI_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698