- add sources.
[platform/framework/web/crosswalk.git] / src / ash / display / virtual_keyboard_window_controller.h
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.
4
5 #ifndef ASH_DISPLAY_VIRTUAL_KEYBOARD_WINDOW_CONTROLLER_H_
6 #define ASH_DISPLAY_VIRTUAL_KEYBOARD_WINDOW_CONTROLLER_H_
7
8 #include "ash/ash_export.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
11
12 namespace ash {
13
14 namespace internal {
15 class DisplayInfo;
16 class RootWindowController;
17
18 // This class maintains the RootWindowController dedicated for
19 // virtual keyboard.
20 class ASH_EXPORT VirtualKeyboardWindowController {
21  public:
22   VirtualKeyboardWindowController();
23   virtual ~VirtualKeyboardWindowController();
24
25   // Updates the root window's bounds using |display_info|.
26   // Creates the new root window if one doesn't exist.
27   void UpdateWindow(const DisplayInfo& display_info);
28
29   // Close the mirror window.
30   void Close();
31
32  private:
33   scoped_ptr<RootWindowController> root_window_controller_;
34
35   DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardWindowController);
36 };
37
38 }  // namespace internal
39 }  // namespace ash
40
41 #endif  // ASH_DISPLAY_VIRTUAL_KEYBOARD_WINDOW_CONTROLLER_H_