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

Unified Diff: ash/mus/bridge/mus_layout_manager_adapter.cc

Issue 2029883002: Moves mash/wm into ash/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_static_assert
Patch Set: move comment Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/mus/bridge/mus_layout_manager_adapter.h ('k') | ash/mus/bridge/wm_globals_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ash/mus/bridge/mus_layout_manager_adapter.h ('k') | ash/mus/bridge/wm_globals_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698