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

Unified Diff: mojo/dart/packages/mojo_services/lib/http_server/http_server.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/http_server/http_server.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/http_server/http_server.mojom.dart b/mojo/dart/packages/mojo_services/lib/http_server/http_server.mojom.dart
index d72979f683608945c306f8c1fb2020029033dc5f..5e5c37f503f04f9432f0ee235bef21b94ee0e6f3 100644
--- a/mojo/dart/packages/mojo_services/lib/http_server/http_server.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/http_server/http_server.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/http_server/http_request.mojom.dart' as http_request_mojom;
import 'package:mojo_services/http_server/http_response.mojom.dart' as http_response_mojom;
@@ -87,6 +89,8 @@ class _HttpServerSetHandlerParams extends bindings.Struct {
}
+
+
class HttpServerSetHandlerResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -154,6 +158,8 @@ class HttpServerSetHandlerResponseParams extends bindings.Struct {
}
+
+
class _HttpServerGetPortParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(8, 0)
@@ -212,6 +218,8 @@ class _HttpServerGetPortParams extends bindings.Struct {
}
+
+
class HttpServerGetPortResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -279,6 +287,8 @@ class HttpServerGetPortResponseParams extends bindings.Struct {
}
+
+
class _HttpHandlerHandleRequestParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -346,6 +356,8 @@ class _HttpHandlerHandleRequestParams extends bindings.Struct {
}
+
+
class HttpHandlerHandleRequestResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -412,9 +424,22 @@ class HttpHandlerHandleRequestResponseParams extends bindings.Struct {
}
}
+
+
+
const int _HttpServer_setHandlerName = 0;
const int _HttpServer_getPortName = 1;
+
+
+class _HttpServerServiceDescription implements service_describer.ServiceDescription {
+ dynamic getTopLevelInterface([Function responseFactory]) => null;
+
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
+
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null;
+}
+
abstract class HttpServer {
static const String serviceName = null;
dynamic setHandler(String pattern,Object handler,[Function responseFactory = null]);
@@ -437,6 +462,9 @@ class _HttpServerProxyImpl extends bindings.Proxy {
return new _HttpServerProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _HttpServerServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case _HttpServer_setHandlerName:
@@ -678,10 +706,23 @@ class HttpServerStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _HttpServerServiceDescription();
}
const int _HttpHandler_handleRequestName = 0;
+
+
+class _HttpHandlerServiceDescription implements service_describer.ServiceDescription {
+ dynamic getTopLevelInterface([Function responseFactory]) => null;
+
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
+
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null;
+}
+
abstract class HttpHandler {
static const String serviceName = null;
dynamic handleRequest(http_request_mojom.HttpRequest request,[Function responseFactory = null]);
@@ -703,6 +744,9 @@ class _HttpHandlerProxyImpl extends bindings.Proxy {
return new _HttpHandlerProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _HttpHandlerServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case _HttpHandler_handleRequestName:
@@ -888,6 +932,10 @@ class HttpHandlerStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _HttpHandlerServiceDescription();
}
+

Powered by Google App Engine
This is Rietveld 408576698