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

Unified Diff: mojo/dart/packages/mojo_services/lib/mojo/input_events.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/input_events.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/input_events.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/input_events.mojom.dart
index 6ac0aeb625798971c1729660db8f3b7332e1003e..e902bee236f22aac92bbbce342955c6846dcf150 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/input_events.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/input_events.mojom.dart
@@ -5,9 +5,12 @@
library input_events_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_services/mojo/geometry.mojom.dart' as geometry_mojom;
import 'package:mojo_services/mojo/input_event_constants.mojom.dart' as input_event_constants_mojom;
import 'package:mojo_services/mojo/input_key_codes.mojom.dart' as input_key_codes_mojom;
@@ -137,6 +140,46 @@ class KeyData extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _input_events_KeyData__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'KeyData'
+ ..fullIdentifier = 'mojo.KeyData')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyCode')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'IsChar')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Character')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint16),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'WindowsKeyCode')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_input_key_codes_KeyboardCode__'
+ ..typeKey = '_input_key_codes_KeyboardCode__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'NativeKeyCode')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Text')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint16),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'UnmodifiedText')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint16),
+ ];
+}
class PointerData extends bindings.Struct {
@@ -307,6 +350,66 @@ class PointerData extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _input_events_PointerData__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'PointerData'
+ ..fullIdentifier = 'mojo.PointerData')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'PointerId')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Kind')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_input_event_constants_PointerKind__'
+ ..typeKey = '_input_event_constants_PointerKind__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'X')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Y')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ScreenX')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ScreenY')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Pressure')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'RadiusMajor')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'RadiusMinor')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Orientation')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'HorizontalWheel')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'VerticalWheel')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float),
+ ];
+}
class Event extends bindings.Struct {
@@ -420,5 +523,94 @@ class Event extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _input_events_Event__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'Event'
+ ..fullIdentifier = 'mojo.Event')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Action')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_input_event_constants_EventType__'
+ ..typeKey = '_input_event_constants_EventType__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Flags')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_input_event_constants_EventFlags__'
+ ..typeKey = '_input_event_constants_EventFlags__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TimeStamp')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int64),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyData')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_input_events_KeyData__'
+ ..typeKey = '_input_events_KeyData__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'PointerData')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_input_events_PointerData__'
+ ..typeKey = '_input_events_PointerData__'
+ )),
+ ];
+}
+
+
+
+
+
+
+
+
+Map<String, mojom_types.UserDefinedType> _initDescriptions() {
+ var map = new HashMap<String, mojom_types.UserDefinedType>();
+map["_input_events_KeyData__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _input_events_KeyData__();
+map["_input_events_PointerData__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _input_events_PointerData__();
+map["_input_events_Event__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _input_events_Event__();
+geometry_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) {
+ map[s] = udt;
+});
+input_event_constants_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) {
+ map[s] = udt;
+});
+input_key_codes_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