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