| Index: mojo/dart/packages/mojo_services/lib/mojo/ui/layouts.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo_services/lib/mojo/ui/layouts.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/ui/layouts.mojom.dart
|
| index bc16ff7cd94f445a127443f083ca65e40020ef84..98921d1bcc71c97b2547b1e76941caa4c20ccbc1 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/mojo/ui/layouts.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/mojo/ui/layouts.mojom.dart
|
| @@ -5,9 +5,12 @@
|
| library layouts_mojom;
|
|
|
| import 'dart:async';
|
| +import 'dart:collection';
|
|
|
| import 'package:mojo/bindings.dart' as bindings;
|
| import 'package:mojo/core.dart' as core;
|
| +import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
|
| +
|
| import 'package:mojo_services/mojo/geometry.mojom.dart' as geometry_mojom;
|
| import 'package:mojo_services/mojo/surface_id.mojom.dart' as surface_id_mojom;
|
|
|
| @@ -105,6 +108,29 @@ class BoxConstraints extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _layouts_BoxConstraints__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'BoxConstraints'
|
| + ..fullIdentifier = 'mojo.ui.BoxConstraints')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'MinWidth')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxWidth')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'MinHeight')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxHeight')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
|
| + ];
|
| +}
|
|
|
|
|
| class ViewLayoutParams extends bindings.Struct {
|
| @@ -182,6 +208,26 @@ class ViewLayoutParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _layouts_ViewLayoutParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'ViewLayoutParams'
|
| + ..fullIdentifier = 'mojo.ui.ViewLayoutParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Constraints')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_layouts_BoxConstraints__'
|
| + ..typeKey = '_layouts_BoxConstraints__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'DevicePixelRatio')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float),
|
| + ];
|
| +}
|
|
|
|
|
| class ViewLayoutInfo extends bindings.Struct {
|
| @@ -260,5 +306,65 @@ class ViewLayoutInfo extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _layouts_ViewLayoutInfo__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'ViewLayoutInfo'
|
| + ..fullIdentifier = 'mojo.ui.ViewLayoutInfo')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'SurfaceId')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_surface_id_SurfaceId__'
|
| + ..typeKey = '_surface_id_SurfaceId__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Size')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_geometry_Size__'
|
| + ..typeKey = '_geometry_Size__'
|
| + )),
|
| + ];
|
| +}
|
| +
|
| +
|
|
|
|
|
| +
|
| +
|
| +
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new HashMap<String, mojom_types.UserDefinedType>();
|
| +map["_layouts_BoxConstraints__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _layouts_BoxConstraints__();
|
| +map["_layouts_ViewLayoutParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _layouts_ViewLayoutParams__();
|
| +map["_layouts_ViewLayoutInfo__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _layouts_ViewLayoutInfo__();
|
| +geometry_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) {
|
| + map[s] = udt;
|
| +});
|
| +surface_id_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) {
|
| + map[s] = udt;
|
| +});
|
| +
|
| + return map;
|
| +}
|
| +
|
| +var _MojomDesc;
|
| +Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
|
| + if (_MojomDesc == null) {
|
| + _MojomDesc = _initDescriptions();
|
| + }
|
| + return _MojomDesc;
|
| +}
|
| +
|
|
|