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

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

Issue 2346253004: Makes display roots be destroyed by client (Closed)
Patch Set: cleanup 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_manager_client_unittest.cc ('k') | services/ui/ws/window_manager_state.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_MANAGER_DISPLAY_ROOT_H_ 5 #ifndef SERVICES_UI_WS_WINDOW_MANAGER_DISPLAY_ROOT_H_
6 #define SERVICES_UI_WS_WINDOW_MANAGER_DISPLAY_ROOT_H_ 6 #define SERVICES_UI_WS_WINDOW_MANAGER_DISPLAY_ROOT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 26 matching lines...) Expand all
37 Display* display() { return display_; } 37 Display* display() { return display_; }
38 const Display* display() const { return display_; } 38 const Display* display() const { return display_; }
39 39
40 WindowManagerState* window_manager_state() { return window_manager_state_; } 40 WindowManagerState* window_manager_state() { return window_manager_state_; }
41 const WindowManagerState* window_manager_state() const { 41 const WindowManagerState* window_manager_state() const {
42 return window_manager_state_; 42 return window_manager_state_;
43 } 43 }
44 44
45 private: 45 private:
46 friend class Display; 46 friend class Display;
47 friend class WindowManagerState;
47 48
48 WindowServer* window_server(); 49 WindowServer* window_server();
49 50
50 Display* display_; 51 Display* display_;
51 // Root ServerWindow of this WindowManagerDisplayRoot. |root_| has a parent, 52 // Root ServerWindow of this WindowManagerDisplayRoot. |root_| has a parent,
52 // the root ServerWindow of the Display. 53 // the root ServerWindow of the Display.
53 std::unique_ptr<ServerWindow> root_; 54 std::unique_ptr<ServerWindow> root_;
54 WindowManagerState* window_manager_state_ = nullptr; 55 WindowManagerState* window_manager_state_ = nullptr;
55 56
56 DISALLOW_COPY_AND_ASSIGN(WindowManagerDisplayRoot); 57 DISALLOW_COPY_AND_ASSIGN(WindowManagerDisplayRoot);
57 }; 58 };
58 59
59 } // namespace ws 60 } // namespace ws
60 } // namespace ui 61 } // namespace ui
61 62
62 #endif // SERVICES_UI_WS_WINDOW_MANAGER_DISPLAY_ROOT_H_ 63 #endif // SERVICES_UI_WS_WINDOW_MANAGER_DISPLAY_ROOT_H_
OLDNEW
« no previous file with comments | « services/ui/ws/window_manager_client_unittest.cc ('k') | services/ui/ws/window_manager_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698