| 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..10251a91c7d7e7b431818e1ee8267b1c64a03f06 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
|
| @@ -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/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;
|
| @@ -138,6 +140,45 @@ class KeyData extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _input_events_KeyData__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -308,6 +349,65 @@ class PointerData extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _input_events_PointerData__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -421,4 +521,148 @@ class Event extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _input_events_Event__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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__'
|
| + )),
|
| + ];
|
| +}
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +var _MojomDesc__ = _initDescriptions();
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new Map<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;
|
| +}
|
| +
|
| +Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
|
| + return _MojomDesc__;
|
| +}
|
| +
|
|
|
|
|