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

Side by Side Diff: ash/mus/root_window_controller.cc

Issue 2626483002: Removes WmShelfAura and WmShelfMus (Closed)
Patch Set: merge Created 3 years, 11 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 | « ash/mus/root_window_controller.h ('k') | ash/root_window_controller.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 #include "ash/mus/root_window_controller.h" 5 #include "ash/mus/root_window_controller.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
11 #include <sstream> 11 #include <sstream>
12 #include <string> 12 #include <string>
13 #include <utility> 13 #include <utility>
14 #include <vector> 14 #include <vector>
15 15
16 #include "ash/common/shelf/shelf_layout_manager.h" 16 #include "ash/common/shelf/shelf_layout_manager.h"
17 #include "ash/common/shelf/wm_shelf.h"
17 #include "ash/common/wm/container_finder.h" 18 #include "ash/common/wm/container_finder.h"
18 #include "ash/common/wm/dock/docked_window_layout_manager.h" 19 #include "ash/common/wm/dock/docked_window_layout_manager.h"
19 #include "ash/common/wm/panels/panel_layout_manager.h" 20 #include "ash/common/wm/panels/panel_layout_manager.h"
20 #include "ash/common/wm/root_window_layout_manager.h" 21 #include "ash/common/wm/root_window_layout_manager.h"
21 #include "ash/mus/bridge/wm_root_window_controller_mus.h" 22 #include "ash/mus/bridge/wm_root_window_controller_mus.h"
22 #include "ash/mus/bridge/wm_shelf_mus.h"
23 #include "ash/mus/bridge/wm_shell_mus.h" 23 #include "ash/mus/bridge/wm_shell_mus.h"
24 #include "ash/mus/bridge/wm_window_mus.h" 24 #include "ash/mus/bridge/wm_window_mus.h"
25 #include "ash/mus/non_client_frame_controller.h" 25 #include "ash/mus/non_client_frame_controller.h"
26 #include "ash/mus/property_util.h" 26 #include "ash/mus/property_util.h"
27 #include "ash/mus/screen_mus.h" 27 #include "ash/mus/screen_mus.h"
28 #include "ash/mus/window_manager.h" 28 #include "ash/mus/window_manager.h"
29 #include "ash/public/cpp/shell_window_ids.h" 29 #include "ash/public/cpp/shell_window_ids.h"
30 #include "ash/wm/stacking_controller.h" 30 #include "ash/wm/stacking_controller.h"
31 #include "base/bind.h" 31 #include "base/bind.h"
32 #include "base/command_line.h" 32 #include "base/command_line.h"
(...skipping 28 matching lines...) Expand all
61 } // namespace 61 } // namespace
62 62
63 RootWindowController::RootWindowController( 63 RootWindowController::RootWindowController(
64 WindowManager* window_manager, 64 WindowManager* window_manager,
65 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host, 65 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host,
66 const display::Display& display) 66 const display::Display& display)
67 : window_manager_(window_manager), 67 : window_manager_(window_manager),
68 window_tree_host_(std::move(window_tree_host)), 68 window_tree_host_(std::move(window_tree_host)),
69 window_count_(0), 69 window_count_(0),
70 display_(display), 70 display_(display),
71 wm_shelf_(base::MakeUnique<WmShelfMus>()) { 71 wm_shelf_(base::MakeUnique<WmShelf>()) {
72 wm_root_window_controller_ = base::MakeUnique<WmRootWindowControllerMus>( 72 wm_root_window_controller_ = base::MakeUnique<WmRootWindowControllerMus>(
73 window_manager_->shell(), this); 73 window_manager_->shell(), this);
74 wm_root_window_controller_->CreateContainers(); 74 wm_root_window_controller_->CreateContainers();
75 wm_root_window_controller_->CreateLayoutManagers(); 75 wm_root_window_controller_->CreateLayoutManagers();
76 76
77 parenting_client_ = base::MakeUnique<StackingController>(); 77 parenting_client_ = base::MakeUnique<StackingController>();
78 aura::client::SetWindowParentingClient(root(), parenting_client_.get()); 78 aura::client::SetWindowParentingClient(root(), parenting_client_.get());
79 79
80 disconnected_app_handler_.reset(new DisconnectedAppHandler(root())); 80 disconnected_app_handler_.reset(new DisconnectedAppHandler(root()));
81 81
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 } else { 231 } else {
232 width = root()->bounds().width() - 240; 232 width = root()->bounds().width() - 240;
233 height = root()->bounds().height() - 240; 233 height = root()->bounds().height() - 240;
234 } 234 }
235 return gfx::Rect(40 + (window_count_ % 4) * 40, 40 + (window_count_ % 4) * 40, 235 return gfx::Rect(40 + (window_count_ % 4) * 40, 40 + (window_count_ % 4) * 40,
236 width, height); 236 width, height);
237 } 237 }
238 238
239 } // namespace mus 239 } // namespace mus
240 } // namespace ash 240 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/root_window_controller.h ('k') | ash/root_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698