OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_HOST_ASH_WINDOW_TREE_HOST_UNIFIED_H_ | 5 #ifndef ASH_HOST_ASH_WINDOW_TREE_HOST_UNIFIED_H_ |
6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_UNIFIED_H_ | 6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_UNIFIED_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/host/ash_window_tree_host_platform.h" | 10 #include "ash/host/ash_window_tree_host_platform.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "ui/aura/window_observer.h" | 12 #include "ui/aura/window_observer.h" |
13 | 13 |
14 namespace ui { | 14 namespace ui { |
15 class Reflector; | 15 class Reflector; |
16 } | 16 } |
17 | 17 |
18 namespace ash { | 18 namespace ash { |
19 class DisplayInfo; | |
20 | 19 |
21 // A WTH used for unified desktop mode. This creates an offscreen | 20 // A WTH used for unified desktop mode. This creates an offscreen |
22 // compositor whose texture will be copied into each displays' | 21 // compositor whose texture will be copied into each displays' |
23 // compositor. | 22 // compositor. |
24 class AshWindowTreeHostUnified : public AshWindowTreeHostPlatform, | 23 class AshWindowTreeHostUnified : public AshWindowTreeHostPlatform, |
25 public aura::WindowObserver { | 24 public aura::WindowObserver { |
26 public: | 25 public: |
27 explicit AshWindowTreeHostUnified(const gfx::Rect& initial_bounds); | 26 explicit AshWindowTreeHostUnified(const gfx::Rect& initial_bounds); |
28 ~AshWindowTreeHostUnified() override; | 27 ~AshWindowTreeHostUnified() override; |
29 | 28 |
(...skipping 14 matching lines...) Expand all Loading... |
44 void OnWindowDestroying(aura::Window* window) override; | 43 void OnWindowDestroying(aura::Window* window) override; |
45 | 44 |
46 std::vector<AshWindowTreeHost*> mirroring_hosts_; | 45 std::vector<AshWindowTreeHost*> mirroring_hosts_; |
47 | 46 |
48 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostUnified); | 47 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostUnified); |
49 }; | 48 }; |
50 | 49 |
51 } // namespace ash | 50 } // namespace ash |
52 | 51 |
53 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_UNIFIED_H_ | 52 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_UNIFIED_H_ |
OLD | NEW |