Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 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_MIRROR_WINDOW_CONTROLLER_H_ | |
| 6 #define ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_ | |
| 7 | |
| 8 #include "ash/ash_export.h" | |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "base/memory/scoped_ptr.h" | |
| 11 #include "ui/gfx/native_widget_types.h" | |
| 12 #include "ui/gfx/point.h" | |
| 13 | |
| 14 namespace aura { | |
| 15 class RootWindow; | |
| 16 class Window; | |
| 17 } | |
| 18 | |
| 19 namespace ash { | |
| 20 namespace test{ | |
| 21 class MirrorWindowTestApi; | |
| 22 } | |
| 23 | |
| 24 namespace internal { | |
| 25 class DisplayInfo; | |
| 26 class CursorWindowDelegate; | |
| 27 | |
| 28 class MirrorWindowController { | |
| 29 public: | |
| 30 MirrorWindowController(); | |
| 31 ~MirrorWindowController(); | |
| 32 | |
| 33 // Updates the root window's bounds using |dispaly_info|. | |
|
James Cook
2013/05/21 08:07:41
dispaly_info -> display_info
oshima
2013/05/21 14:41:50
Done.
| |
| 34 // Creates the new root window if one doesn't exist. | |
| 35 void UpdateWindow(const DisplayInfo& display_info); | |
| 36 | |
| 37 void Close(); | |
| 38 | |
| 39 // Updates the mirrored cursor location,shape and | |
| 40 // visibility. | |
| 41 void UpdateCursorLocation(); | |
| 42 void SetMirroredCursor(gfx::NativeCursor cursor); | |
| 43 void SetMirroredCursorVisibility(bool visible); | |
| 44 | |
| 45 private: | |
| 46 friend class test::MirrorWindowTestApi; | |
| 47 | |
| 48 int current_cursor_type_; | |
| 49 aura::Window* cursor_window_; // owned by root window. | |
| 50 scoped_ptr<aura::RootWindow> root_window_; | |
| 51 scoped_ptr<CursorWindowDelegate> cursor_window_delegate_; | |
| 52 gfx::Point hot_point_; | |
| 53 | |
| 54 DISALLOW_COPY_AND_ASSIGN(MirrorWindowController); | |
| 55 }; | |
| 56 | |
| 57 } // namespace internal | |
| 58 } // namespace ash | |
| 59 | |
| 60 #endif // ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_ | |
| OLD | NEW |