OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 import "mojo/services/public/interfaces/geometry/geometry.mojom"; |
5 import "mojo/services/public/interfaces/input_events/input_events.mojom"; | 6 import "mojo/services/public/interfaces/input_events/input_events.mojom"; |
6 | 7 |
7 module mojo { | 8 module mojo { |
8 | 9 |
9 // WindowManagerInternalService provides high level window management policies | 10 // ViewManager provides this interface to the WindowManager. It enables |
10 // and is used by the ViewManager. This interface is marked as internal as only | 11 // capabilities specific to the WindowManager. |
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 { | 12 interface WindowManagerInternalClient { |
27 // Dispatches the specified input event to the specified view. | 13 // Dispatches the specified input event to the specified view. |
28 DispatchInputEventToView(uint32 view_id, mojo.Event event); | 14 DispatchInputEventToView(uint32 view_id, mojo.Event event); |
| 15 |
| 16 // Sets the native viewport size. |
| 17 SetViewportSize(mojo.Size size); |
29 }; | 18 }; |
30 | 19 |
31 } | 20 } |
OLD | NEW |