Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: services/ui/ws/window_tree.h

Issue 2352893002: Makes windowserver not send messages during shutdown (Closed)
Patch Set: merge Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/ui/ws/window_server.cc ('k') | services/ui/ws/window_tree.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 WindowManagerState* window_manager_state() { 144 WindowManagerState* window_manager_state() {
145 return window_manager_state_.get(); 145 return window_manager_state_.get();
146 } 146 }
147 147
148 DisplayManager* display_manager(); 148 DisplayManager* display_manager();
149 const DisplayManager* display_manager() const; 149 const DisplayManager* display_manager() const;
150 150
151 WindowServer* window_server() { return window_server_; } 151 WindowServer* window_server() { return window_server_; }
152 const WindowServer* window_server() const { return window_server_; } 152 const WindowServer* window_server() const { return window_server_; }
153 153
154 // Called from ~WindowServer. Reset WindowTreeClient so that it no longer gets
155 // any messages.
156 void PrepareForWindowServerShutdown();
157
154 // 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.
155 void AddRootForWindowManager(const ServerWindow* root); 159 void AddRootForWindowManager(const ServerWindow* root);
156 160
157 // Invoked when a tree is about to be destroyed. 161 // Invoked when a tree is about to be destroyed.
158 void OnWindowDestroyingTreeImpl(WindowTree* tree); 162 void OnWindowDestroyingTreeImpl(WindowTree* tree);
159 163
160 // These functions are synchronous variants of those defined in the mojom. The 164 // These functions are synchronous variants of those defined in the mojom. The
161 // WindowTree implementations all call into these. See the mojom for details. 165 // WindowTree implementations all call into these. See the mojom for details.
162 bool SetCapture(const ClientWindowId& client_window_id); 166 bool SetCapture(const ClientWindowId& client_window_id);
163 bool ReleaseCapture(const ClientWindowId& client_window_id); 167 bool ReleaseCapture(const ClientWindowId& client_window_id);
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 waiting_for_top_level_window_info_; 567 waiting_for_top_level_window_info_;
564 bool embedder_intercepts_events_ = false; 568 bool embedder_intercepts_events_ = false;
565 569
566 DISALLOW_COPY_AND_ASSIGN(WindowTree); 570 DISALLOW_COPY_AND_ASSIGN(WindowTree);
567 }; 571 };
568 572
569 } // namespace ws 573 } // namespace ws
570 } // namespace ui 574 } // namespace ui
571 575
572 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ 576 #endif // SERVICES_UI_WS_WINDOW_TREE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/window_server.cc ('k') | services/ui/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698