| 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/scenes.mojom"; | 9 import "mojo/services/gfx/composition/interfaces/scenes.mojom"; |
| 10 import "mojo/services/ui/views/interfaces/layouts.mojom"; | 10 import "mojo/services/ui/views/interfaces/layouts.mojom"; |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // | 124 // |
| 125 // Recursive layout happens in any of the following circumstances: | 125 // Recursive layout happens in any of the following circumstances: |
| 126 // | 126 // |
| 127 // 1. If the resulting scene has changed since the last layout. | 127 // 1. If the resulting scene has changed since the last layout. |
| 128 // 2. If the resulting size has changed since the last layout. | 128 // 2. If the resulting size has changed since the last layout. |
| 129 // | 129 // |
| 130 // It is an error to return a malformed |result| which does not satisfy | 130 // It is an error to return a malformed |result| which does not satisfy |
| 131 // the requested |layout_params|, such as by returning a size which | 131 // the requested |layout_params|, such as by returning a size which |
| 132 // exceeds the requested constraints; the view's connection will be closed. | 132 // exceeds the requested constraints; the view's connection will be closed. |
| 133 OnLayout(mojo.ui.ViewLayoutParams layout_params, | 133 OnLayout(mojo.ui.ViewLayoutParams layout_params, |
| 134 array<uint32> children_needing_layout) => (mojo.ui.ViewLayoutResult result); | 134 array<uint32> children_needing_layout) |
| 135 => (mojo.ui.ViewLayoutResult result); |
| 135 }; | 136 }; |
| OLD | NEW |