| 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 // WindowManagerService provides high level window management policies. |
| 11 // WindowManagerService is used by the ViewManager. More specifically the first |
| 12 // connection from the ViewManager is expected to provide the |
| 13 // WindowManagerService. |
| 14 [Client=WindowManagerClient] |
| 15 interface WindowManagerService { |
| 16 // Asks the WindowManager to embed |url| at the appropriate place. See |
| 17 // ViewManager::Embed for details of |service_provider|. |
| 18 Embed(string url, ServiceProvider&? service_provider); |
| 19 |
| 20 // Called when an input event is received from the native system. It's |
| 21 // expected that when this is received the WindowManagerService will call back |
| 22 // to WindowManagerServieClient will call DispatchInputEventToView(). |
| 23 OnViewInputEvent(mojo.Event event); |
| 24 }; |
| 25 |
| 26 // ViewManager provides this interface for functionality only exposed to the |
| 27 // WindowManagerServie. |
| 28 [Client=WindowManagerService] |
| 29 interface WindowManagerClient { |
| 30 // Dispatches the specified input event to the specified view. |
| 31 DispatchInputEventToView(uint32 view_id, mojo.Event event); |
| 32 }; |
| 33 |
| 34 } |
| OLD | NEW |