OLD | NEW |
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/wm/aura/aura_layout_manager_adapter.h" | 5 #include "ash/wm/aura/aura_layout_manager_adapter.h" |
6 | 6 |
| 7 #include "ash/common/wm/wm_layout_manager.h" |
7 #include "ash/wm/aura/wm_window_aura.h" | 8 #include "ash/wm/aura/wm_window_aura.h" |
8 #include "ash/wm/common/wm_layout_manager.h" | |
9 | 9 |
10 namespace ash { | 10 namespace ash { |
11 namespace wm { | 11 namespace wm { |
12 | 12 |
13 AuraLayoutManagerAdapter::AuraLayoutManagerAdapter( | 13 AuraLayoutManagerAdapter::AuraLayoutManagerAdapter( |
14 std::unique_ptr<WmLayoutManager> wm_layout_manager) | 14 std::unique_ptr<WmLayoutManager> wm_layout_manager) |
15 : wm_layout_manager_(std::move(wm_layout_manager)) {} | 15 : wm_layout_manager_(std::move(wm_layout_manager)) {} |
16 | 16 |
17 AuraLayoutManagerAdapter::~AuraLayoutManagerAdapter() {} | 17 AuraLayoutManagerAdapter::~AuraLayoutManagerAdapter() {} |
18 | 18 |
(...skipping 23 matching lines...) Expand all Loading... |
42 | 42 |
43 void AuraLayoutManagerAdapter::SetChildBounds( | 43 void AuraLayoutManagerAdapter::SetChildBounds( |
44 aura::Window* child, | 44 aura::Window* child, |
45 const gfx::Rect& requested_bounds) { | 45 const gfx::Rect& requested_bounds) { |
46 wm_layout_manager_->SetChildBounds(WmWindowAura::Get(child), | 46 wm_layout_manager_->SetChildBounds(WmWindowAura::Get(child), |
47 requested_bounds); | 47 requested_bounds); |
48 } | 48 } |
49 | 49 |
50 } // namespace wm | 50 } // namespace wm |
51 } // namespace ash | 51 } // namespace ash |
OLD | NEW |