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

Side by Side Diff: services/ui/ws/display.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/test_wm/test_wm.cc ('k') | services/ui/ws/display.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_DISPLAY_H_ 5 #ifndef SERVICES_UI_WS_DISPLAY_H_
6 #define SERVICES_UI_WS_DISPLAY_H_ 6 #define SERVICES_UI_WS_DISPLAY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 void UpdateNativeCursor(int32_t cursor_id); 148 void UpdateNativeCursor(int32_t cursor_id);
149 149
150 // mojom::WindowTreeHost: 150 // mojom::WindowTreeHost:
151 void SetSize(const gfx::Size& size) override; 151 void SetSize(const gfx::Size& size) override;
152 void SetTitle(const mojo::String& title) override; 152 void SetTitle(const mojo::String& title) override;
153 153
154 private: 154 private:
155 friend class test::DisplayTestApi; 155 friend class test::DisplayTestApi;
156 156
157 using WindowManagerDisplayRootMap = 157 using WindowManagerDisplayRootMap =
158 std::map<UserId, std::unique_ptr<WindowManagerDisplayRoot>>; 158 std::map<UserId, WindowManagerDisplayRoot*>;
159 159
160 // Inits the necessary state once the display is ready. 160 // Inits the necessary state once the display is ready.
161 void InitWindowManagerDisplayRootsIfNecessary(); 161 void InitWindowManagerDisplayRootsIfNecessary();
162 162
163 // Creates the set of WindowManagerDisplayRoots from the 163 // Creates the set of WindowManagerDisplayRoots from the
164 // WindowManagerWindowTreeFactorySet. 164 // WindowManagerWindowTreeFactorySet.
165 void CreateWindowManagerDisplayRootsFromFactories(); 165 void CreateWindowManagerDisplayRootsFromFactories();
166 166
167 void CreateWindowManagerDisplayRootFromFactory( 167 void CreateWindowManagerDisplayRootFromFactory(
168 WindowManagerWindowTreeFactory* factory); 168 WindowManagerWindowTreeFactory* factory);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 WindowManagerDisplayRootMap window_manager_display_root_map_; 217 WindowManagerDisplayRootMap window_manager_display_root_map_;
218 218
219 DISALLOW_COPY_AND_ASSIGN(Display); 219 DISALLOW_COPY_AND_ASSIGN(Display);
220 }; 220 };
221 221
222 } // namespace ws 222 } // namespace ws
223 } // namespace ui 223 } // namespace ui
224 224
225 #endif // SERVICES_UI_WS_DISPLAY_H_ 225 #endif // SERVICES_UI_WS_DISPLAY_H_
OLDNEW
« no previous file with comments | « services/ui/test_wm/test_wm.cc ('k') | services/ui/ws/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698