Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 import "mojo/public/interfaces/application/service_provider.mojom" | |
| 6 import "mojo/services/public/interfaces/input_events/input_events.mojom" | |
| 7 | |
| 8 module mojo { | |
| 9 | |
| 10 [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.
| |
| 11 interface WindowManagerService { | |
| 12 // Asks the WindowManager to embed |url| at the appropriate place. See | |
| 13 // ViewManager::Embed for details of |service_provider|. | |
| 14 Embed(string url, ServiceProvider&? service_provider); | |
| 15 | |
| 16 // Called when an input event is received from the native system. It's | |
| 17 // expected that when this is received the WindowManagerService will call back | |
| 18 // to WindowManagerServieClient will call DispatchInputEventToView(). | |
| 19 OnViewInputEvent(mojo.Event event); | |
| 20 }; | |
| 21 | |
| 22 [Client=WindowManagerService] | |
| 23 interface WindowManagerClient { | |
| 24 // Dispatches the specified input event to the specified view. | |
| 25 DispatchInputEventToView(uint32 view_id, mojo.Event event); | |
| 26 }; | |
| 27 | |
| 28 } | |
| OLD | NEW |