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

Side by Side Diff: ash/display/virtual_keyboard_window_controller.h

Issue 47873003: Add a full screen virtual keyboard to virtual keyboard root window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 | « ash/display/display_controller.h ('k') | ash/display/virtual_keyboard_window_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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_DISPLAY_VIRTUAL_KEYBOARD_WINDOW_CONTROLLER_H_ 5 #ifndef ASH_DISPLAY_VIRTUAL_KEYBOARD_WINDOW_CONTROLLER_H_
6 #define ASH_DISPLAY_VIRTUAL_KEYBOARD_WINDOW_CONTROLLER_H_ 6 #define ASH_DISPLAY_VIRTUAL_KEYBOARD_WINDOW_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 11
12 namespace keyboard {
13 class KeyboardController;
14 }
15
12 namespace ash { 16 namespace ash {
13 17
18 namespace test {
19 class VirtualKeyboardWindowControllerTest;
20 } // namespace test
21
14 namespace internal { 22 namespace internal {
15 class DisplayInfo; 23 class DisplayInfo;
16 class RootWindowController; 24 class RootWindowController;
17 25
18 // This class maintains the RootWindowController dedicated for 26 // This class maintains the RootWindowController dedicated for
19 // virtual keyboard. 27 // virtual keyboard.
20 class ASH_EXPORT VirtualKeyboardWindowController { 28 class ASH_EXPORT VirtualKeyboardWindowController {
21 public: 29 public:
22 VirtualKeyboardWindowController(); 30 VirtualKeyboardWindowController();
23 virtual ~VirtualKeyboardWindowController(); 31 virtual ~VirtualKeyboardWindowController();
24 32
33 void ActivateKeyboard(keyboard::KeyboardController* keyboard_controller);
34
25 // Updates the root window's bounds using |display_info|. 35 // Updates the root window's bounds using |display_info|.
26 // Creates the new root window if one doesn't exist. 36 // Creates the new root window if one doesn't exist.
27 void UpdateWindow(const DisplayInfo& display_info); 37 void UpdateWindow(const DisplayInfo& display_info);
28 38
29 // Close the mirror window. 39 // Close the mirror window.
30 void Close(); 40 void Close();
31 41
32 private: 42 private:
43 friend class test::VirtualKeyboardWindowControllerTest;
44
45 RootWindowController* root_window_controller_for_test() {
46 return root_window_controller_.get();
47 }
48
33 scoped_ptr<RootWindowController> root_window_controller_; 49 scoped_ptr<RootWindowController> root_window_controller_;
34 50
35 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardWindowController); 51 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardWindowController);
36 }; 52 };
37 53
38 } // namespace internal 54 } // namespace internal
39 } // namespace ash 55 } // namespace ash
40 56
41 #endif // ASH_DISPLAY_VIRTUAL_KEYBOARD_WINDOW_CONTROLLER_H_ 57 #endif // ASH_DISPLAY_VIRTUAL_KEYBOARD_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/display/display_controller.h ('k') | ash/display/virtual_keyboard_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698