| Index: mojo/dart/packages/mojo_services/lib/mojo/asset_bundle/asset_bundle.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo_services/lib/mojo/asset_bundle/asset_bundle.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/asset_bundle/asset_bundle.mojom.dart
|
| index 23c29b601ad18847dfe06c695408fb70434cce00..7a94f780c8c9396085e32644f3eb893632857833 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/mojo/asset_bundle/asset_bundle.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/mojo/asset_bundle/asset_bundle.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;
|
|
|
|
|
|
|
| @@ -78,6 +80,8 @@ class _AssetBundleGetAsStreamParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class AssetBundleGetAsStreamResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -144,6 +148,8 @@ class AssetBundleGetAsStreamResponseParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _AssetUnpackerUnpackZipStreamParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -217,8 +223,22 @@ class _AssetUnpackerUnpackZipStreamParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +
|
| +
|
| +
|
| const int _AssetBundle_getAsStreamName = 0;
|
|
|
| +
|
| +
|
| +class _AssetBundleServiceDescription 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 AssetBundle {
|
| static const String serviceName = "mojo::asset_bundle::AssetBundle";
|
| dynamic getAsStream(String assetName,[Function responseFactory = null]);
|
| @@ -240,6 +260,9 @@ class _AssetBundleProxyImpl extends bindings.Proxy {
|
| return new _AssetBundleProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _AssetBundleServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| case _AssetBundle_getAsStreamName:
|
| @@ -425,10 +448,24 @@ class AssetBundleStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _AssetBundleServiceDescription();
|
| }
|
|
|
| const int _AssetUnpacker_unpackZipStreamName = 0;
|
|
|
| +
|
| +
|
| +class _AssetUnpackerServiceDescription 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 AssetUnpacker {
|
| static const String serviceName = "mojo::asset_bundle::AssetUnpacker";
|
| void unpackZipStream(core.MojoDataPipeConsumer zippedAssets, Object assetBundle);
|
| @@ -450,6 +487,9 @@ class _AssetUnpackerProxyImpl extends bindings.Proxy {
|
| return new _AssetUnpackerProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _AssetUnpackerServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| default:
|
| @@ -594,6 +634,11 @@ class AssetUnpackerStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _AssetUnpackerServiceDescription();
|
| }
|
|
|
|
|
| +
|
| +
|
|
|