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 module mojo; |
| 6 |
5 import "mojo/services/public/interfaces/geometry/geometry.mojom"; | 7 import "mojo/services/public/interfaces/geometry/geometry.mojom"; |
6 import "mojo/services/public/interfaces/input_events/input_events.mojom"; | 8 import "mojo/services/public/interfaces/input_events/input_events.mojom"; |
7 | 9 |
8 module mojo { | 10 // WindowManagerInternal is an interface provided by the WindowManager |
| 11 // exclusively to the ViewManager. |
| 12 interface WindowManagerInternal { |
| 13 // Creates a connection to the WindowManager specifically for a connection to |
| 14 // the ViewManager. |connection_id| is the id of the connection to the |
| 15 // ViewManager. See view_manager.mojom for details on the id. |
| 16 CreateWindowManagerForViewManagerClient( |
| 17 uint16 connection_id, |
| 18 handle<message_pipe> window_manager_pipe); |
| 19 }; |
9 | 20 |
10 // ViewManager provides this interface to the WindowManager. It enables | 21 // WindowManagerInternalClient is an interface provide by the ViewManager |
11 // capabilities specific to the WindowManager. | 22 // exclusively to the WindowManager. It provides functionality only available |
| 23 // to the WindowManager. |
12 interface WindowManagerInternalClient { | 24 interface WindowManagerInternalClient { |
13 // Dispatches the specified input event to the specified view. | 25 // Dispatches the specified input event to the specified view. |
14 DispatchInputEventToView(uint32 view_id, mojo.Event event); | 26 DispatchInputEventToView(uint32 view_id, mojo.Event event); |
15 | 27 |
16 // Sets the native viewport size. | 28 // Sets the native viewport size. |
17 SetViewportSize(mojo.Size size); | 29 SetViewportSize(mojo.Size size); |
18 }; | 30 }; |
19 | |
20 } | |
OLD | NEW |