Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/ui/layouts.mojom.dart

Issue 1753013002: Mojom runtime type info: New implementation for Dart. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: No changes to sha1s Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 library layouts_mojom; 5 library layouts_mojom;
6 import 'package:mojo/bindings.dart' as bindings; 6 import 'package:mojo/bindings.dart' as bindings;
7 7
8 import 'package:mojo_services/mojo/geometry.mojom.dart' as geometry_mojom; 8 import 'package:mojo_services/mojo/geometry.mojom.dart' as geometry_mojom;
9 import 'package:mojo_services/mojo/gfx/composition/scene_token.mojom.dart' as sc ene_token_mojom; 9 import 'package:mojo_services/mojo/gfx/composition/scene_token.mojom.dart' as sc ene_token_mojom;
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 Map map = new Map(); 117 Map map = new Map();
118 map["minWidth"] = minWidth; 118 map["minWidth"] = minWidth;
119 map["maxWidth"] = maxWidth; 119 map["maxWidth"] = maxWidth;
120 map["minHeight"] = minHeight; 120 map["minHeight"] = minHeight;
121 map["maxHeight"] = maxHeight; 121 map["maxHeight"] = maxHeight;
122 return map; 122 return map;
123 } 123 }
124 } 124 }
125 125
126 126
127
128
129 class ViewLayoutParams extends bindings.Struct { 127 class ViewLayoutParams extends bindings.Struct {
130 static const List<bindings.StructDataHeader> kVersions = const [ 128 static const List<bindings.StructDataHeader> kVersions = const [
131 const bindings.StructDataHeader(24, 0) 129 const bindings.StructDataHeader(24, 0)
132 ]; 130 ];
133 BoxConstraints constraints = null; 131 BoxConstraints constraints = null;
134 double devicePixelRatio = 1.0; 132 double devicePixelRatio = 1.0;
135 133
136 ViewLayoutParams() : super(kVersions.last.size); 134 ViewLayoutParams() : super(kVersions.last.size);
137 135
138 static ViewLayoutParams deserialize(bindings.Message message) { 136 static ViewLayoutParams deserialize(bindings.Message message) {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 204
207 Map toJson() { 205 Map toJson() {
208 Map map = new Map(); 206 Map map = new Map();
209 map["constraints"] = constraints; 207 map["constraints"] = constraints;
210 map["devicePixelRatio"] = devicePixelRatio; 208 map["devicePixelRatio"] = devicePixelRatio;
211 return map; 209 return map;
212 } 210 }
213 } 211 }
214 212
215 213
216
217
218 class ViewLayoutInfo extends bindings.Struct { 214 class ViewLayoutInfo extends bindings.Struct {
219 static const List<bindings.StructDataHeader> kVersions = const [ 215 static const List<bindings.StructDataHeader> kVersions = const [
220 const bindings.StructDataHeader(24, 0) 216 const bindings.StructDataHeader(24, 0)
221 ]; 217 ];
222 scene_token_mojom.SceneToken sceneToken = null; 218 scene_token_mojom.SceneToken sceneToken = null;
223 geometry_mojom.Size size = null; 219 geometry_mojom.Size size = null;
224 220
225 ViewLayoutInfo() : super(kVersions.last.size); 221 ViewLayoutInfo() : super(kVersions.last.size);
226 222
227 static ViewLayoutInfo deserialize(bindings.Message message) { 223 static ViewLayoutInfo deserialize(bindings.Message message) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 292
297 Map toJson() { 293 Map toJson() {
298 Map map = new Map(); 294 Map map = new Map();
299 map["sceneToken"] = sceneToken; 295 map["sceneToken"] = sceneToken;
300 map["size"] = size; 296 map["size"] = size;
301 return map; 297 return map;
302 } 298 }
303 } 299 }
304 300
305 301
306
307
308 class ViewLayoutResult extends bindings.Struct { 302 class ViewLayoutResult extends bindings.Struct {
309 static const List<bindings.StructDataHeader> kVersions = const [ 303 static const List<bindings.StructDataHeader> kVersions = const [
310 const bindings.StructDataHeader(16, 0) 304 const bindings.StructDataHeader(16, 0)
311 ]; 305 ];
312 geometry_mojom.Size size = null; 306 geometry_mojom.Size size = null;
313 307
314 ViewLayoutResult() : super(kVersions.last.size); 308 ViewLayoutResult() : super(kVersions.last.size);
315 309
316 static ViewLayoutResult deserialize(bindings.Message message) { 310 static ViewLayoutResult deserialize(bindings.Message message) {
317 var decoder = new bindings.Decoder(message); 311 var decoder = new bindings.Decoder(message);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 366
373 Map toJson() { 367 Map toJson() {
374 Map map = new Map(); 368 Map map = new Map();
375 map["size"] = size; 369 map["size"] = size;
376 return map; 370 return map;
377 } 371 }
378 } 372 }
379 373
380 374
381 375
382
383
384
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698