| 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/public/interfaces/application/service_provider.mojom" | 5 import "mojo/public/interfaces/application/service_provider.mojom"; |
| 6 import "mojo/services/public/interfaces/geometry/geometry.mojom" | 6 import "mojo/services/public/interfaces/geometry/geometry.mojom"; |
| 7 import "mojo/services/public/interfaces/input_events/input_events.mojom" | 7 import "mojo/services/public/interfaces/input_events/input_events.mojom"; |
| 8 import "mojo/services/public/interfaces/surfaces/surface_id.mojom" | 8 import "mojo/services/public/interfaces/surfaces/surface_id.mojom"; |
| 9 import "mojo/services/public/interfaces/view_manager/view_manager_constants.mojo
m" | 9 import "mojo/services/public/interfaces/view_manager/view_manager_constants.mojo
m"; |
| 10 | 10 |
| 11 module mojo { | 11 module mojo { |
| 12 | 12 |
| 13 struct ViewData { | 13 struct ViewData { |
| 14 uint32 parent_id; | 14 uint32 parent_id; |
| 15 uint32 view_id; | 15 uint32 view_id; |
| 16 mojo.Rect bounds; | 16 mojo.Rect bounds; |
| 17 map<string, array<uint8>> properties; | 17 map<string, array<uint8>> properties; |
| 18 // True if this view is visible. The view may not be drawn on screen (see | 18 // True if this view is visible. The view may not be drawn on screen (see |
| 19 // drawn for specifics). | 19 // drawn for specifics). |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 183 |
| 184 // Invoked when a view property is changed. If this change is a removal, | 184 // Invoked when a view property is changed. If this change is a removal, |
| 185 // |new_data| is null. | 185 // |new_data| is null. |
| 186 OnViewPropertyChanged(uint32 view, string name, array<uint8>? new_data); | 186 OnViewPropertyChanged(uint32 view, string name, array<uint8>? new_data); |
| 187 | 187 |
| 188 // Invoked when an event is targeted at the specified view. | 188 // Invoked when an event is targeted at the specified view. |
| 189 OnViewInputEvent(uint32 view, mojo.Event event) => (); | 189 OnViewInputEvent(uint32 view, mojo.Event event) => (); |
| 190 }; | 190 }; |
| 191 | 191 |
| 192 } | 192 } |
| OLD | NEW |