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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 WindowManagerState* window_manager_state() { | 142 WindowManagerState* window_manager_state() { |
143 return window_manager_state_.get(); | 143 return window_manager_state_.get(); |
144 } | 144 } |
145 | 145 |
146 DisplayManager* display_manager(); | 146 DisplayManager* display_manager(); |
147 const DisplayManager* display_manager() const; | 147 const DisplayManager* display_manager() const; |
148 | 148 |
149 WindowServer* window_server() { return window_server_; } | 149 WindowServer* window_server() { return window_server_; } |
150 const WindowServer* window_server() const { return window_server_; } | 150 const WindowServer* window_server() const { return window_server_; } |
151 | 151 |
| 152 // Calls WindowTreeClient::OnEmbed. |
| 153 void DoOnEmbed(mojom::WindowTreePtr tree, ServerWindow* root); |
| 154 |
152 // Called from ~WindowServer. Reset WindowTreeClient so that it no longer gets | 155 // Called from ~WindowServer. Reset WindowTreeClient so that it no longer gets |
153 // any messages. | 156 // any messages. |
154 void PrepareForWindowServerShutdown(); | 157 void PrepareForWindowServerShutdown(); |
155 | 158 |
| 159 // Adds a new root to this tree. |
| 160 void AddRoot(const ServerWindow* root); |
| 161 |
156 // Adds a new root to this tree. This is only valid for window managers. | 162 // Adds a new root to this tree. This is only valid for window managers. |
157 void AddRootForWindowManager(const ServerWindow* root); | 163 void AddRootForWindowManager(const ServerWindow* root); |
158 | 164 |
159 // Invoked when a tree is about to be destroyed. | 165 // Invoked when a tree is about to be destroyed. |
160 void OnWindowDestroyingTreeImpl(WindowTree* tree); | 166 void OnWindowDestroyingTreeImpl(WindowTree* tree); |
161 | 167 |
162 // Sends updated display information. | 168 // Sends updated display information. |
163 void OnWmDisplayModified(const display::Display& display); | 169 void OnWmDisplayModified(const display::Display& display); |
164 | 170 |
165 // These functions are synchronous variants of those defined in the mojom. The | 171 // These functions are synchronous variants of those defined in the mojom. The |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 waiting_for_top_level_window_info_; | 584 waiting_for_top_level_window_info_; |
579 bool embedder_intercepts_events_ = false; | 585 bool embedder_intercepts_events_ = false; |
580 | 586 |
581 DISALLOW_COPY_AND_ASSIGN(WindowTree); | 587 DISALLOW_COPY_AND_ASSIGN(WindowTree); |
582 }; | 588 }; |
583 | 589 |
584 } // namespace ws | 590 } // namespace ws |
585 } // namespace ui | 591 } // namespace ui |
586 | 592 |
587 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ | 593 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ |
OLD | NEW |