| 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 SERVICES_UI_WS_WINDOW_TREE_H_ | 5 #ifndef SERVICES_UI_WS_WINDOW_TREE_H_ |
| 6 #define SERVICES_UI_WS_WINDOW_TREE_H_ | 6 #define SERVICES_UI_WS_WINDOW_TREE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 } | 111 } |
| 112 // Returns whether |window| is known to this tree. If |window| is known and | 112 // Returns whether |window| is known to this tree. If |window| is known and |
| 113 // |client_window_id| is non-null |client_window_id| is set to the | 113 // |client_window_id| is non-null |client_window_id| is set to the |
| 114 // ClientWindowId of the window. | 114 // ClientWindowId of the window. |
| 115 bool IsWindowKnown(const ServerWindow* window, | 115 bool IsWindowKnown(const ServerWindow* window, |
| 116 ClientWindowId* client_window_id) const; | 116 ClientWindowId* client_window_id) const; |
| 117 | 117 |
| 118 // Returns true if |window| is one of this trees roots. | 118 // Returns true if |window| is one of this trees roots. |
| 119 bool HasRoot(const ServerWindow* window) const; | 119 bool HasRoot(const ServerWindow* window) const; |
| 120 | 120 |
| 121 // Find the correct root for |window| in this tree's roots. |
| 122 const ServerWindow* FindRootFor(const ServerWindow* window) const; |
| 123 |
| 121 std::set<const ServerWindow*> roots() { return roots_; } | 124 std::set<const ServerWindow*> roots() { return roots_; } |
| 122 | 125 |
| 123 void set_name(const std::string& name) { name_ = name; } | 126 void set_name(const std::string& name) { name_ = name; } |
| 124 const std::string& name() const { return name_; } | 127 const std::string& name() const { return name_; } |
| 125 | 128 |
| 126 bool janky() const { return janky_; } | 129 bool janky() const { return janky_; } |
| 127 | 130 |
| 128 const Display* GetDisplay(const ServerWindow* window) const; | 131 const Display* GetDisplay(const ServerWindow* window) const; |
| 129 Display* GetDisplay(const ServerWindow* window) { | 132 Display* GetDisplay(const ServerWindow* window) { |
| 130 return const_cast<Display*>( | 133 return const_cast<Display*>( |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 waiting_for_top_level_window_info_; | 585 waiting_for_top_level_window_info_; |
| 583 bool embedder_intercepts_events_ = false; | 586 bool embedder_intercepts_events_ = false; |
| 584 | 587 |
| 585 DISALLOW_COPY_AND_ASSIGN(WindowTree); | 588 DISALLOW_COPY_AND_ASSIGN(WindowTree); |
| 586 }; | 589 }; |
| 587 | 590 |
| 588 } // namespace ws | 591 } // namespace ws |
| 589 } // namespace ui | 592 } // namespace ui |
| 590 | 593 |
| 591 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ | 594 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ |
| OLD | NEW |