| 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 3b79c70f0f627b61aeacea600519b3f6a43efd92..6d713febe4ec3563ebd4556f7749baa5ad92afd9 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/bindings/types/mojom_types.mojom.dart' as mojom_types;
|
| +import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as service_describer;
|
| import 'package:mojo/mojo/service_provider.mojom.dart' as service_provider_mojom;
|
| import 'package:mojo_services/mojo/gfx/composition/scenes.mojom.dart' as scenes_mojom;
|
| import 'package:mojo_services/mojo/ui/layouts.mojom.dart' as layouts_mojom;
|
| @@ -81,6 +83,8 @@ class ViewToken extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _ViewOnLayoutParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(24, 0)
|
| @@ -158,6 +162,8 @@ class _ViewOnLayoutParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class ViewOnLayoutResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -226,6 +232,8 @@ class ViewOnLayoutResponseParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _ViewOnChildUnavailableParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -293,6 +301,8 @@ class _ViewOnChildUnavailableParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class ViewOnChildUnavailableResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(8, 0)
|
| @@ -351,6 +361,8 @@ class ViewOnChildUnavailableResponseParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _ViewHostGetServiceProviderParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -417,6 +429,8 @@ class _ViewHostGetServiceProviderParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _ViewHostCreateSceneParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -483,6 +497,8 @@ class _ViewHostCreateSceneParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _ViewHostRequestLayoutParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(8, 0)
|
| @@ -541,6 +557,8 @@ class _ViewHostRequestLayoutParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _ViewHostAddChildParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(24, 0)
|
| @@ -618,6 +636,8 @@ class _ViewHostAddChildParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _ViewHostRemoveChildParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -685,6 +705,8 @@ class _ViewHostRemoveChildParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _ViewHostLayoutChildParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(24, 0)
|
| @@ -762,6 +784,8 @@ class _ViewHostLayoutChildParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class ViewHostLayoutChildResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -829,9 +853,22 @@ class ViewHostLayoutChildResponseParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +
|
| +
|
| +
|
| const int _View_onLayoutName = 0;
|
| const int _View_onChildUnavailableName = 1;
|
|
|
| +
|
| +
|
| +class _ViewServiceDescription implements service_describer.ServiceDescription {
|
| + dynamic getTopLevelInterface([Function responseFactory]) => null;
|
| +
|
| + dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
|
| +
|
| + dynamic getAllTypeDefinitions([Function responseFactory]) => null;
|
| +}
|
| +
|
| abstract class View {
|
| static const String serviceName = null;
|
| dynamic onLayout(layouts_mojom.ViewLayoutParams layoutParams,List<int> childrenNeedingLayout,[Function responseFactory = null]);
|
| @@ -854,6 +891,9 @@ class _ViewProxyImpl extends bindings.Proxy {
|
| return new _ViewProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _ViewServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| case _View_onLayoutName:
|
| @@ -1095,6 +1135,9 @@ class ViewStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _ViewServiceDescription();
|
| }
|
|
|
| const int _ViewHost_getServiceProviderName = 0;
|
| @@ -1104,6 +1147,16 @@ const int _ViewHost_addChildName = 3;
|
| const int _ViewHost_removeChildName = 4;
|
| const int _ViewHost_layoutChildName = 5;
|
|
|
| +
|
| +
|
| +class _ViewHostServiceDescription implements service_describer.ServiceDescription {
|
| + dynamic getTopLevelInterface([Function responseFactory]) => null;
|
| +
|
| + dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
|
| +
|
| + dynamic getAllTypeDefinitions([Function responseFactory]) => null;
|
| +}
|
| +
|
| abstract class ViewHost {
|
| static const String serviceName = null;
|
| void getServiceProvider(Object serviceProvider);
|
| @@ -1130,6 +1183,9 @@ class _ViewHostProxyImpl extends bindings.Proxy {
|
| return new _ViewHostProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _ViewHostServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| case _ViewHost_layoutChildName:
|
| @@ -1386,6 +1442,10 @@ class ViewHostStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _ViewHostServiceDescription();
|
| }
|
|
|
|
|
| +
|
|
|