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

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

Issue 1605773004: mus: Implement Window Server Capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Original Review Comments Created 4 years, 11 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
Index: components/mus/public/interfaces/window_tree.mojom
diff --git a/components/mus/public/interfaces/window_tree.mojom b/components/mus/public/interfaces/window_tree.mojom
index a1e8152c6986e628d6156a051f13157c0647e596..37a80c2b08fe07a5875872cbf501264f0da88c32 100644
--- a/components/mus/public/interfaces/window_tree.mojom
+++ b/components/mus/public/interfaces/window_tree.mojom
@@ -106,6 +106,12 @@ interface WindowTree {
// can delete it.
DeleteWindow(uint32 change_id, uint32 window_id);
+ // Requests input event capture for the given |window_id|.
+ SetCapture(uint32 change_id, uint32 window_id);
+
+ // Releases input event capture for the given |window_id|.
+ ReleaseCapture(uint32 change_id, uint32 window_id);
+
// Sets the specified bounds of the specified window.
SetWindowBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds);
@@ -267,6 +273,9 @@ interface WindowTreeClient {
// previously embedded in. See Embed() for more information.
OnUnembed(uint32 window);
+ // Sent when a window loses capture.
+ OnLostCapture(uint32 window);
+
// Called in response to NewTopLevelWindow() successfully completing.
OnTopLevelCreated(uint32 change_id, WindowData data);

Powered by Google App Engine
This is Rietveld 408576698