| Index: components/view_manager/public/interfaces/view_manager_root.mojom
|
| diff --git a/components/window_manager/public/interfaces/window_manager_internal.mojom b/components/view_manager/public/interfaces/view_manager_root.mojom
|
| similarity index 68%
|
| rename from components/window_manager/public/interfaces/window_manager_internal.mojom
|
| rename to components/view_manager/public/interfaces/view_manager_root.mojom
|
| index e987189f4278a10b5b510b8a481be73bd5bc7d85..821119c125acad15f76ec9c572ca2028d0901826 100644
|
| --- a/components/window_manager/public/interfaces/window_manager_internal.mojom
|
| +++ b/components/view_manager/public/interfaces/view_manager_root.mojom
|
| @@ -9,22 +9,10 @@ import "ui/mojo/events/input_events.mojom";
|
| import "ui/mojo/events/input_key_codes.mojom";
|
| import "ui/mojo/geometry/geometry.mojom";
|
|
|
| -// WindowManagerInternal is an interface provided by the WindowManager
|
| -// exclusively to the ViewManager.
|
| -interface WindowManagerInternal {
|
| - SetViewManagerClient(handle<message_pipe> view_manager_client_request);
|
| -
|
| - // An accelerator registered via AddAccelerator() has been triggered.
|
| - OnAccelerator(mojo.Event event);
|
| -};
|
| -
|
| -// WindowManagerInternalClient is an interface provide by the ViewManager
|
| -// exclusively to the WindowManager. It provides functionality only available
|
| -// to the WindowManager.
|
| -interface WindowManagerInternalClient {
|
| - // TODO(sky): this is only used by sky's testing harness. It should be
|
| - // removed.
|
| - DispatchInputEventToViewDEPRECATED(uint32 view_id, mojo.Event event);
|
| +// ViewManagerRoot is an interface exposed to the first connection to the
|
| +// ViewManager.
|
| +interface ViewManagerRoot {
|
| + SetViewManagerRootClient(ViewManagerRootClient client);
|
|
|
| // Sets the native viewport size.
|
| SetViewportSize(mojo.Size size);
|
| @@ -43,3 +31,9 @@ interface WindowManagerInternalClient {
|
| AddAccelerator(mojo.KeyboardCode keyboard_code, mojo.EventFlags flags);
|
| RemoveAccelerator(mojo.KeyboardCode keyboard_code, mojo.EventFlags flags);
|
| };
|
| +
|
| +interface ViewManagerRootClient {
|
| + // An accelerator registered via AddAccelerator() has been triggered.
|
| + OnAccelerator(mojo.Event event);
|
| +};
|
| +
|
|
|