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

Side by Side Diff: services/ui/ws/display.cc

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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/test_utils.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 #include "services/ui/ws/display.h" 5 #include "services/ui/ws/display.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 if (!init_called_ || !root_) 226 if (!init_called_ || !root_)
227 return; 227 return;
228 228
229 display_manager()->OnDisplayAcceleratedWidgetAvailable(this); 229 display_manager()->OnDisplayAcceleratedWidgetAvailable(this);
230 if (binding_) { 230 if (binding_) {
231 std::unique_ptr<WindowManagerDisplayRoot> display_root_ptr( 231 std::unique_ptr<WindowManagerDisplayRoot> display_root_ptr(
232 new WindowManagerDisplayRoot(this)); 232 new WindowManagerDisplayRoot(this));
233 WindowManagerDisplayRoot* display_root = display_root_ptr.get(); 233 WindowManagerDisplayRoot* display_root = display_root_ptr.get();
234 // For this case we never create additional displays roots, so any 234 // For this case we never create additional displays roots, so any
235 // id works. 235 // id works.
236 window_manager_display_root_map_[shell::mojom::kRootUserID] = 236 window_manager_display_root_map_[service_manager::mojom::kRootUserID] =
237 display_root_ptr.get(); 237 display_root_ptr.get();
238 WindowTree* window_tree = binding_->CreateWindowTree(display_root->root()); 238 WindowTree* window_tree = binding_->CreateWindowTree(display_root->root());
239 display_root->window_manager_state_ = window_tree->window_manager_state(); 239 display_root->window_manager_state_ = window_tree->window_manager_state();
240 window_tree->window_manager_state()->AddWindowManagerDisplayRoot( 240 window_tree->window_manager_state()->AddWindowManagerDisplayRoot(
241 std::move(display_root_ptr)); 241 std::move(display_root_ptr));
242 } else { 242 } else {
243 CreateWindowManagerDisplayRootsFromFactories(); 243 CreateWindowManagerDisplayRootsFromFactories();
244 } 244 }
245 display_manager()->OnDisplayUpdate(this); 245 display_manager()->OnDisplayUpdate(this);
246 } 246 }
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 } 400 }
401 401
402 void Display::OnWindowManagerWindowTreeFactoryReady( 402 void Display::OnWindowManagerWindowTreeFactoryReady(
403 WindowManagerWindowTreeFactory* factory) { 403 WindowManagerWindowTreeFactory* factory) {
404 if (!binding_) 404 if (!binding_)
405 CreateWindowManagerDisplayRootFromFactory(factory); 405 CreateWindowManagerDisplayRootFromFactory(factory);
406 } 406 }
407 407
408 } // namespace ws 408 } // namespace ws
409 } // namespace ui 409 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/test_wm/test_wm.cc ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698