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/services/public/interfaces/input_events/input_events.mojom"; | |
6 | |
7 module mojo { | |
8 | |
9 // WindowManagerInternalService provides high level window management policies | |
10 // and is used by the ViewManager. This interface is marked as internal as only | |
11 // the view manager is allowed to connect to this. | |
12 [Client=WindowManagerInternalClient] | |
13 interface WindowManagerInternalService { | |
14 // Called when an input event is received from the native system. It's | |
15 // expected that when this is received the WindowManagerInternalService will | |
16 // call back to WindowManagerInternalServieClient will call | |
17 // DispatchInputEventToView(). | |
18 // TODO(sky): nuke this and instead have an interface specifically for | |
19 // dispatching events in the NativeViewportService. | |
20 OnViewInputEvent(mojo.Event event); | |
21 }; | |
22 | |
23 // ViewManager provides this interface for functionality only exposed to the | |
24 // WindowManagerInternalServie. | |
25 [Client=WindowManagerInternalService] | |
26 interface WindowManagerInternalClient { | |
27 // Dispatches the specified input event to the specified view. | |
28 DispatchInputEventToView(uint32 view_id, mojo.Event event); | |
29 }; | |
30 | |
31 } | |
OLD | NEW |