Index: mojo/dart/packages/mojo_services/lib/mojo/web_socket.mojom.dart |
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/web_socket.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/web_socket.mojom.dart |
index 19e8337d7e16c6679ff91975bf241a7b2a6ebe94..b840fb7f52a288724f88be8745af4edd31b98ac4 100644 |
--- a/mojo/dart/packages/mojo_services/lib/mojo/web_socket.mojom.dart |
+++ b/mojo/dart/packages/mojo_services/lib/mojo/web_socket.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/network_error.mojom.dart' as network_error_mojom; |
@@ -126,6 +128,8 @@ class _WebSocketConnectParams extends bindings.Struct { |
} |
+ |
+ |
class _WebSocketSendParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(24, 0) |
@@ -215,6 +219,8 @@ class _WebSocketSendParams extends bindings.Struct { |
} |
+ |
+ |
class _WebSocketFlowControlParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(16, 0) |
@@ -282,6 +288,8 @@ class _WebSocketFlowControlParams extends bindings.Struct { |
} |
+ |
+ |
class _WebSocketCloseParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(24, 0) |
@@ -358,6 +366,8 @@ class _WebSocketCloseParams extends bindings.Struct { |
} |
+ |
+ |
class _WebSocketClientDidConnectParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(32, 0) |
@@ -440,6 +450,8 @@ class _WebSocketClientDidConnectParams extends bindings.Struct { |
} |
+ |
+ |
class _WebSocketClientDidReceiveDataParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(24, 0) |
@@ -529,6 +541,8 @@ class _WebSocketClientDidReceiveDataParams extends bindings.Struct { |
} |
+ |
+ |
class _WebSocketClientDidReceiveFlowControlParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(16, 0) |
@@ -596,6 +610,8 @@ class _WebSocketClientDidReceiveFlowControlParams extends bindings.Struct { |
} |
+ |
+ |
class _WebSocketClientDidFailParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(16, 0) |
@@ -663,6 +679,8 @@ class _WebSocketClientDidFailParams extends bindings.Struct { |
} |
+ |
+ |
class _WebSocketClientDidCloseParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(24, 0) |
@@ -747,6 +765,9 @@ class _WebSocketClientDidCloseParams extends bindings.Struct { |
} |
} |
+ |
+ |
+ |
const int _WebSocket_connectName = 0; |
const int _WebSocket_sendName = 1; |
const int _WebSocket_flowControlName = 2; |
@@ -803,12 +824,26 @@ class WebSocketMessageType extends bindings.MojoEnum { |
return 'WebSocketMessageType.text'; |
case binary: |
return 'WebSocketMessageType.binary'; |
+ default: |
+ return null; |
} |
} |
int toJson() => mojoEnumValue; |
} |
+ |
+ |
+ |
+ |
+class _WebSocketServiceDescription implements service_describer.ServiceDescription { |
+ dynamic getTopLevelInterface([Function responseFactory]) => null; |
+ |
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; |
+ |
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null; |
+} |
+ |
abstract class WebSocket { |
static const String serviceName = null; |
void connect(String url, List<String> protocols, String origin, core.MojoDataPipeConsumer sendStream, Object client); |
@@ -834,6 +869,9 @@ class _WebSocketProxyImpl extends bindings.Proxy { |
return new _WebSocketProxyImpl.fromEndpoint(endpoint); |
} |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _WebSocketServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
default: |
@@ -1026,6 +1064,9 @@ class WebSocketStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _WebSocketServiceDescription(); |
} |
const int _WebSocketClient_didConnectName = 0; |
@@ -1034,6 +1075,16 @@ const int _WebSocketClient_didReceiveFlowControlName = 2; |
const int _WebSocketClient_didFailName = 3; |
const int _WebSocketClient_didCloseName = 4; |
+ |
+ |
+class _WebSocketClientServiceDescription implements service_describer.ServiceDescription { |
+ dynamic getTopLevelInterface([Function responseFactory]) => null; |
+ |
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; |
+ |
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null; |
+} |
+ |
abstract class WebSocketClient { |
static const String serviceName = null; |
void didConnect(String selectedSubprotocol, String extensions, core.MojoDataPipeConsumer receiveStream); |
@@ -1059,6 +1110,9 @@ class _WebSocketClientProxyImpl extends bindings.Proxy { |
return new _WebSocketClientProxyImpl.fromEndpoint(endpoint); |
} |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _WebSocketClientServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
default: |
@@ -1264,6 +1318,10 @@ class WebSocketClientStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _WebSocketClientServiceDescription(); |
} |
+ |