| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_MUS_WS_WINDOW_TREE_H_ | 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_H_ |
| 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_ | 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <queue> | 11 #include <queue> |
| 12 #include <set> | 12 #include <set> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/containers/hash_tables.h" | 16 #include "base/containers/hash_tables.h" |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/ref_counted.h" | |
| 19 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
| 20 #include "components/mus/public/interfaces/surface_id.mojom.h" | 19 #include "components/mus/public/interfaces/surface_id.mojom.h" |
| 21 #include "components/mus/public/interfaces/window_tree.mojom.h" | 20 #include "components/mus/public/interfaces/window_tree.mojom.h" |
| 22 #include "components/mus/ws/access_policy_delegate.h" | 21 #include "components/mus/ws/access_policy_delegate.h" |
| 23 #include "components/mus/ws/ids.h" | 22 #include "components/mus/ws/ids.h" |
| 24 #include "components/mus/ws/window_tree_binding.h" | 23 #include "components/mus/ws/window_tree_binding.h" |
| 25 #include "mojo/public/cpp/bindings/associated_binding.h" | 24 #include "mojo/public/cpp/bindings/associated_binding.h" |
| 26 | 25 |
| 27 namespace gfx { | 26 namespace gfx { |
| 28 class Insets; | 27 class Insets; |
| 29 class Rect; | 28 class Rect; |
| 30 } | 29 } |
| 31 | 30 |
| 32 namespace mus { | 31 namespace mus { |
| 33 namespace ws { | 32 namespace ws { |
| 34 | 33 |
| 35 class AccessPolicy; | 34 class AccessPolicy; |
| 36 class ConnectionManager; | 35 class ConnectionManager; |
| 37 class DisplayManager; | 36 class DisplayManager; |
| 38 class Display; | 37 class Display; |
| 39 class ServerWindow; | 38 class ServerWindow; |
| 40 class TargetedEvent; | 39 class TargetedEvent; |
| 40 class WindowManagerState; |
| 41 class WindowTreeTest; | 41 class WindowTreeTest; |
| 42 | 42 |
| 43 namespace test { | 43 namespace test { |
| 44 class WindowTreeTestApi; | 44 class WindowTreeTestApi; |
| 45 } | 45 } |
| 46 | 46 |
| 47 // WindowTree represents a view onto portions of the window tree. The parts of | 47 // WindowTree represents a view onto portions of the window tree. The parts of |
| 48 // the tree exposed to the client start at the root windows. A WindowTree may | 48 // the tree exposed to the client start at the root windows. A WindowTree may |
| 49 // have any number of roots (including none). A WindowTree may not have | 49 // have any number of roots (including none). A WindowTree may not have |
| 50 // visibility of all the descendants of its roots. | 50 // visibility of all the descendants of its roots. |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 211 |
| 212 // Another connection is being embedded in the window. | 212 // Another connection is being embedded in the window. |
| 213 EMBED, | 213 EMBED, |
| 214 }; | 214 }; |
| 215 | 215 |
| 216 DisplayManager* display_manager(); | 216 DisplayManager* display_manager(); |
| 217 const DisplayManager* display_manager() const; | 217 const DisplayManager* display_manager() const; |
| 218 | 218 |
| 219 // Used when this tree is the window manager. | 219 // Used when this tree is the window manager. |
| 220 Display* GetDisplayForWindowManager(); | 220 Display* GetDisplayForWindowManager(); |
| 221 WindowManagerState* GetWindowManagerStateForWindowManager(); |
| 221 | 222 |
| 222 bool ShouldRouteToWindowManager(const ServerWindow* window) const; | 223 bool ShouldRouteToWindowManager(const ServerWindow* window) const; |
| 223 | 224 |
| 224 ClientWindowId ClientWindowIdForWindow(const ServerWindow* window) const; | 225 ClientWindowId ClientWindowIdForWindow(const ServerWindow* window) const; |
| 225 | 226 |
| 226 // Returns true if |id| is a valid WindowId for a new window. | 227 // Returns true if |id| is a valid WindowId for a new window. |
| 227 bool IsValidIdForNewWindow(const ClientWindowId& id) const; | 228 bool IsValidIdForNewWindow(const ClientWindowId& id) const; |
| 228 | 229 |
| 229 WindowId GenerateNewWindowId(); | 230 WindowId GenerateNewWindowId(); |
| 230 | 231 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 | 419 |
| 419 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; | 420 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; |
| 420 | 421 |
| 421 DISALLOW_COPY_AND_ASSIGN(WindowTree); | 422 DISALLOW_COPY_AND_ASSIGN(WindowTree); |
| 422 }; | 423 }; |
| 423 | 424 |
| 424 } // namespace ws | 425 } // namespace ws |
| 425 } // namespace mus | 426 } // namespace mus |
| 426 | 427 |
| 427 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ | 428 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ |
| OLD | NEW |