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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/keyboard/keyboard.gyp ('k') | ui/keyboard/keyboard_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_KEYBOARD_KEYBOARD_CONTROLLER_H_
6 #define UI_KEYBOARD_KEYBOARD_CONTROLLER_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ui/keyboard/keyboard_export.h"
11
12 namespace aura {
13 class Window;
14 }
15
16 namespace keyboard {
17
18 class KeyboardControllerProxy;
19
20 // Provides control of the virtual keyboard, including providing a container,
21 // managing object lifetimes and controlling visibility.
22 class KEYBOARD_EXPORT KeyboardController {
23 public:
24 // Takes ownership of |proxy|.
25 explicit KeyboardController(KeyboardControllerProxy* proxy);
26 virtual ~KeyboardController();
27
28 // Returns the container for the keyboard, which is then owned by the caller.
29 // It is the responsibility of the caller to Show() the returned window.
30 aura::Window* GetContainerWindow();
31
32 private:
33 scoped_ptr<KeyboardControllerProxy> proxy_;
34 aura::Window* container_;
35
36 DISALLOW_COPY_AND_ASSIGN(KeyboardController);
37 };
38
39 } // namespace keyboard
40
41 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_H_
OLDNEW
« 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