Chromium Code Reviews| Index: mojo/services/public/interfaces/view_manager/view_manager_service_delegate.mojom |
| diff --git a/mojo/services/public/interfaces/view_manager/view_manager_service_delegate.mojom b/mojo/services/public/interfaces/view_manager/view_manager_service_delegate.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..72a1f3c64086bd71c1983eb1e36592f510eb7c15 |
| --- /dev/null |
| +++ b/mojo/services/public/interfaces/view_manager/view_manager_service_delegate.mojom |
| @@ -0,0 +1,27 @@ |
| +// 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 { |
| + |
| +// Use by the ViewManagerService for the window manager connection. |
| +[Client=ViewManagerServiceDelegateClient] |
|
Ben Goodger (Google)
2014/10/09 17:11:40
I think these are probably better called something
|
| +interface ViewManagerServiceDelegate { |
| + // Asks the delegate to embed the url at the appropriate place. |
| + Embed(string url, ServiceProvider&? service_provider); |
| + |
| + // Called when an input event is received from the native system. It's |
| + // expected the delegate will call DispatchInputEventToView(). |
| + OnViewInputEvent(mojo.Event event); |
| +}; |
| + |
| +[Client=ViewManagerServiceDelegate] |
| +interface ViewManagerServiceDelegateClient { |
| + // Dispatches the specified input event to the specified view. |
| + DispatchInputEventToView(uint32 view_id, mojo.Event event); |
| +}; |
| + |
| +} |