| 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 { | |
| 15 class Reflector; | |
| 16 } | |
| 17 | |
| 18 namespace ash { | 14 namespace ash { |
| 19 | 15 |
| 20 // A WTH used for unified desktop mode. This creates an offscreen | 16 // A WTH used for unified desktop mode. This creates an offscreen |
| 21 // compositor whose texture will be copied into each displays' | 17 // compositor whose texture will be copied into each displays' |
| 22 // compositor. | 18 // compositor. |
| 23 class AshWindowTreeHostUnified : public AshWindowTreeHostPlatform, | 19 class AshWindowTreeHostUnified : public AshWindowTreeHostPlatform, |
| 24 public aura::WindowObserver { | 20 public aura::WindowObserver { |
| 25 public: | 21 public: |
| 26 explicit AshWindowTreeHostUnified(const gfx::Rect& initial_bounds); | 22 explicit AshWindowTreeHostUnified(const gfx::Rect& initial_bounds); |
| 27 ~AshWindowTreeHostUnified() override; | 23 ~AshWindowTreeHostUnified() override; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 43 void OnWindowDestroying(aura::Window* window) override; | 39 void OnWindowDestroying(aura::Window* window) override; |
| 44 | 40 |
| 45 std::vector<AshWindowTreeHost*> mirroring_hosts_; | 41 std::vector<AshWindowTreeHost*> mirroring_hosts_; |
| 46 | 42 |
| 47 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostUnified); | 43 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostUnified); |
| 48 }; | 44 }; |
| 49 | 45 |
| 50 } // namespace ash | 46 } // namespace ash |
| 51 | 47 |
| 52 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_UNIFIED_H_ | 48 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_UNIFIED_H_ |
| OLD | NEW |