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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // Called from ~WindowServer. Reset WindowTreeClient so that it no longer gets | 154 // Called from ~WindowServer. Reset WindowTreeClient so that it no longer gets |
155 // any messages. | 155 // any messages. |
156 void PrepareForWindowServerShutdown(); | 156 void PrepareForWindowServerShutdown(); |
157 | 157 |
158 // Adds a new root to this tree. This is only valid for window managers. | 158 // Adds a new root to this tree. This is only valid for window managers. |
159 void AddRootForWindowManager(const ServerWindow* root); | 159 void AddRootForWindowManager(const ServerWindow* root); |
160 | 160 |
161 // Invoked when a tree is about to be destroyed. | 161 // Invoked when a tree is about to be destroyed. |
162 void OnWindowDestroyingTreeImpl(WindowTree* tree); | 162 void OnWindowDestroyingTreeImpl(WindowTree* tree); |
163 | 163 |
| 164 // Sends updated display information. |
| 165 void OnWmDisplayModified(const display::Display& display); |
| 166 |
164 // These functions are synchronous variants of those defined in the mojom. The | 167 // These functions are synchronous variants of those defined in the mojom. The |
165 // WindowTree implementations all call into these. See the mojom for details. | 168 // WindowTree implementations all call into these. See the mojom for details. |
166 bool SetCapture(const ClientWindowId& client_window_id); | 169 bool SetCapture(const ClientWindowId& client_window_id); |
167 bool ReleaseCapture(const ClientWindowId& client_window_id); | 170 bool ReleaseCapture(const ClientWindowId& client_window_id); |
168 bool NewWindow(const ClientWindowId& client_window_id, | 171 bool NewWindow(const ClientWindowId& client_window_id, |
169 const std::map<std::string, std::vector<uint8_t>>& properties); | 172 const std::map<std::string, std::vector<uint8_t>>& properties); |
170 bool AddWindow(const ClientWindowId& parent_id, | 173 bool AddWindow(const ClientWindowId& parent_id, |
171 const ClientWindowId& child_id); | 174 const ClientWindowId& child_id); |
172 bool AddTransientWindow(const ClientWindowId& window_id, | 175 bool AddTransientWindow(const ClientWindowId& window_id, |
173 const ClientWindowId& transient_window_id); | 176 const ClientWindowId& transient_window_id); |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 waiting_for_top_level_window_info_; | 576 waiting_for_top_level_window_info_; |
574 bool embedder_intercepts_events_ = false; | 577 bool embedder_intercepts_events_ = false; |
575 | 578 |
576 DISALLOW_COPY_AND_ASSIGN(WindowTree); | 579 DISALLOW_COPY_AND_ASSIGN(WindowTree); |
577 }; | 580 }; |
578 | 581 |
579 } // namespace ws | 582 } // namespace ws |
580 } // namespace ui | 583 } // namespace ui |
581 | 584 |
582 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ | 585 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ |
OLD | NEW |