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 // Use by the ViewManagerService for the window manager connection. | |
| 11 [Client=ViewManagerServiceDelegateClient] | |
|
Ben Goodger (Google)
2014/10/09 17:11:40
I think these are probably better called something
| |
| 12 interface ViewManagerServiceDelegate { | |
| 13 // Asks the delegate to embed the url at the appropriate place. | |
| 14 Embed(string url, ServiceProvider&? service_provider); | |
| 15 | |
| 16 // Called when an input event is received from the native system. It's | |
| 17 // expected the delegate will call DispatchInputEventToView(). | |
| 18 OnViewInputEvent(mojo.Event event); | |
| 19 }; | |
| 20 | |
| 21 [Client=ViewManagerServiceDelegate] | |
| 22 interface ViewManagerServiceDelegateClient { | |
| 23 // Dispatches the specified input event to the specified view. | |
| 24 DispatchInputEventToView(uint32 view_id, mojo.Event event); | |
| 25 }; | |
| 26 | |
| 27 } | |
| OLD | NEW |