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/view_manager/public/interfaces/compositor_frame.mojom"; |
7 import "components/view_manager/public/interfaces/surface_id.mojom"; | 8 import "components/view_manager/public/interfaces/surface_id.mojom"; |
8 import "components/view_manager/public/interfaces/view_manager_constants.mojom"; | 9 import "components/view_manager/public/interfaces/view_manager_constants.mojom"; |
9 import "mojo/application/public/interfaces/service_provider.mojom"; | 10 import "mojo/application/public/interfaces/service_provider.mojom"; |
10 import "network/public/interfaces/url_loader.mojom"; | 11 import "network/public/interfaces/url_loader.mojom"; |
11 import "ui/mojo/events/input_events.mojom"; | 12 import "ui/mojo/events/input_events.mojom"; |
12 import "ui/mojo/ime/text_input_state.mojom"; | 13 import "ui/mojo/ime/text_input_state.mojom"; |
13 import "ui/mojo/geometry/geometry.mojom"; | 14 import "ui/mojo/geometry/geometry.mojom"; |
14 | 15 |
15 struct ViewportMetrics { | 16 struct ViewportMetrics { |
16 Size size_in_pixels; | 17 Size size_in_pixels; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // allowed to change the visibility of any view they have created, as well as | 69 // allowed to change the visibility of any view they have created, as well as |
69 // any of their roots. | 70 // any of their roots. |
70 SetViewVisibility(uint32 view_id, bool visible) => (bool success); | 71 SetViewVisibility(uint32 view_id, bool visible) => (bool success); |
71 | 72 |
72 // Sets an individual named property. Setting an individual property to null | 73 // Sets an individual named property. Setting an individual property to null |
73 // deletes the property. | 74 // deletes the property. |
74 SetViewProperty(uint32 view_id, | 75 SetViewProperty(uint32 view_id, |
75 string name, | 76 string name, |
76 array<uint8>? value) => (bool success); | 77 array<uint8>? value) => (bool success); |
77 | 78 |
| 79 // Sets the CompositorFrameReceiver on a particular view. |
| 80 RequestCompositorFrameReceiver(uint32 view_id, |
| 81 CompositorFrameReceiver& receiver); |
| 82 |
78 // Reparents a view. | 83 // Reparents a view. |
79 // This fails for any of the following reasons: | 84 // This fails for any of the following reasons: |
80 // . |parent| or |child| does not identify a valid view. | 85 // . |parent| or |child| does not identify a valid view. |
81 // . |child| is an ancestor of |parent|. | 86 // . |child| is an ancestor of |parent|. |
82 // . |child| is already a child of |parent|. | 87 // . |child| is already a child of |parent|. |
83 // | 88 // |
84 // This may result in a connection getting OnViewDeleted(). See | 89 // This may result in a connection getting OnViewDeleted(). See |
85 // RemoveViewFromParent for details. | 90 // RemoveViewFromParent for details. |
86 AddView(uint32 parent, uint32 child) => (bool success); | 91 AddView(uint32 parent, uint32 child) => (bool success); |
87 | 92 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 243 |
239 // Invoked when a view property is changed. If this change is a removal, | 244 // Invoked when a view property is changed. If this change is a removal, |
240 // |new_data| is null. | 245 // |new_data| is null. |
241 OnViewSharedPropertyChanged(uint32 view, string name, array<uint8>? new_data); | 246 OnViewSharedPropertyChanged(uint32 view, string name, array<uint8>? new_data); |
242 | 247 |
243 // Invoked when an event is targeted at the specified view. | 248 // Invoked when an event is targeted at the specified view. |
244 OnViewInputEvent(uint32 view, mojo.Event event) => (); | 249 OnViewInputEvent(uint32 view, mojo.Event event) => (); |
245 | 250 |
246 OnViewFocused(uint32 focused_view_id); | 251 OnViewFocused(uint32 focused_view_id); |
247 }; | 252 }; |
OLD | NEW |