| 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 "ash/shell_observer.h" | 9 #include "ash/shell_observer.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "ui/gfx/display.h" | 12 #include "ui/gfx/display.h" |
| 13 | 13 |
| 14 namespace keyboard { | 14 namespace keyboard { |
| 15 class KeyboardController; | 15 class KeyboardController; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace ash { | 18 namespace ash { |
| 19 class DisplayInfo; |
| 20 class RootWindowController; |
| 19 | 21 |
| 20 namespace test { | 22 namespace test { |
| 21 class VirtualKeyboardWindowControllerTest; | 23 class VirtualKeyboardWindowControllerTest; |
| 22 } // namespace test | 24 } // namespace test |
| 23 | 25 |
| 24 namespace internal { | |
| 25 class DisplayInfo; | |
| 26 class RootWindowController; | |
| 27 | |
| 28 // This class maintains the RootWindowController dedicated for | 26 // This class maintains the RootWindowController dedicated for |
| 29 // virtual keyboard. | 27 // virtual keyboard. |
| 30 class ASH_EXPORT VirtualKeyboardWindowController : public ShellObserver { | 28 class ASH_EXPORT VirtualKeyboardWindowController : public ShellObserver { |
| 31 public: | 29 public: |
| 32 VirtualKeyboardWindowController(); | 30 VirtualKeyboardWindowController(); |
| 33 virtual ~VirtualKeyboardWindowController(); | 31 virtual ~VirtualKeyboardWindowController(); |
| 34 | 32 |
| 35 void ActivateKeyboard(keyboard::KeyboardController* keyboard_controller); | 33 void ActivateKeyboard(keyboard::KeyboardController* keyboard_controller); |
| 36 | 34 |
| 37 // Updates the root window's bounds using |display_info|. | 35 // Updates the root window's bounds using |display_info|. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 53 | 51 |
| 54 RootWindowController* root_window_controller_for_test() { | 52 RootWindowController* root_window_controller_for_test() { |
| 55 return root_window_controller_.get(); | 53 return root_window_controller_.get(); |
| 56 } | 54 } |
| 57 | 55 |
| 58 scoped_ptr<RootWindowController> root_window_controller_; | 56 scoped_ptr<RootWindowController> root_window_controller_; |
| 59 | 57 |
| 60 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardWindowController); | 58 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardWindowController); |
| 61 }; | 59 }; |
| 62 | 60 |
| 63 } // namespace internal | |
| 64 } // namespace ash | 61 } // namespace ash |
| 65 | 62 |
| 66 #endif // ASH_DISPLAY_VIRTUAL_KEYBOARD_WINDOW_CONTROLLER_H_ | 63 #endif // ASH_DISPLAY_VIRTUAL_KEYBOARD_WINDOW_CONTROLLER_H_ |
| OLD | NEW |