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

Unified Diff: ui/aura/mus/window_tree_client.h

Issue 2500973002: Converts test_wm to use aura (Closed)
Patch Set: delete cant be used Created 4 years, 1 month 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
Index: ui/aura/mus/window_tree_client.h
diff --git a/ui/aura/mus/window_tree_client.h b/ui/aura/mus/window_tree_client.h
index f9835fe486dd0e8548e9a172993238e68ab08af7..c43275925da27f33d887c28e3c71a34be8d9b66d 100644
--- a/ui/aura/mus/window_tree_client.h
+++ b/ui/aura/mus/window_tree_client.h
@@ -164,6 +164,11 @@ class AURA_EXPORT WindowTreeClient
friend class WindowPortMus;
friend class WindowTreeClientPrivate;
+ enum class Origin {
+ CLIENT,
+ SERVER,
+ };
+
using IdToWindowMap = std::map<Id, WindowMus*>;
// TODO(sky): this assumes change_ids never wrap, which is a bad assumption.
@@ -254,7 +259,7 @@ class AURA_EXPORT WindowTreeClient
// Following are called from WindowMus.
void OnWindowMusCreated(WindowMus* window);
- void OnWindowMusDestroyed(WindowMus* window);
+ void OnWindowMusDestroyed(WindowMus* window, Origin origin);
void OnWindowMusBoundsChanged(WindowMus* window,
const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds);

Powered by Google App Engine
This is Rietveld 408576698