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

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

Issue 2470963002: Makes it possible for clients to directly create WindowTreeHostMus (Closed)
Patch Set: nuke comment 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
« no previous file with comments | « no previous file | ui/aura/mus/window_manager_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/mus_types.h
diff --git a/ui/aura/mus/mus_types.h b/ui/aura/mus/mus_types.h
index fe6d8d3637aed4b74fc12c1e3f302cee6322367f..03dc0d55156ba2c8f0eb32e96aaf3d2487789d8e 100644
--- a/ui/aura/mus/mus_types.h
+++ b/ui/aura/mus/mus_types.h
@@ -22,18 +22,28 @@ using ClientSpecificId = uint16_t;
constexpr Id kInvalidServerId = 0;
-// Identifies the type of root window.
-enum class RootWindowType {
+enum class WindowMusType {
// The window is an embed root. That is, the client received this window by
// way of another client calling Embed().
+ // NOTE: in the client that called Embed() the window type is LOCAL.
EMBED,
- // The window is a top level window, that is the client created it by way of
- // NewTopLevelWindow().
+ // The window was created by requesting a top level
+ // (WindowTree::NewTopLevel()).
+ // NOTE: in the window manager (the one responsible for actually creating the
+ // real window) the window is of type LOCAL.
TOP_LEVEL,
// The window is a display root for the window manager.
- DISPLAY
+ DISPLAY,
+
+ // The window was created locally.
+ LOCAL,
+
+ // Not one of the above. This means the window is visible to the client and
+ // not one of the above values. Practially this means this client is the
+ // window manager and the window was created by another client.
+ OTHER,
};
} // namespace ui
« no previous file with comments | « no previous file | ui/aura/mus/window_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698