Chromium Code Reviews| 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 |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0f8191cc9f632b3d87c8dbdf2975b73d36538f9c |
| --- /dev/null |
| +++ b/mojo/services/public/interfaces/window_manager/window_manager.mojom |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// 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" |
| + |
| +module mojo { |
| + |
| +[Client=WindowManagerClient] |
|
Ben Goodger (Google)
2014/10/14 16:44:37
// Document the roles of these interfaces & who im
sky
2014/10/14 19:21:51
Done.
|
| +interface WindowManagerService { |
| + // Asks the WindowManager to embed |url| at the appropriate place. See |
| + // ViewManager::Embed for details of |service_provider|. |
| + Embed(string url, ServiceProvider&? service_provider); |
| + |
| + // Called when an input event is received from the native system. It's |
| + // expected that when this is received the WindowManagerService will call back |
| + // to WindowManagerServieClient will call DispatchInputEventToView(). |
| + OnViewInputEvent(mojo.Event event); |
| +}; |
| + |
| +[Client=WindowManagerService] |
| +interface WindowManagerClient { |
| + // Dispatches the specified input event to the specified view. |
| + DispatchInputEventToView(uint32 view_id, mojo.Event event); |
| +}; |
| + |
| +} |