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; | 5 module mojo; |
6 | 6 |
7 import "components/native_viewport/public/interfaces/native_viewport.mojom"; | |
8 import "components/surfaces/public/interfaces/surface_id.mojom"; | 7 import "components/surfaces/public/interfaces/surface_id.mojom"; |
| 8 import "components/view_manager/public/interfaces/native_viewport.mojom"; |
9 import "components/view_manager/public/interfaces/view_manager_constants.mojom"; | 9 import "components/view_manager/public/interfaces/view_manager_constants.mojom"; |
10 import "mojo/application/public/interfaces/service_provider.mojom"; | 10 import "mojo/application/public/interfaces/service_provider.mojom"; |
11 import "ui/mojo/events/input_events.mojom"; | 11 import "ui/mojo/events/input_events.mojom"; |
12 import "ui/mojo/geometry/geometry.mojom"; | 12 import "ui/mojo/geometry/geometry.mojom"; |
13 | 13 |
14 struct ViewData { | 14 struct ViewData { |
15 uint32 parent_id; | 15 uint32 parent_id; |
16 uint32 view_id; | 16 uint32 view_id; |
17 mojo.Rect bounds; | 17 mojo.Rect bounds; |
18 map<string, array<uint8>> properties; | 18 map<string, array<uint8>> properties; |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 211 |
212 // Invoked when a view property is changed. If this change is a removal, | 212 // Invoked when a view property is changed. If this change is a removal, |
213 // |new_data| is null. | 213 // |new_data| is null. |
214 OnViewSharedPropertyChanged(uint32 view, string name, array<uint8>? new_data); | 214 OnViewSharedPropertyChanged(uint32 view, string name, array<uint8>? new_data); |
215 | 215 |
216 // Invoked when an event is targeted at the specified view. | 216 // Invoked when an event is targeted at the specified view. |
217 OnViewInputEvent(uint32 view, mojo.Event event) => (); | 217 OnViewInputEvent(uint32 view, mojo.Event event) => (); |
218 | 218 |
219 OnViewFocused(uint32 focused_view_id); | 219 OnViewFocused(uint32 focused_view_id); |
220 }; | 220 }; |
OLD | NEW |