| 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 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
| 6 module mojo; | 6 module mojo; |
| 7 | 7 |
| 8 import "geometry/public/interfaces/geometry.mojom"; | 8 import "geometry/interfaces/geometry.mojom"; |
| 9 import "input_events/public/interfaces/input_events.mojom"; | 9 import "input_events/interfaces/input_events.mojom"; |
| 10 import "mojo/public/interfaces/application/service_provider.mojom"; | 10 import "mojo/public/interfaces/application/service_provider.mojom"; |
| 11 import "native_viewport/public/interfaces/native_viewport.mojom"; | 11 import "native_viewport/interfaces/native_viewport.mojom"; |
| 12 import "surfaces/public/interfaces/surface_id.mojom"; | 12 import "surfaces/public/interfaces/surface_id.mojom"; |
| 13 import "view_manager/public/interfaces/view_manager_constants.mojom"; | 13 import "view_manager/public/interfaces/view_manager_constants.mojom"; |
| 14 | 14 |
| 15 struct ViewData { | 15 struct ViewData { |
| 16 uint32 parent_id; | 16 uint32 parent_id; |
| 17 uint32 view_id; | 17 uint32 view_id; |
| 18 mojo.Rect bounds; | 18 mojo.Rect bounds; |
| 19 map<string, array<uint8>> properties; | 19 map<string, array<uint8>> properties; |
| 20 // True if this view is visible. The view may not be drawn on screen (see | 20 // True if this view is visible. The view may not be drawn on screen (see |
| 21 // drawn for specifics). | 21 // drawn for specifics). |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 OnViewSharedPropertyChanged(uint32 view, string name, array<uint8>? new_data); | 222 OnViewSharedPropertyChanged(uint32 view, string name, array<uint8>? new_data); |
| 223 | 223 |
| 224 // Invoked when an event is targeted at the specified view. | 224 // Invoked when an event is targeted at the specified view. |
| 225 OnViewInputEvent(uint32 view, mojo.Event event) => (); | 225 OnViewInputEvent(uint32 view, mojo.Event event) => (); |
| 226 | 226 |
| 227 // Invoked solely on the WindowManager. See comments in PerformAction() above | 227 // Invoked solely on the WindowManager. See comments in PerformAction() above |
| 228 // for details. | 228 // for details. |
| 229 // TODO(sky): nuke this. | 229 // TODO(sky): nuke this. |
| 230 OnPerformAction(uint32 view_id, string action) => (bool success); | 230 OnPerformAction(uint32 view_id, string action) => (bool success); |
| 231 }; | 231 }; |
| OLD | NEW |