| Index: mojo/dart/packages/mojo_services/lib/mojo/input_event_constants.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo_services/lib/mojo/input_event_constants.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/input_event_constants.mojom.dart
|
| index 3d8d9ebda326e7d6dc6533683c605b480a050811..8f744525850fc1228f76ad734932167261db126e 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/mojo/input_event_constants.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/mojo/input_event_constants.mojom.dart
|
| @@ -5,9 +5,11 @@
|
| library input_event_constants_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;
|
|
|
| class EventType extends bindings.MojoEnum {
|
| static const EventType unknown = const EventType._(0);
|
| @@ -88,12 +90,42 @@ class EventType extends bindings.MojoEnum {
|
| return 'EventType.pointerMove';
|
| case pointerUp:
|
| return 'EventType.pointerUp';
|
| + default:
|
| + return null;
|
| }
|
| }
|
|
|
| int toJson() => mojoEnumValue;
|
| }
|
|
|
| +mojom_types.MojomEnum _input_event_constants_EventType__() {
|
| + return new mojom_types.MojomEnum()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'EventType'
|
| + ..fullIdentifier = 'mojo.EventType')
|
| + ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Unknown')
|
| + ..enumTypeKey = '_input_event_constants_EventType__'
|
| + ..intValue = 0,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyPressed')
|
| + ..enumTypeKey = '_input_event_constants_EventType__'
|
| + ..intValue = 1,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyReleased')
|
| + ..enumTypeKey = '_input_event_constants_EventType__'
|
| + ..intValue = 2,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'PointerCancel')
|
| + ..enumTypeKey = '_input_event_constants_EventType__'
|
| + ..intValue = 3,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'PointerDown')
|
| + ..enumTypeKey = '_input_event_constants_EventType__'
|
| + ..intValue = 4,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'PointerMove')
|
| + ..enumTypeKey = '_input_event_constants_EventType__'
|
| + ..intValue = 5,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'PointerUp')
|
| + ..enumTypeKey = '_input_event_constants_EventType__'
|
| + ..intValue = 6,];
|
| +}
|
| class EventFlags extends bindings.MojoEnum {
|
| static const EventFlags none = const EventFlags._(0);
|
| static const EventFlags capsLockDown = const EventFlags._(1);
|
| @@ -215,12 +247,60 @@ class EventFlags extends bindings.MojoEnum {
|
| return 'EventFlags.altgrDown';
|
| case mod3Down:
|
| return 'EventFlags.mod3Down';
|
| + default:
|
| + return null;
|
| }
|
| }
|
|
|
| int toJson() => mojoEnumValue;
|
| }
|
|
|
| +mojom_types.MojomEnum _input_event_constants_EventFlags__() {
|
| + return new mojom_types.MojomEnum()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'EventFlags'
|
| + ..fullIdentifier = 'mojo.EventFlags')
|
| + ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'None')
|
| + ..enumTypeKey = '_input_event_constants_EventFlags__'
|
| + ..intValue = 0,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'CapsLockDown')
|
| + ..enumTypeKey = '_input_event_constants_EventFlags__'
|
| + ..intValue = 1,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'ShiftDown')
|
| + ..enumTypeKey = '_input_event_constants_EventFlags__'
|
| + ..intValue = 2,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'ControlDown')
|
| + ..enumTypeKey = '_input_event_constants_EventFlags__'
|
| + ..intValue = 4,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'AltDown')
|
| + ..enumTypeKey = '_input_event_constants_EventFlags__'
|
| + ..intValue = 8,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'LeftMouseButton')
|
| + ..enumTypeKey = '_input_event_constants_EventFlags__'
|
| + ..intValue = 16,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'MiddleMouseButton')
|
| + ..enumTypeKey = '_input_event_constants_EventFlags__'
|
| + ..intValue = 32,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'RightMouseButton')
|
| + ..enumTypeKey = '_input_event_constants_EventFlags__'
|
| + ..intValue = 64,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'CommandDown')
|
| + ..enumTypeKey = '_input_event_constants_EventFlags__'
|
| + ..intValue = 128,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Extended')
|
| + ..enumTypeKey = '_input_event_constants_EventFlags__'
|
| + ..intValue = 256,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'IsSynthesized')
|
| + ..enumTypeKey = '_input_event_constants_EventFlags__'
|
| + ..intValue = 512,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'AltgrDown')
|
| + ..enumTypeKey = '_input_event_constants_EventFlags__'
|
| + ..intValue = 1024,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Mod3Down')
|
| + ..enumTypeKey = '_input_event_constants_EventFlags__'
|
| + ..intValue = 2048,];
|
| +}
|
| class MouseEventFlags extends bindings.MojoEnum {
|
| static const MouseEventFlags isDoubleClick = const MouseEventFlags._(65536);
|
| static const MouseEventFlags isTripleClick = const MouseEventFlags._(131072);
|
| @@ -272,12 +352,30 @@ class MouseEventFlags extends bindings.MojoEnum {
|
| return 'MouseEventFlags.isTripleClick';
|
| case isNonClient:
|
| return 'MouseEventFlags.isNonClient';
|
| + default:
|
| + return null;
|
| }
|
| }
|
|
|
| int toJson() => mojoEnumValue;
|
| }
|
|
|
| +mojom_types.MojomEnum _input_event_constants_MouseEventFlags__() {
|
| + return new mojom_types.MojomEnum()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'MouseEventFlags'
|
| + ..fullIdentifier = 'mojo.MouseEventFlags')
|
| + ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'IsDoubleClick')
|
| + ..enumTypeKey = '_input_event_constants_MouseEventFlags__'
|
| + ..intValue = 65536,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'IsTripleClick')
|
| + ..enumTypeKey = '_input_event_constants_MouseEventFlags__'
|
| + ..intValue = 131072,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'IsNonClient')
|
| + ..enumTypeKey = '_input_event_constants_MouseEventFlags__'
|
| + ..intValue = 262144,];
|
| +}
|
| class PointerKind extends bindings.MojoEnum {
|
| static const PointerKind touch = const PointerKind._(0);
|
| static const PointerKind mouse = const PointerKind._(1);
|
| @@ -322,11 +420,59 @@ class PointerKind extends bindings.MojoEnum {
|
| return 'PointerKind.touch';
|
| case mouse:
|
| return 'PointerKind.mouse';
|
| + default:
|
| + return null;
|
| }
|
| }
|
|
|
| int toJson() => mojoEnumValue;
|
| }
|
|
|
| +mojom_types.MojomEnum _input_event_constants_PointerKind__() {
|
| + return new mojom_types.MojomEnum()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'PointerKind'
|
| + ..fullIdentifier = 'mojo.PointerKind')
|
| + ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Touch')
|
| + ..enumTypeKey = '_input_event_constants_PointerKind__'
|
| + ..intValue = 0,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Mouse')
|
| + ..enumTypeKey = '_input_event_constants_PointerKind__'
|
| + ..intValue = 1,];
|
| +}
|
| +
|
|
|
|
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new HashMap<String, mojom_types.UserDefinedType>();
|
| +map["_input_event_constants_EventType__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..enumType = _input_event_constants_EventType__();
|
| +map["_input_event_constants_EventFlags__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..enumType = _input_event_constants_EventFlags__();
|
| +map["_input_event_constants_MouseEventFlags__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..enumType = _input_event_constants_MouseEventFlags__();
|
| +map["_input_event_constants_PointerKind__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..enumType = _input_event_constants_PointerKind__();
|
| +
|
| + return map;
|
| +}
|
| +
|
| +var _MojomDesc;
|
| +Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
|
| + if (_MojomDesc == null) {
|
| + _MojomDesc = _initDescriptions();
|
| + }
|
| + return _MojomDesc;
|
| +}
|
| +
|
|
|