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 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
6 module mojo.ui; | 6 module mojo.ui; |
7 | 7 |
8 import "mojo/public/interfaces/application/service_provider.mojom"; | 8 import "mojo/public/interfaces/application/service_provider.mojom"; |
9 import "mojo/services/gfx/composition/interfaces/renderers.mojom"; | 9 import "mojo/services/gfx/composition/interfaces/renderers.mojom"; |
10 import "mojo/services/ui/views/interfaces/layouts.mojom"; | 10 import "mojo/services/ui/views/interfaces/layouts.mojom"; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 SetRoot(uint32 root_key, mojo.ui.ViewOwner root_view_owner); | 110 SetRoot(uint32 root_key, mojo.ui.ViewOwner root_view_owner); |
111 | 111 |
112 // Removes the root of the view tree. | 112 // Removes the root of the view tree. |
113 // | 113 // |
114 // If |transferred_view_owner| is not null, associates it with the previously | 114 // If |transferred_view_owner| is not null, associates it with the previously |
115 // configured view or closes the |transferred_view_owner| message pipe | 115 // configured view or closes the |transferred_view_owner| message pipe |
116 // if there was none. | 116 // if there was none. |
117 // | 117 // |
118 // It is an error to call this function if the root was not previously set; | 118 // It is an error to call this function if the root was not previously set; |
119 // the connection will be closed. | 119 // the connection will be closed. |
120 ResetRoot(mojo.ui.ViewOwner&? transferred_view_owner); | 120 ClearRoot(mojo.ui.ViewOwner&? transferred_view_owner); |
121 | 121 |
122 // Sets the layout parameters of the root of the view tree and retrieves | 122 // Sets the layout parameters of the root of the view tree and retrieves |
123 // its layout information. | 123 // its layout information. |
124 // | 124 // |
125 // The returned |info| is null if this layout request was canceled either | 125 // The returned |info| is null if this layout request was canceled either |
126 // because it has been superceded by a subsequently issued layout request | 126 // because it has been superceded by a subsequently issued layout request |
127 // or because the root has become unavailable. | 127 // or because the root has become unavailable. |
128 // | 128 // |
129 // It is an error to call this function if the view tree does not currently | 129 // It is an error to call this function if the view tree does not currently |
130 // have a root; the connection will be closed. | 130 // have a root; the connection will be closed. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // The implementation should invoke the callback once the event has | 162 // The implementation should invoke the callback once the event has |
163 // been handled. | 163 // been handled. |
164 OnRootUnavailable(uint32 root_key) => (); | 164 OnRootUnavailable(uint32 root_key) => (); |
165 | 165 |
166 // Called when the tree's renderer connection closed unexpectedly. | 166 // Called when the tree's renderer connection closed unexpectedly. |
167 // | 167 // |
168 // The implementation should invoke the callback once the event has | 168 // The implementation should invoke the callback once the event has |
169 // been handled. | 169 // been handled. |
170 OnRendererDied() => (); | 170 OnRendererDied() => (); |
171 }; | 171 }; |
OLD | NEW |