Index: mojo/services/public/interfaces/window_manager/window_manager.mojom |
diff --git a/mojo/services/public/interfaces/window_manager/window_manager.mojom b/mojo/services/public/interfaces/window_manager/window_manager.mojom |
index 754f1ed8422b033c6ef1e171c0ed683439c8d7bb..6d108f9e0923e7e13307d14eefe90174937017e7 100644 |
--- a/mojo/services/public/interfaces/window_manager/window_manager.mojom |
+++ b/mojo/services/public/interfaces/window_manager/window_manager.mojom |
@@ -2,15 +2,24 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+module mojo; |
+ |
import "mojo/public/interfaces/application/service_provider.mojom"; |
import "mojo/services/public/interfaces/input_events/input_events.mojom"; |
-module mojo { |
- |
+[Client=WindowManagerClient] |
interface WindowManager { |
// Requests the WindowManager to embed the app for |url| at an appropriate |
// View. See ViewManger::Embed() for details on |service_provider|. |
Embed(string url, ServiceProvider&? service_provider); |
+ |
+ SetCapture(uint32 view_id) => (bool success); |
+ FocusWindow(uint32 view_id) => (bool success); |
+ ActivateWindow(uint32 view_id) => (bool success); |
}; |
-} |
+interface WindowManagerClient { |
+ OnCaptureChanged(uint32 old_capture_view_id, uint32 new_capture_view_id); |
+ OnFocusChanged(uint32 old_focused_node_id, uint32 new_focused_node_id); |
+ OnActiveWindowChanged(uint32 old_focused_window, uint32 new_focused_window); |
+}; |