| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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_MIRROR_WINDOW_CONTROLLER_H_ | 5 #ifndef ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_ |
| 6 #define ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_ | 6 #define ASH_DISPLAY_MIRROR_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/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "ui/aura/window_tree_host.h" | 12 #include "ui/aura/window_tree_host.h" |
| 13 #include "ui/aura/window_tree_host_observer.h" | 13 #include "ui/aura/window_tree_host_observer.h" |
| 14 #include "ui/gfx/display.h" | 14 #include "ui/gfx/display.h" |
| 15 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
| 16 #include "ui/gfx/point.h" | 16 #include "ui/gfx/point.h" |
| 17 #include "ui/gfx/size.h" | 17 #include "ui/gfx/size.h" |
| 18 | 18 |
| 19 namespace aura { | 19 namespace aura { |
| 20 class RootWindowTransformer; | 20 class RootWindowTransformer; |
| 21 class Window; | 21 class Window; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace ui { | 24 namespace ui { |
| 25 class Reflector; | 25 class Reflector; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace ash { | 28 namespace ash { |
| 29 class DisplayInfo; |
| 30 |
| 29 namespace test{ | 31 namespace test{ |
| 30 class MirrorWindowTestApi; | 32 class MirrorWindowTestApi; |
| 31 } | 33 } |
| 32 | 34 |
| 33 namespace internal { | |
| 34 class DisplayInfo; | |
| 35 | |
| 36 // An object that copies the content of the primary root window to a | 35 // An object that copies the content of the primary root window to a |
| 37 // mirror window. This also draws a mouse cursor as the mouse cursor | 36 // mirror window. This also draws a mouse cursor as the mouse cursor |
| 38 // is typically drawn by the window system. | 37 // is typically drawn by the window system. |
| 39 class ASH_EXPORT MirrorWindowController : public aura::WindowTreeHostObserver { | 38 class ASH_EXPORT MirrorWindowController : public aura::WindowTreeHostObserver { |
| 40 public: | 39 public: |
| 41 MirrorWindowController(); | 40 MirrorWindowController(); |
| 42 virtual ~MirrorWindowController(); | 41 virtual ~MirrorWindowController(); |
| 43 | 42 |
| 44 // Updates the root window's bounds using |display_info|. | 43 // Updates the root window's bounds using |display_info|. |
| 45 // Creates the new root window if one doesn't exist. | 44 // Creates the new root window if one doesn't exist. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 64 // configuration. | 63 // configuration. |
| 65 scoped_ptr<aura::RootWindowTransformer> CreateRootWindowTransformer() const; | 64 scoped_ptr<aura::RootWindowTransformer> CreateRootWindowTransformer() const; |
| 66 | 65 |
| 67 scoped_ptr<aura::WindowTreeHost> host_; | 66 scoped_ptr<aura::WindowTreeHost> host_; |
| 68 gfx::Size mirror_window_host_size_; | 67 gfx::Size mirror_window_host_size_; |
| 69 scoped_refptr<ui::Reflector> reflector_; | 68 scoped_refptr<ui::Reflector> reflector_; |
| 70 | 69 |
| 71 DISALLOW_COPY_AND_ASSIGN(MirrorWindowController); | 70 DISALLOW_COPY_AND_ASSIGN(MirrorWindowController); |
| 72 }; | 71 }; |
| 73 | 72 |
| 74 } // namespace internal | |
| 75 } // namespace ash | 73 } // namespace ash |
| 76 | 74 |
| 77 #endif // ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_ | 75 #endif // ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_ |
| OLD | NEW |