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
3 // found in the LICENSE file.
5 #ifndef ASH_DISPLAY_VIRTUAL_KEYBOARD_WINDOW_CONTROLLER_H_
6 #define ASH_DISPLAY_VIRTUAL_KEYBOARD_WINDOW_CONTROLLER_H_
8 #include "ash/ash_export.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "ui/gfx/display.h"
14 class KeyboardController
;
20 class VirtualKeyboardWindowControllerTest
;
25 class RootWindowController
;
27 // This class maintains the RootWindowController dedicated for
29 class ASH_EXPORT VirtualKeyboardWindowController
{
31 VirtualKeyboardWindowController();
32 virtual ~VirtualKeyboardWindowController();
34 void ActivateKeyboard(keyboard::KeyboardController
* keyboard_controller
);
36 // Updates the root window's bounds using |display_info|.
37 // Creates the new root window if one doesn't exist.
38 void UpdateWindow(const DisplayInfo
& display_info
);
40 // Close the mirror window.
44 friend class test::VirtualKeyboardWindowControllerTest
;
46 // Rotates virtual keyboard display by 180 degrees.
49 RootWindowController
* root_window_controller_for_test() {
50 return root_window_controller_
.get();
53 scoped_ptr
<RootWindowController
> root_window_controller_
;
55 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardWindowController
);
58 } // namespace internal
61 #endif // ASH_DISPLAY_VIRTUAL_KEYBOARD_WINDOW_CONTROLLER_H_