| 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 ash { | 12 namespace ash { |
| 13 | 13 |
| 14 namespace internal { | 14 namespace internal { |
| 15 class DisplayInfo; | 15 class DisplayInfo; |
| 16 class RootWindowController; | 16 class RootWindowController; |
| 17 | 17 |
| 18 // This class maintains the RootWindowController dedicated for | 18 // This class maintains the RootWindowController dedicated for |
| 19 // virtual keyboard. | 19 // virtual keyboard. |
| 20 class ASH_EXPORT VirtualKeyboardWindowController { | 20 class ASH_EXPORT VirtualKeyboardWindowController { |
| 21 public: | 21 public: |
| 22 VirtualKeyboardWindowController(); | 22 VirtualKeyboardWindowController(); |
| 23 virtual ~VirtualKeyboardWindowController(); | 23 virtual ~VirtualKeyboardWindowController(); |
| 24 | 24 |
| 25 RootWindowController* root_window_controller() { |
| 26 return root_window_controller_.get(); |
| 27 } |
| 28 |
| 25 // Updates the root window's bounds using |display_info|. | 29 // Updates the root window's bounds using |display_info|. |
| 26 // Creates the new root window if one doesn't exist. | 30 // Creates the new root window if one doesn't exist. |
| 27 void UpdateWindow(const DisplayInfo& display_info); | 31 void UpdateWindow(const DisplayInfo& display_info); |
| 28 | 32 |
| 29 // Close the mirror window. | 33 // Close the mirror window. |
| 30 void Close(); | 34 void Close(); |
| 31 | 35 |
| 32 private: | 36 private: |
| 33 scoped_ptr<RootWindowController> root_window_controller_; | 37 scoped_ptr<RootWindowController> root_window_controller_; |
| 34 | 38 |
| 35 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardWindowController); | 39 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardWindowController); |
| 36 }; | 40 }; |
| 37 | 41 |
| 38 } // namespace internal | 42 } // namespace internal |
| 39 } // namespace ash | 43 } // namespace ash |
| 40 | 44 |
| 41 #endif // ASH_DISPLAY_VIRTUAL_KEYBOARD_WINDOW_CONTROLLER_H_ | 45 #endif // ASH_DISPLAY_VIRTUAL_KEYBOARD_WINDOW_CONTROLLER_H_ |
| OLD | NEW |