OLD | NEW |
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 "mash/wm/shelf_layout_impl.h" | 5 #include "ash/mus/shelf_layout_impl.h" |
6 | 6 |
7 #include "mash/wm/root_window_controller.h" | 7 #include "ash/mus/root_window_controller.h" |
8 #include "mash/wm/shelf_layout_manager.h" | 8 #include "ash/mus/shelf_layout_manager.h" |
9 #include "mash/wm/status_layout_manager.h" | 9 #include "ash/mus/status_layout_manager.h" |
10 | 10 |
11 namespace mash { | 11 namespace ash { |
12 namespace wm { | 12 namespace mus { |
13 | 13 |
14 ShelfLayoutImpl::ShelfLayoutImpl() {} | 14 ShelfLayoutImpl::ShelfLayoutImpl() {} |
15 | 15 |
16 ShelfLayoutImpl::~ShelfLayoutImpl() {} | 16 ShelfLayoutImpl::~ShelfLayoutImpl() {} |
17 | 17 |
18 void ShelfLayoutImpl::Initialize(RootWindowController* root_controller) { | 18 void ShelfLayoutImpl::Initialize(RootWindowController* root_controller) { |
19 root_controller_ = root_controller; | 19 root_controller_ = root_controller; |
20 } | 20 } |
21 | 21 |
22 void ShelfLayoutImpl::SetAlignment(mash::shelf::mojom::Alignment alignment) { | 22 void ShelfLayoutImpl::SetAlignment(mash::shelf::mojom::Alignment alignment) { |
23 root_controller_->GetShelfLayoutManager()->SetAlignment(alignment); | 23 root_controller_->GetShelfLayoutManager()->SetAlignment(alignment); |
24 root_controller_->GetStatusLayoutManager()->SetAlignment(alignment); | 24 root_controller_->GetStatusLayoutManager()->SetAlignment(alignment); |
25 } | 25 } |
26 | 26 |
27 void ShelfLayoutImpl::SetAutoHideBehavior( | 27 void ShelfLayoutImpl::SetAutoHideBehavior( |
28 mash::shelf::mojom::AutoHideBehavior auto_hide) { | 28 mash::shelf::mojom::AutoHideBehavior auto_hide) { |
29 root_controller_->GetShelfLayoutManager()->SetAutoHideBehavior(auto_hide); | 29 root_controller_->GetShelfLayoutManager()->SetAutoHideBehavior(auto_hide); |
30 root_controller_->GetStatusLayoutManager()->SetAutoHideBehavior(auto_hide); | 30 root_controller_->GetStatusLayoutManager()->SetAutoHideBehavior(auto_hide); |
31 } | 31 } |
32 | 32 |
33 } // namespace wm | 33 } // namespace mus |
34 } // namespace mash | 34 } // namespace ash |
OLD | NEW |