| Index: ash/mus/bridge/mus_layout_manager_adapter.cc
|
| diff --git a/mash/wm/bridge/mus_layout_manager_adapter.cc b/ash/mus/bridge/mus_layout_manager_adapter.cc
|
| similarity index 81%
|
| rename from mash/wm/bridge/mus_layout_manager_adapter.cc
|
| rename to ash/mus/bridge/mus_layout_manager_adapter.cc
|
| index 35b0d3cfee984421c29798ba7999abd2cd4984ab..f85dd61d5d471ae011e1938ff9d1847890b67983 100644
|
| --- a/mash/wm/bridge/mus_layout_manager_adapter.cc
|
| +++ b/ash/mus/bridge/mus_layout_manager_adapter.cc
|
| @@ -2,14 +2,14 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "mash/wm/bridge/mus_layout_manager_adapter.h"
|
| +#include "ash/mus/bridge/mus_layout_manager_adapter.h"
|
|
|
| #include "ash/common/wm/wm_layout_manager.h"
|
| +#include "ash/mus/bridge/wm_window_mus.h"
|
| #include "components/mus/public/cpp/window.h"
|
| -#include "mash/wm/bridge/wm_window_mus.h"
|
|
|
| -namespace mash {
|
| -namespace wm {
|
| +namespace ash {
|
| +namespace mus {
|
|
|
| MusLayoutManagerAdapter::ChildWindowObserver::ChildWindowObserver(
|
| MusLayoutManagerAdapter* adapter)
|
| @@ -18,24 +18,24 @@ MusLayoutManagerAdapter::ChildWindowObserver::ChildWindowObserver(
|
| MusLayoutManagerAdapter::ChildWindowObserver::~ChildWindowObserver() {}
|
|
|
| void MusLayoutManagerAdapter::ChildWindowObserver::OnWindowVisibilityChanged(
|
| - mus::Window* window) {
|
| + ::mus::Window* window) {
|
| adapter_->layout_manager_->OnChildWindowVisibilityChanged(
|
| WmWindowMus::Get(window), window->visible());
|
| }
|
|
|
| MusLayoutManagerAdapter::MusLayoutManagerAdapter(
|
| - mus::Window* window,
|
| - std::unique_ptr<ash::wm::WmLayoutManager> layout_manager)
|
| + ::mus::Window* window,
|
| + std::unique_ptr<wm::WmLayoutManager> layout_manager)
|
| : window_(window),
|
| child_window_observer_(this),
|
| layout_manager_(std::move(layout_manager)) {
|
| window_->AddObserver(this);
|
| - for (mus::Window* child : window_->children())
|
| + for (::mus::Window* child : window_->children())
|
| child->AddObserver(&child_window_observer_);
|
| }
|
|
|
| MusLayoutManagerAdapter::~MusLayoutManagerAdapter() {
|
| - for (mus::Window* child : window_->children())
|
| + for (::mus::Window* child : window_->children())
|
| child->RemoveObserver(&child_window_observer_);
|
|
|
| window_->RemoveObserver(this);
|
| @@ -59,11 +59,11 @@ void MusLayoutManagerAdapter::OnTreeChanged(const TreeChangeParams& params) {
|
| }
|
|
|
| void MusLayoutManagerAdapter::OnWindowBoundsChanged(
|
| - mus::Window* window,
|
| + ::mus::Window* window,
|
| const gfx::Rect& old_bounds,
|
| const gfx::Rect& new_bounds) {
|
| layout_manager_->OnWindowResized();
|
| }
|
|
|
| -} // namespace wm
|
| -} // namespace mash
|
| +} // namespace mus
|
| +} // namespace ash
|
|
|