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

Unified Diff: components/mus/public/interfaces/window_tree_constants.mojom

Issue 2072343002: Changes how window manager obtains WindowTree from mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include 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 | « components/mus/public/interfaces/window_tree.mojom ('k') | components/mus/test_wm/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/interfaces/window_tree_constants.mojom
diff --git a/components/mus/public/interfaces/window_tree_constants.mojom b/components/mus/public/interfaces/window_tree_constants.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..7fd9f676cd4aad8a720c4c85906f6d64c2e7394e
--- /dev/null
+++ b/components/mus/public/interfaces/window_tree_constants.mojom
@@ -0,0 +1,49 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module mus.mojom;
+
+import "ui/gfx/geometry/mojo/geometry.mojom";
+
+// Contains state of a single window.
+struct WindowData {
+ // Unique identifier of the parent. If the client can not see the parent an
+ // id of 0 is supplied.
+ uint32 parent_id;
+
+ // Unique identifier of the window.
+ uint32 window_id;
+
+ gfx.mojom.Rect bounds;
+
+ // Arbitrary key/value pairs. The interpretation of these is left to the
+ // client. See SetWindowProperty() for more information.
+ map<string, array<uint8>> properties;
+
+ // True if this window is visible. The window may not be drawn on screen (see
+ // OnWindowParentDrawnStateChanged() for details).
+ bool visible;
+};
+
+// Each Window has support for two surfaces. Generally the |DEFAULT| surface
+// is used. The |UNDERLAY| surface is useful if the owner of a window wants to
+// to Embed() another client and at the same time draw something under the
+// embedded apps representation.
+enum SurfaceType {
+ // Only the owner of a window may obtain this surface.
+ // The window manager can change the offset of this by way of
+ // SetUnderlaySurfaceOffsetAndExtendedHitArea().
+ UNDERLAY,
+
+ // Only the embedded app may obtain this surface. If an app is not embedded
+ // in the Window than the owner may also render to this surface as well.
+ DEFAULT,
+};
+
+// The result of an input event sent to a client app.
+enum EventResult {
+ HANDLED,
+ UNHANDLED,
+};
+
« no previous file with comments | « components/mus/public/interfaces/window_tree.mojom ('k') | components/mus/test_wm/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698