| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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; | 5 module mojo; |
| 6 | 6 |
| 7 import "components/view_manager/public/interfaces/view_tree.mojom"; | 7 import "components/mus/public/interfaces/view_tree.mojom"; |
| 8 import "ui/mojo/events/input_event_constants.mojom"; | 8 import "ui/mojo/events/input_event_constants.mojom"; |
| 9 import "ui/mojo/events/input_events.mojom"; | 9 import "ui/mojo/events/input_events.mojom"; |
| 10 import "ui/mojo/events/input_key_codes.mojom"; | 10 import "ui/mojo/events/input_key_codes.mojom"; |
| 11 import "ui/mojo/geometry/geometry.mojom"; | 11 import "ui/mojo/geometry/geometry.mojom"; |
| 12 | 12 |
| 13 // ViewTreeHost encapsulates a unique underlying platform window, with a tree | 13 // ViewTreeHost encapsulates a unique underlying platform window, with a tree |
| 14 // of views. | 14 // of views. |
| 15 interface ViewTreeHost { | 15 interface ViewTreeHost { |
| 16 // Sets the size of the platform window. | 16 // Sets the size of the platform window. |
| 17 SetSize(mojo.Size size); | 17 SetSize(mojo.Size size); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 32 interface ViewTreeHostClient { | 32 interface ViewTreeHostClient { |
| 33 // An accelerator registered via AddAccelerator() has been triggered. | 33 // An accelerator registered via AddAccelerator() has been triggered. |
| 34 OnAccelerator(uint32 id, mojo.Event event); | 34 OnAccelerator(uint32 id, mojo.Event event); |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 interface ViewTreeHostFactory { | 37 interface ViewTreeHostFactory { |
| 38 CreateViewTreeHost(ViewTreeHost& view_tree_host, | 38 CreateViewTreeHost(ViewTreeHost& view_tree_host, |
| 39 ViewTreeHostClient? host_client, | 39 ViewTreeHostClient? host_client, |
| 40 ViewTreeClient tree_client); | 40 ViewTreeClient tree_client); |
| 41 }; | 41 }; |
| OLD | NEW |