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

Unified Diff: services/ui/public/interfaces/window_tree.mojom

Issue 2414683003: Mus+Ash: propagate Surface ID to parents (Closed)
Patch Set: Don't follow null surface_info Created 4 years, 2 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 | « services/ui/public/cpp/window_tree_client.cc ('k') | services/ui/surfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/interfaces/window_tree.mojom
diff --git a/services/ui/public/interfaces/window_tree.mojom b/services/ui/public/interfaces/window_tree.mojom
index c7f68eda14f6938d4804c58036ace972879bbf10..fb8f8b1d08e52c5bc8d4d61362929c4c80ef3d23 100644
--- a/services/ui/public/interfaces/window_tree.mojom
+++ b/services/ui/public/interfaces/window_tree.mojom
@@ -5,6 +5,7 @@
module ui.mojom;
import "cc/ipc/surface_id.mojom";
+import "cc/ipc/surface_sequence.mojom";
import "services/ui/public/interfaces/cursor.mojom";
import "services/ui/public/interfaces/event_matcher.mojom";
import "services/ui/public/interfaces/mus_constants.mojom";
@@ -142,6 +143,9 @@ interface WindowTree {
Surface& surface,
SurfaceClient client);
+ // Returns surface reference back to window server for reclamation.
+ OnWindowSurfaceDetached(uint32 window_id, cc.mojom.SurfaceSequence sequence);
+
// Reparents a window.
// This fails for any of the following reasons:
// . |parent| or |child| does not identify a valid window.
@@ -421,6 +425,18 @@ interface WindowTreeClient {
OnWindowPredefinedCursorChanged(uint32 window_id, Cursor cursor_id);
+ // Invoked when a client window submits a new surface ID. The surface ID and
+ // associated information is propagated to the parent connection. The parent
+ // compositor can take ownership of this surface ID and embed it along with
+ // the SurfaceSequence, frame_size, and device_scale_factor in a layer.
+ // TODO(fsamuel): Surface IDs should be passed to parents directly instead of
+ // going through the window server. http://crbug.com/655231
+ OnWindowSurfaceChanged(uint32 window_id,
+ cc.mojom.SurfaceId surface_id,
+ cc.mojom.SurfaceSequence surface_sequence,
+ gfx.mojom.Size frame_size,
+ float device_scale_factor);
+
// Called when the mouse cursor enters a window on this connection for the
// first time, providing a list of available mime types. We want to send this
// set of data only one time, so this isn't part of OnDragEnter(), which
« no previous file with comments | « services/ui/public/cpp/window_tree_client.cc ('k') | services/ui/surfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698