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..804bd3780f94605392e0ac3136ea795d5f623ea3 100644 |
--- a/mojo/services/public/interfaces/window_manager/window_manager.mojom |
+++ b/mojo/services/public/interfaces/window_manager/window_manager.mojom |
@@ -2,8 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-import "mojo/public/interfaces/application/service_provider.mojom"; |
-import "mojo/services/public/interfaces/input_events/input_events.mojom"; |
+import "mojo/public/interfaces/application/service_provider.mojom" |
+import "mojo/services/public/interfaces/input_events/input_events.mojom" |
module mojo { |
@@ -13,4 +13,26 @@ |
Embed(string url, ServiceProvider&? service_provider); |
}; |
+// WindowManagerInternalService provides high level window management policies |
+// and is used by the ViewManager. This interface is marked as internal as only |
+// the view manager is allowed to connect to this. |
+[Client=WindowManagerInternalClient] |
+interface WindowManagerInternalService { |
+ // Called when an input event is received from the native system. It's |
+ // expected that when this is received the WindowManagerInternalService will |
+ // call back to WindowManagerInternalServieClient will call |
+ // DispatchInputEventToView(). |
+ // TODO(sky): nuke this and instead have an interface specifically for |
+ // dispatching events in the NativeViewportService. |
+ OnViewInputEvent(mojo.Event event); |
+}; |
+ |
+// ViewManager provides this interface for functionality only exposed to the |
+// WindowManagerInternalServie. |
+[Client=WindowManagerInternalService] |
+interface WindowManagerInternalClient { |
+ // Dispatches the specified input event to the specified view. |
+ DispatchInputEventToView(uint32 view_id, mojo.Event event); |
+}; |
+ |
} |