Index: mojo/dart/packages/mojo_services/lib/mojo/ui/views.mojom.dart |
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/ui/views.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/ui/views.mojom.dart |
index f30ae9341dfd3814ea1bd74978413b3f0c3e54a2..90d2871decd59584f1730c61abfca3aa8d022a28 100644 |
--- a/mojo/dart/packages/mojo_services/lib/mojo/ui/views.mojom.dart |
+++ b/mojo/dart/packages/mojo_services/lib/mojo/ui/views.mojom.dart |
@@ -8,6 +8,8 @@ import 'dart:async'; |
import 'package:mojo/bindings.dart' as bindings; |
import 'package:mojo/core.dart' as core; |
+import 'package:mojo/mojo/mojom_types.mojom.dart' as mojom_types; |
+import 'package:mojo/mojo/service_describer.mojom.dart' as service_describer; |
import 'package:mojo/mojo/service_provider.mojom.dart' as service_provider_mojom; |
import 'package:mojo_services/mojo/ui/layouts.mojom.dart' as layouts_mojom; |
@@ -79,6 +81,16 @@ class ViewToken extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _views_ViewToken__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ViewToken') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Value') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT32), |
+ ]; |
+} |
+ |
class ViewOnLayoutParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -156,6 +168,26 @@ class ViewOnLayoutParams extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _views_View_OnLayout_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ViewOnLayoutParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'LayoutParams') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_layouts_ViewLayoutParams__' |
+ ..typeKey = '_layouts_ViewLayoutParams__' |
+ )), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ChildrenNeedingLayout') |
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType() |
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT32))), |
+ ]; |
+} |
+ |
class ViewOnLayoutResponseParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -224,6 +256,21 @@ class ViewOnLayoutResponseParams extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _views_View_OnLayout_ResponseParams__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ViewOnLayoutResponseParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Info') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_layouts_ViewLayoutInfo__' |
+ ..typeKey = '_layouts_ViewLayoutInfo__' |
+ )), |
+ ]; |
+} |
+ |
class ViewOnChildUnavailableParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -291,6 +338,16 @@ class ViewOnChildUnavailableParams extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _views_View_OnChildUnavailable_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ViewOnChildUnavailableParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ChildKey') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT32), |
+ ]; |
+} |
+ |
class ViewOnChildUnavailableResponseParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -349,6 +406,12 @@ class ViewOnChildUnavailableResponseParams extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _views_View_OnChildUnavailable_ResponseParams__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ViewOnChildUnavailableResponseParams') |
+ ..fields = <mojom_types.StructField>[]; |
+} |
+ |
class ViewHostGetServiceProviderParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -415,6 +478,22 @@ class ViewHostGetServiceProviderParams extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _views_ViewHost_GetServiceProvider_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ViewHostGetServiceProviderParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ServiceProvider') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..isInterfaceRequest = true |
+ ..identifier = '_service_provider_ServiceProvider__' |
+ ..typeKey = '_service_provider_ServiceProvider__' |
+ )), |
+ ]; |
+} |
+ |
class ViewHostRequestLayoutParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -473,6 +552,12 @@ class ViewHostRequestLayoutParams extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _views_ViewHost_RequestLayout_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ViewHostRequestLayoutParams') |
+ ..fields = <mojom_types.StructField>[]; |
+} |
+ |
class ViewHostAddChildParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -550,6 +635,25 @@ class ViewHostAddChildParams extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _views_ViewHost_AddChild_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ViewHostAddChildParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ChildKey') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT32), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ChildViewToken') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_views_ViewToken__' |
+ ..typeKey = '_views_ViewToken__' |
+ )), |
+ ]; |
+} |
+ |
class ViewHostRemoveChildParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -617,6 +721,16 @@ class ViewHostRemoveChildParams extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _views_ViewHost_RemoveChild_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ViewHostRemoveChildParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ChildKey') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT32), |
+ ]; |
+} |
+ |
class ViewHostLayoutChildParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -694,6 +808,25 @@ class ViewHostLayoutChildParams extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _views_ViewHost_LayoutChild_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ViewHostLayoutChildParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ChildKey') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT32), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ChildLayoutParams') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_layouts_ViewLayoutParams__' |
+ ..typeKey = '_layouts_ViewLayoutParams__' |
+ )), |
+ ]; |
+} |
+ |
class ViewHostLayoutChildResponseParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -762,12 +895,59 @@ class ViewHostLayoutChildResponseParams extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _views_ViewHost_LayoutChild_ResponseParams__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ViewHostLayoutChildResponseParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Info') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ ..nullable = true |
+ |
+ |
+ ..identifier = '_layouts_ViewLayoutInfo__' |
+ ..typeKey = '_layouts_ViewLayoutInfo__' |
+ )), |
+ ]; |
+} |
+ |
+ |
const int kView_onLayout_name = 0; |
const int kView_onChildUnavailable_name = 1; |
const String ViewName = |
'mojo::ui::View'; |
+mojom_types.MojomInterface _views_View__() { |
+ return new mojom_types.MojomInterface() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "View") |
+ ..interfaceName = "View" |
+ ..methods = <int, mojom_types.MojomMethod>{ |
+kView_onLayout_name: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "OnLayout") |
+ ..ordinal = kView_onLayout_name |
+ ..responseParams = _views_View_OnLayout_ResponseParams__()..parameters = _views_View_OnLayout_Params__(),kView_onChildUnavailable_name: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "OnChildUnavailable") |
+ ..ordinal = kView_onChildUnavailable_name |
+ ..responseParams = _views_View_OnChildUnavailable_ResponseParams__()..parameters = _views_View_OnChildUnavailable_Params__(), |
+ }; |
+} |
+ |
+class _ViewServiceDescription extends service_describer.ServiceDescription { |
+ // Avoid infinite loop by overriding serviceDescription field. |
+ final service_describer.ServiceDescription serviceDescription = null; |
+dynamic getTopLevelInterface([Function responseFactory = null]) { |
+ return _views_View__(); |
+ } |
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions()[typeKey]; |
+ } |
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions(); |
+ } |
+} |
+ |
abstract class View { |
dynamic onLayout(layouts_mojom.ViewLayoutParams layoutParams,List<int> childrenNeedingLayout,[Function responseFactory = null]); |
dynamic onChildUnavailable(int childKey,[Function responseFactory = null]); |
@@ -792,6 +972,9 @@ class ViewProxyImpl extends bindings.Proxy { |
String get name => ViewName; |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _ViewServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
case kView_onLayout_name: |
@@ -1034,6 +1217,9 @@ class ViewStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _ViewServiceDescription(); |
} |
const int kViewHost_getServiceProvider_name = 0; |
@@ -1045,6 +1231,40 @@ const int kViewHost_layoutChild_name = 4; |
const String ViewHostName = |
'mojo::ui::ViewHost'; |
+mojom_types.MojomInterface _views_ViewHost__() { |
+ return new mojom_types.MojomInterface() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "ViewHost") |
+ ..interfaceName = "ViewHost" |
+ ..methods = <int, mojom_types.MojomMethod>{ |
+kViewHost_getServiceProvider_name: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "GetServiceProvider") |
+ ..ordinal = kViewHost_getServiceProvider_name..parameters = _views_ViewHost_GetServiceProvider_Params__(),kViewHost_requestLayout_name: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "RequestLayout") |
+ ..ordinal = kViewHost_requestLayout_name..parameters = _views_ViewHost_RequestLayout_Params__(),kViewHost_addChild_name: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "AddChild") |
+ ..ordinal = kViewHost_addChild_name..parameters = _views_ViewHost_AddChild_Params__(),kViewHost_removeChild_name: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "RemoveChild") |
+ ..ordinal = kViewHost_removeChild_name..parameters = _views_ViewHost_RemoveChild_Params__(),kViewHost_layoutChild_name: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "LayoutChild") |
+ ..ordinal = kViewHost_layoutChild_name |
+ ..responseParams = _views_ViewHost_LayoutChild_ResponseParams__()..parameters = _views_ViewHost_LayoutChild_Params__(), |
+ }; |
+} |
+ |
+class _ViewHostServiceDescription extends service_describer.ServiceDescription { |
+ // Avoid infinite loop by overriding serviceDescription field. |
+ final service_describer.ServiceDescription serviceDescription = null; |
+dynamic getTopLevelInterface([Function responseFactory = null]) { |
+ return _views_ViewHost__(); |
+ } |
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions()[typeKey]; |
+ } |
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions(); |
+ } |
+} |
+ |
abstract class ViewHost { |
void getServiceProvider(Object serviceProvider); |
void requestLayout(); |
@@ -1072,6 +1292,9 @@ class ViewHostProxyImpl extends bindings.Proxy { |
String get name => ViewHostName; |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _ViewHostServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
case kViewHost_layoutChild_name: |
@@ -1319,6 +1542,133 @@ class ViewHostStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _ViewHostServiceDescription(); |
+} |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+var _MojomDesc__ = _initDescriptions(); |
+ |
+Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
+ var map = new Map<String, mojom_types.UserDefinedType>(); |
+ |
+ map["_views_ViewToken__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _views_ViewToken__(); |
+ |
+ |
+ |
+ |
+ |
+ map["_views_View_OnLayout_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _views_View_OnLayout_Params__(); |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ map["_views_View_OnLayout_ResponseParams__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _views_View_OnLayout_ResponseParams__(); |
+ |
+ |
+ |
+ |
+ |
+ map["_views_View_OnChildUnavailable_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _views_View_OnChildUnavailable_Params__(); |
+ |
+ |
+ |
+ |
+ |
+ map["_views_View_OnChildUnavailable_ResponseParams__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _views_View_OnChildUnavailable_ResponseParams__(); |
+ |
+ |
+ |
+ map["_views_ViewHost_GetServiceProvider_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _views_ViewHost_GetServiceProvider_Params__(); |
+ |
+ |
+ |
+ |
+ |
+ map["_views_ViewHost_RequestLayout_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _views_ViewHost_RequestLayout_Params__(); |
+ |
+ |
+ |
+ map["_views_ViewHost_AddChild_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _views_ViewHost_AddChild_Params__(); |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ map["_views_ViewHost_RemoveChild_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _views_ViewHost_RemoveChild_Params__(); |
+ |
+ |
+ |
+ |
+ |
+ map["_views_ViewHost_LayoutChild_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _views_ViewHost_LayoutChild_Params__(); |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ map["_views_ViewHost_LayoutChild_ResponseParams__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _views_ViewHost_LayoutChild_ResponseParams__(); |
+ |
+ |
+ |
+ |
+ |
+ map["_views_View__"] = |
+ new mojom_types.UserDefinedType() |
+ ..interfaceType = _views_View__(); |
+ |
+ |
+ map["_views_ViewHost__"] = |
+ new mojom_types.UserDefinedType() |
+ ..interfaceType = _views_ViewHost__(); |
+ |
+service_provider_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) { |
+ map[s] = udt; |
+}); |
+layouts_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) { |
+ map[s] = udt; |
+}); |
+ return map; |
+} |
+ |
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
+ return _MojomDesc__; |
} |