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

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

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Update to master and regenerate mojoms 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/window_manager_internal.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/window_manager_internal.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/window_manager_internal.mojom.dart
index 1dea692967f0ef7b24985b7ec9deed3d1ffac78c..021a002f89b46cb43a4b94e779d8757cf0845443 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/window_manager_internal.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/window_manager_internal.mojom.dart
@@ -5,9 +5,12 @@
library window_manager_internal_mojom;
import 'dart:async';
+import 'dart:collection';
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/geometry.mojom.dart' as geometry_mojom;
import 'package:mojo_services/mojo/input_events.mojom.dart' as input_events_mojom;
@@ -85,6 +88,24 @@ class _WindowManagerInternalCreateWindowManagerForViewManagerClientParams extend
'Object containing handles cannot be encoded to JSON.');
}
}
+mojom_types.MojomStruct _window_manager_internal_WindowManagerInternal_CreateWindowManagerForViewManagerClient_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_WindowManagerInternalCreateWindowManagerForViewManagerClientParams'
+ ..fullIdentifier = 'mojo._WindowManagerInternalCreateWindowManagerForViewManagerClientParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ConnectionId')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint16),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'WindowManagerPipe')
+ ..type = (new mojom_types.Type()
+..handleType = (new mojom_types.HandleType()
+..kind = mojom_types.HandleTypeKind.messagePipe
+..nullable = false)),
+ ];
+}
class _WindowManagerInternalSetViewManagerClientParams extends bindings.Struct {
@@ -151,6 +172,20 @@ class _WindowManagerInternalSetViewManagerClientParams extends bindings.Struct {
'Object containing handles cannot be encoded to JSON.');
}
}
+mojom_types.MojomStruct _window_manager_internal_WindowManagerInternal_SetViewManagerClient_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_WindowManagerInternalSetViewManagerClientParams'
+ ..fullIdentifier = 'mojo._WindowManagerInternalSetViewManagerClientParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ViewManagerClientRequest')
+ ..type = (new mojom_types.Type()
+..handleType = (new mojom_types.HandleType()
+..kind = mojom_types.HandleTypeKind.messagePipe
+..nullable = false)),
+ ];
+}
class _WindowManagerInternalClientDispatchInputEventToViewParams extends bindings.Struct {
@@ -228,6 +263,26 @@ class _WindowManagerInternalClientDispatchInputEventToViewParams extends binding
return map;
}
}
+mojom_types.MojomStruct _window_manager_internal_WindowManagerInternalClient_DispatchInputEventToView_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_WindowManagerInternalClientDispatchInputEventToViewParams'
+ ..fullIdentifier = 'mojo._WindowManagerInternalClientDispatchInputEventToViewParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ViewId')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Event')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_input_events_Event__'
+ ..typeKey = '_input_events_Event__'
+ )),
+ ];
+}
class _WindowManagerInternalClientSetViewportSizeParams extends bindings.Struct {
@@ -296,6 +351,22 @@ class _WindowManagerInternalClientSetViewportSizeParams extends bindings.Struct
return map;
}
}
+mojom_types.MojomStruct _window_manager_internal_WindowManagerInternalClient_SetViewportSize_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_WindowManagerInternalClientSetViewportSizeParams'
+ ..fullIdentifier = 'mojo._WindowManagerInternalClientSetViewportSizeParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Size')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_geometry_Size__'
+ ..typeKey = '_geometry_Size__'
+ )),
+ ];
+}
class _WindowManagerInternalClientCloneAndAnimateParams extends bindings.Struct {
@@ -363,10 +434,49 @@ class _WindowManagerInternalClientCloneAndAnimateParams extends bindings.Struct
return map;
}
}
+mojom_types.MojomStruct _window_manager_internal_WindowManagerInternalClient_CloneAndAnimate_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_WindowManagerInternalClientCloneAndAnimateParams'
+ ..fullIdentifier = 'mojo._WindowManagerInternalClientCloneAndAnimateParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ViewId')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+ ];
+}
+
const int _WindowManagerInternal_createWindowManagerForViewManagerClientName = 0;
const int _WindowManagerInternal_setViewManagerClientName = 1;
+mojom_types.MojomInterface _window_manager_internal_WindowManagerInternal__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'WindowManagerInternal'
+ ..fullIdentifier = 'mojo.WindowManagerInternal')
+ ..interfaceName = 'WindowManagerInternal'
+ ..methods = <int, mojom_types.MojomMethod>{
+_WindowManagerInternal_createWindowManagerForViewManagerClientName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CreateWindowManagerForViewManagerClient')
+ ..ordinal = _WindowManagerInternal_createWindowManagerForViewManagerClientName..parameters = _window_manager_internal_WindowManagerInternal_CreateWindowManagerForViewManagerClient_Params__(),_WindowManagerInternal_setViewManagerClientName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SetViewManagerClient')
+ ..ordinal = _WindowManagerInternal_setViewManagerClientName..parameters = _window_manager_internal_WindowManagerInternal_SetViewManagerClient_Params__(),
+ };
+}
+
+class _WindowManagerInternalServiceDescription implements service_describer.ServiceDescription {
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _window_manager_internal_WindowManagerInternal__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class WindowManagerInternal {
static const String serviceName = "mojo::WindowManagerInternal";
void createWindowManagerForViewManagerClient(int connectionId, core.MojoMessagePipeEndpoint windowManagerPipe);
@@ -389,6 +499,9 @@ class _WindowManagerInternalProxyImpl extends bindings.Proxy {
return new _WindowManagerInternalProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _WindowManagerInternalServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -547,12 +660,45 @@ class WindowManagerInternalStub extends bindings.Stub {
}
int get version => 0;
+
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _WindowManagerInternalServiceDescription();
}
const int _WindowManagerInternalClient_dispatchInputEventToViewName = 0;
const int _WindowManagerInternalClient_setViewportSizeName = 1;
const int _WindowManagerInternalClient_cloneAndAnimateName = 2;
+mojom_types.MojomInterface _window_manager_internal_WindowManagerInternalClient__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'WindowManagerInternalClient'
+ ..fullIdentifier = 'mojo.WindowManagerInternalClient')
+ ..interfaceName = 'WindowManagerInternalClient'
+ ..methods = <int, mojom_types.MojomMethod>{
+_WindowManagerInternalClient_dispatchInputEventToViewName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'DispatchInputEventToView')
+ ..ordinal = _WindowManagerInternalClient_dispatchInputEventToViewName..parameters = _window_manager_internal_WindowManagerInternalClient_DispatchInputEventToView_Params__(),_WindowManagerInternalClient_setViewportSizeName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SetViewportSize')
+ ..ordinal = _WindowManagerInternalClient_setViewportSizeName..parameters = _window_manager_internal_WindowManagerInternalClient_SetViewportSize_Params__(),_WindowManagerInternalClient_cloneAndAnimateName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CloneAndAnimate')
+ ..ordinal = _WindowManagerInternalClient_cloneAndAnimateName..parameters = _window_manager_internal_WindowManagerInternalClient_CloneAndAnimate_Params__(),
+ };
+}
+
+class _WindowManagerInternalClientServiceDescription implements service_describer.ServiceDescription {
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _window_manager_internal_WindowManagerInternalClient__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class WindowManagerInternalClient {
static const String serviceName = "mojo::WindowManagerInternalClient";
void dispatchInputEventToView(int viewId, input_events_mojom.Event event);
@@ -576,6 +722,9 @@ class _WindowManagerInternalClientProxyImpl extends bindings.Proxy {
return new _WindowManagerInternalClientProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _WindowManagerInternalClientServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -748,6 +897,56 @@ class WindowManagerInternalClientStub extends bindings.Stub {
}
int get version => 0;
+
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _WindowManagerInternalClientServiceDescription();
}
+
+
+
+
+
+Map<String, mojom_types.UserDefinedType> _initDescriptions() {
+ var map = new HashMap<String, mojom_types.UserDefinedType>();
+map["_window_manager_internal_WindowManagerInternal_CreateWindowManagerForViewManagerClient_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _window_manager_internal_WindowManagerInternal_CreateWindowManagerForViewManagerClient_Params__();
+map["_window_manager_internal_WindowManagerInternal_SetViewManagerClient_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _window_manager_internal_WindowManagerInternal_SetViewManagerClient_Params__();
+map["_window_manager_internal_WindowManagerInternalClient_DispatchInputEventToView_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _window_manager_internal_WindowManagerInternalClient_DispatchInputEventToView_Params__();
+map["_window_manager_internal_WindowManagerInternalClient_SetViewportSize_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _window_manager_internal_WindowManagerInternalClient_SetViewportSize_Params__();
+map["_window_manager_internal_WindowManagerInternalClient_CloneAndAnimate_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _window_manager_internal_WindowManagerInternalClient_CloneAndAnimate_Params__();
+map["_window_manager_internal_WindowManagerInternal__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _window_manager_internal_WindowManagerInternal__();
+map["_window_manager_internal_WindowManagerInternalClient__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _window_manager_internal_WindowManagerInternalClient__();
+geometry_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) {
+ map[s] = udt;
+});
+input_events_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) {
+ map[s] = udt;
+});
+
+ return map;
+}
+
+var _MojomDesc;
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
+ if (_MojomDesc == null) {
+ _MojomDesc = _initDescriptions();
+ }
+ return _MojomDesc;
+}
+

Powered by Google App Engine
This is Rietveld 408576698