| 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> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 namespace gfx { | 27 namespace gfx { |
| 28 class Insets; | 28 class Insets; |
| 29 class Rect; | 29 class Rect; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace mus { | 32 namespace mus { |
| 33 namespace ws { | 33 namespace ws { |
| 34 | 34 |
| 35 class AccessPolicy; | 35 class AccessPolicy; |
| 36 class ConnectionManager; | 36 class ConnectionManager; |
| 37 class DisplayManager; |
| 37 class Display; | 38 class Display; |
| 38 class ServerWindow; | 39 class ServerWindow; |
| 39 class TargetedEvent; | 40 class TargetedEvent; |
| 40 class WindowTreeTest; | 41 class WindowTreeTest; |
| 41 | 42 |
| 42 namespace test { | 43 namespace test { |
| 43 class WindowTreeTestApi; | 44 class WindowTreeTestApi; |
| 44 } | 45 } |
| 45 | 46 |
| 46 // 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 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 }; | 206 }; |
| 206 | 207 |
| 207 enum class RemoveRootReason { | 208 enum class RemoveRootReason { |
| 208 // The window is being removed. | 209 // The window is being removed. |
| 209 DELETED, | 210 DELETED, |
| 210 | 211 |
| 211 // Another connection is being embedded in the window. | 212 // Another connection is being embedded in the window. |
| 212 EMBED, | 213 EMBED, |
| 213 }; | 214 }; |
| 214 | 215 |
| 216 DisplayManager* display_manager(); |
| 217 const DisplayManager* display_manager() const; |
| 218 |
| 215 // Used when this tree is the window manager. | 219 // Used when this tree is the window manager. |
| 216 Display* GetDisplayForWindowManager(); | 220 Display* GetDisplayForWindowManager(); |
| 217 | 221 |
| 218 bool ShouldRouteToWindowManager(const ServerWindow* window) const; | 222 bool ShouldRouteToWindowManager(const ServerWindow* window) const; |
| 219 | 223 |
| 220 ClientWindowId ClientWindowIdForWindow(const ServerWindow* window) const; | 224 ClientWindowId ClientWindowIdForWindow(const ServerWindow* window) const; |
| 221 | 225 |
| 222 // Returns true if |id| is a valid WindowId for a new window. | 226 // Returns true if |id| is a valid WindowId for a new window. |
| 223 bool IsValidIdForNewWindow(const ClientWindowId& id) const; | 227 bool IsValidIdForNewWindow(const ClientWindowId& id) const; |
| 224 | 228 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 | 418 |
| 415 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; | 419 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; |
| 416 | 420 |
| 417 DISALLOW_COPY_AND_ASSIGN(WindowTree); | 421 DISALLOW_COPY_AND_ASSIGN(WindowTree); |
| 418 }; | 422 }; |
| 419 | 423 |
| 420 } // namespace ws | 424 } // namespace ws |
| 421 } // namespace mus | 425 } // namespace mus |
| 422 | 426 |
| 423 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ | 427 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ |
| OLD | NEW |