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

Unified Diff: mojo/dart/packages/mojo_services/lib/mojo/context_provider.mojom.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge with master Created 4 years, 11 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_services/lib/mojo/context_provider.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/context_provider.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/context_provider.mojom.dart
index 6eb5e093c5953765c23cfdd094b3f674455765a3..bdf232629fe79eff088ec46c3e2f9b4e902e914d 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/context_provider.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/context_provider.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_services/mojo/command_buffer.mojom.dart' as command_buffer_mojom;
import 'package:mojo_services/mojo/viewport_parameter_listener.mojom.dart' as viewport_parameter_listener_mojom;
@@ -79,6 +81,8 @@ class _ContextProviderCreateParams extends bindings.Struct {
}
+
+
class ContextProviderCreateResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -144,8 +148,21 @@ class ContextProviderCreateResponseParams extends bindings.Struct {
}
}
+
+
+
const int _ContextProvider_createName = 0;
+
+
+class _ContextProviderServiceDescription implements service_describer.ServiceDescription {
+ dynamic getTopLevelInterface([Function responseFactory]) => null;
+
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
+
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null;
+}
+
abstract class ContextProvider {
static const String serviceName = null;
dynamic create(Object viewportParameterListener,[Function responseFactory = null]);
@@ -167,6 +184,9 @@ class _ContextProviderProxyImpl extends bindings.Proxy {
return new _ContextProviderProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _ContextProviderServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case _ContextProvider_createName:
@@ -352,6 +372,10 @@ class ContextProviderStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _ContextProviderServiceDescription();
}
+

Powered by Google App Engine
This is Rietveld 408576698