| 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 33c3d136ca8414417bf9e22dacc345438d890145..719ed8e938f16f1568c2e6c8617e7be802dc9bae 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/ui/layouts.mojom.dart' as layouts_mojom;
|
|
|
| @@ -80,6 +82,8 @@ class ViewToken extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _ViewOnLayoutParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(24, 0)
|
| @@ -157,6 +161,8 @@ class _ViewOnLayoutParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class ViewOnLayoutResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -225,6 +231,8 @@ class ViewOnLayoutResponseParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _ViewOnChildUnavailableParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -292,6 +300,8 @@ class _ViewOnChildUnavailableParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class ViewOnChildUnavailableResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(8, 0)
|
| @@ -350,6 +360,8 @@ class ViewOnChildUnavailableResponseParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _ViewHostGetServiceProviderParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -416,6 +428,8 @@ class _ViewHostGetServiceProviderParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _ViewHostRequestLayoutParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(8, 0)
|
| @@ -474,6 +488,8 @@ class _ViewHostRequestLayoutParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _ViewHostAddChildParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(24, 0)
|
| @@ -551,6 +567,8 @@ class _ViewHostAddChildParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _ViewHostRemoveChildParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -618,6 +636,8 @@ class _ViewHostRemoveChildParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _ViewHostLayoutChildParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(24, 0)
|
| @@ -695,6 +715,8 @@ class _ViewHostLayoutChildParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class ViewHostLayoutChildResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -762,9 +784,23 @@ 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]) => null;
|
| +
|
| + dynamic getTypeDefinition(String typeKey, [Function responseFactory = null]) =>
|
| + null;
|
| +
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) => null;
|
| +}
|
| +
|
| abstract class View {
|
| static const String serviceName = null;
|
| dynamic onLayout(layouts_mojom.ViewLayoutParams layoutParams,List<int> childrenNeedingLayout,[Function responseFactory = null]);
|
| @@ -787,6 +823,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:
|
| @@ -1028,6 +1067,9 @@ class ViewStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _ViewServiceDescription();
|
| }
|
|
|
| const int _ViewHost_getServiceProviderName = 0;
|
| @@ -1036,6 +1078,17 @@ const int _ViewHost_addChildName = 2;
|
| const int _ViewHost_removeChildName = 3;
|
| const int _ViewHost_layoutChildName = 4;
|
|
|
| +
|
| +
|
| +class _ViewHostServiceDescription implements service_describer.ServiceDescription {
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) => null;
|
| +
|
| + dynamic getTypeDefinition(String typeKey, [Function responseFactory = null]) =>
|
| + null;
|
| +
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) => null;
|
| +}
|
| +
|
| abstract class ViewHost {
|
| static const String serviceName = null;
|
| void getServiceProvider(Object serviceProvider);
|
| @@ -1061,6 +1114,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:
|
| @@ -1303,6 +1359,11 @@ class ViewHostStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _ViewHostServiceDescription();
|
| }
|
|
|
|
|
| +
|
| +
|
|
|