OLD | NEW |
---|---|
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 |
14 namespace internal { | 18 namespace internal { |
15 class DisplayInfo; | 19 class DisplayInfo; |
16 class RootWindowController; | 20 class RootWindowController; |
17 | 21 |
18 // This class maintains the RootWindowController dedicated for | 22 // This class maintains the RootWindowController dedicated for |
19 // virtual keyboard. | 23 // virtual keyboard. |
20 class ASH_EXPORT VirtualKeyboardWindowController { | 24 class ASH_EXPORT VirtualKeyboardWindowController { |
21 public: | 25 public: |
22 VirtualKeyboardWindowController(); | 26 VirtualKeyboardWindowController(); |
23 virtual ~VirtualKeyboardWindowController(); | 27 virtual ~VirtualKeyboardWindowController(); |
24 | 28 |
29 RootWindowController* root_window_controller() { | |
30 return root_window_controller_.get(); | |
oshima
2013/11/14 00:37:06
Is this used only for test?
If so, can you rename
bshe
2013/11/14 17:01:50
Done.
| |
31 } | |
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: |
33 scoped_ptr<RootWindowController> root_window_controller_; | 43 scoped_ptr<RootWindowController> root_window_controller_; |
34 | 44 |
35 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardWindowController); | 45 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardWindowController); |
36 }; | 46 }; |
37 | 47 |
38 } // namespace internal | 48 } // namespace internal |
39 } // namespace ash | 49 } // namespace ash |
40 | 50 |
41 #endif // ASH_DISPLAY_VIRTUAL_KEYBOARD_WINDOW_CONTROLLER_H_ | 51 #endif // ASH_DISPLAY_VIRTUAL_KEYBOARD_WINDOW_CONTROLLER_H_ |
OLD | NEW |