Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Unified Diff: mojo/dart/packages/mojo/lib/mojo/shell.mojom.dart

Issue 2034383003: Removed exposed_services from mojom definitions. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/dart/packages/mojo/lib/mojo/shell.mojom.dart
diff --git a/mojo/dart/packages/mojo/lib/mojo/shell.mojom.dart b/mojo/dart/packages/mojo/lib/mojo/shell.mojom.dart
index a77119ee97dc7eac9d18b6dc054e84b876106fba..089512263ea7d98983c125d2561b3cf27c56b46a 100644
--- a/mojo/dart/packages/mojo/lib/mojo/shell.mojom.dart
+++ b/mojo/dart/packages/mojo/lib/mojo/shell.mojom.dart
@@ -14,11 +14,10 @@ import 'package:mojo/mojo/service_provider.mojom.dart' as service_provider_mojom
class _ShellConnectToApplicationParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
- const bindings.StructDataHeader(32, 0)
+ const bindings.StructDataHeader(24, 0)
];
String applicationUrl = null;
service_provider_mojom.ServiceProviderInterfaceRequest services = null;
- service_provider_mojom.ServiceProviderInterface exposedServices = null;
_ShellConnectToApplicationParams() : super(kVersions.last.size);
@@ -61,11 +60,7 @@ class _ShellConnectToApplicationParams extends bindings.Struct {
}
if (mainDataHeader.version >= 0) {
- result.services = decoder0.decodeInterfaceRequest(16, true, service_provider_mojom.ServiceProviderStub.newFromEndpoint);
- }
- if (mainDataHeader.version >= 0) {
-
- result.exposedServices = decoder0.decodeServiceInterface(20, true, service_provider_mojom.ServiceProviderProxy.newFromEndpoint);
+ result.services = decoder0.decodeInterfaceRequest(16, false, service_provider_mojom.ServiceProviderStub.newFromEndpoint);
}
return result;
}
@@ -80,26 +75,18 @@ class _ShellConnectToApplicationParams extends bindings.Struct {
rethrow;
}
try {
- encoder0.encodeInterfaceRequest(services, 16, true);
+ encoder0.encodeInterfaceRequest(services, 16, false);
} on bindings.MojoCodecError catch(e) {
e.message = "Error encountered while encoding field "
"services of struct _ShellConnectToApplicationParams: $e";
rethrow;
}
- try {
- encoder0.encodeInterface(exposedServices, 20, true);
- } on bindings.MojoCodecError catch(e) {
- e.message = "Error encountered while encoding field "
- "exposedServices of struct _ShellConnectToApplicationParams: $e";
- rethrow;
- }
}
String toString() {
return "_ShellConnectToApplicationParams("
"applicationUrl: $applicationUrl" ", "
- "services: $services" ", "
- "exposedServices: $exposedServices" ")";
+ "services: $services" ")";
}
Map toJson() {
@@ -215,7 +202,7 @@ abstract class Shell {
s.connectToService(url, p, name);
return p;
}
- void connectToApplication(String applicationUrl, service_provider_mojom.ServiceProviderInterfaceRequest services, service_provider_mojom.ServiceProviderInterface exposedServices);
+ void connectToApplication(String applicationUrl, service_provider_mojom.ServiceProviderInterfaceRequest services);
void createApplicationConnector(application_connector_mojom.ApplicationConnectorInterfaceRequest applicationConnectorRequest);
}
@@ -302,9 +289,9 @@ class ShellProxy
}
- void connectToApplication(String applicationUrl, service_provider_mojom.ServiceProviderInterfaceRequest services, service_provider_mojom.ServiceProviderInterface exposedServices) {
+ void connectToApplication(String applicationUrl, service_provider_mojom.ServiceProviderInterfaceRequest services) {
if (impl != null) {
- impl.connectToApplication(applicationUrl, services, exposedServices);
+ impl.connectToApplication(applicationUrl, services);
return;
}
if (!ctrl.isBound) {
@@ -314,7 +301,6 @@ class ShellProxy
var params = new _ShellConnectToApplicationParams();
params.applicationUrl = applicationUrl;
params.services = services;
- params.exposedServices = exposedServices;
ctrl.sendMessage(params,
_shellMethodConnectToApplicationName);
}
@@ -370,7 +356,7 @@ class _ShellStubControl
case _shellMethodConnectToApplicationName:
var params = _ShellConnectToApplicationParams.deserialize(
message.payload);
- _impl.connectToApplication(params.applicationUrl, params.services, params.exposedServices);
+ _impl.connectToApplication(params.applicationUrl, params.services);
break;
case _shellMethodCreateApplicationConnectorName:
var params = _ShellCreateApplicationConnectorParams.deserialize(
@@ -435,8 +421,8 @@ class ShellStub
}
- void connectToApplication(String applicationUrl, service_provider_mojom.ServiceProviderInterfaceRequest services, service_provider_mojom.ServiceProviderInterface exposedServices) {
- return impl.connectToApplication(applicationUrl, services, exposedServices);
+ void connectToApplication(String applicationUrl, service_provider_mojom.ServiceProviderInterfaceRequest services) {
+ return impl.connectToApplication(applicationUrl, services);
}
void createApplicationConnector(application_connector_mojom.ApplicationConnectorInterfaceRequest applicationConnectorRequest) {
return impl.createApplicationConnector(applicationConnectorRequest);
« no previous file with comments | « mojo/dart/packages/mojo/lib/mojo/application_connector.mojom.dart ('k') | mojo/dart/packages/mojo/lib/src/application.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698