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

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

Issue 2042913002: Converts MruWindowTracker to work with common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: not equal Created 4 years, 6 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/wm_window_mus.h ('k') | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/bridge/wm_window_mus.cc
diff --git a/ash/mus/bridge/wm_window_mus.cc b/ash/mus/bridge/wm_window_mus.cc
index ee1eae613e8885a24fdd4ca1404bff60f9f1daac..5c748e7cce5eaa9c2ced1d7a213a987e917ff9c9 100644
--- a/ash/mus/bridge/wm_window_mus.cc
+++ b/ash/mus/bridge/wm_window_mus.cc
@@ -688,6 +688,15 @@ void WmWindowMus::RemoveObserver(WmWindowObserver* observer) {
observers_.RemoveObserver(observer);
}
+void WmWindowMus::OnTreeChanging(const TreeChangeParams& params) {
+ WmWindowObserver::TreeChangeParams wm_params;
+ wm_params.target = Get(params.target);
+ wm_params.new_parent = Get(params.new_parent);
+ wm_params.old_parent = Get(params.old_parent);
+ FOR_EACH_OBSERVER(WmWindowObserver, observers_,
+ OnWindowTreeChanging(this, wm_params));
+}
+
void WmWindowMus::OnTreeChanged(const TreeChangeParams& params) {
WmWindowObserver::TreeChangeParams wm_params;
wm_params.target = Get(params.target);
@@ -735,5 +744,9 @@ void WmWindowMus::OnWindowDestroying(::mus::Window* window) {
FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowDestroying(this));
}
+void WmWindowMus::OnWindowDestroyed(::mus::Window* window) {
+ FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowDestroyed(this));
+}
+
} // namespace mus
} // namespace ash
« no previous file with comments | « ash/mus/bridge/wm_window_mus.h ('k') | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698