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

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

Issue 1433183002: Generate Mojom Types for Dart (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Simplify identifier_store for Go and Dart Created 5 years, 1 month 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_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 757541ab971ed2e9ef64e3493dca2d9aa1abe735..123e2ba6f74b19a710b21906c6c46467518f4418 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
@@ -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;
+
class EventType extends bindings.MojoEnum {
static const UNKNOWN = const EventType._(0);
static const KEY_PRESSED = const EventType._(1);
@@ -87,11 +89,40 @@ class EventType extends bindings.MojoEnum {
return 'EventType.POINTER_MOVE';
case POINTER_UP:
return 'EventType.POINTER_UP';
+ default:
+ return null;
}
}
int toJson() => value;
}
+
+mojom_types.MojomEnum _input_event_constants_EventType__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "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 = "KEY_PRESSED")
+ ..enumTypeKey = '_input_event_constants_EventType__'
+ ..intValue = 1,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "KEY_RELEASED")
+ ..enumTypeKey = '_input_event_constants_EventType__'
+ ..intValue = 2,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "POINTER_CANCEL")
+ ..enumTypeKey = '_input_event_constants_EventType__'
+ ..intValue = 3,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "POINTER_DOWN")
+ ..enumTypeKey = '_input_event_constants_EventType__'
+ ..intValue = 4,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "POINTER_MOVE")
+ ..enumTypeKey = '_input_event_constants_EventType__'
+ ..intValue = 5,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "POINTER_UP")
+ ..enumTypeKey = '_input_event_constants_EventType__'
+ ..intValue = 6,];
+}
class EventFlags extends bindings.MojoEnum {
static const NONE = const EventFlags._(0);
static const CAPS_LOCK_DOWN = const EventFlags._(1);
@@ -213,11 +244,58 @@ class EventFlags extends bindings.MojoEnum {
return 'EventFlags.ALTGR_DOWN';
case MOD3_DOWN:
return 'EventFlags.MOD3_DOWN';
+ default:
+ return null;
}
}
int toJson() => value;
}
+
+mojom_types.MojomEnum _input_event_constants_EventFlags__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "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 = "CAPS_LOCK_DOWN")
+ ..enumTypeKey = '_input_event_constants_EventFlags__'
+ ..intValue = 1,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "SHIFT_DOWN")
+ ..enumTypeKey = '_input_event_constants_EventFlags__'
+ ..intValue = 2,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "CONTROL_DOWN")
+ ..enumTypeKey = '_input_event_constants_EventFlags__'
+ ..intValue = 4,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "ALT_DOWN")
+ ..enumTypeKey = '_input_event_constants_EventFlags__'
+ ..intValue = 8,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "LEFT_MOUSE_BUTTON")
+ ..enumTypeKey = '_input_event_constants_EventFlags__'
+ ..intValue = 16,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "MIDDLE_MOUSE_BUTTON")
+ ..enumTypeKey = '_input_event_constants_EventFlags__'
+ ..intValue = 32,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "RIGHT_MOUSE_BUTTON")
+ ..enumTypeKey = '_input_event_constants_EventFlags__'
+ ..intValue = 64,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "COMMAND_DOWN")
+ ..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 = "IS_SYNTHESIZED")
+ ..enumTypeKey = '_input_event_constants_EventFlags__'
+ ..intValue = 512,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "ALTGR_DOWN")
+ ..enumTypeKey = '_input_event_constants_EventFlags__'
+ ..intValue = 1024,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "MO_D3_DOWN")
+ ..enumTypeKey = '_input_event_constants_EventFlags__'
+ ..intValue = 2048,];
+}
class MouseEventFlags extends bindings.MojoEnum {
static const IS_DOUBLE_CLICK = const MouseEventFlags._(65536);
static const IS_TRIPLE_CLICK = const MouseEventFlags._(131072);
@@ -269,11 +347,28 @@ class MouseEventFlags extends bindings.MojoEnum {
return 'MouseEventFlags.IS_TRIPLE_CLICK';
case IS_NON_CLIENT:
return 'MouseEventFlags.IS_NON_CLIENT';
+ default:
+ return null;
}
}
int toJson() => value;
}
+
+mojom_types.MojomEnum _input_event_constants_MouseEventFlags__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "MouseEventFlags")
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "IS_DOUBLE_CLICK")
+ ..enumTypeKey = '_input_event_constants_MouseEventFlags__'
+ ..intValue = 65536,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "IS_TRIPLE_CLICK")
+ ..enumTypeKey = '_input_event_constants_MouseEventFlags__'
+ ..intValue = 131072,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "IS_NON_CLIENT")
+ ..enumTypeKey = '_input_event_constants_MouseEventFlags__'
+ ..intValue = 262144,];
+}
class PointerKind extends bindings.MojoEnum {
static const TOUCH = const PointerKind._(0);
static const MOUSE = const PointerKind._(1);
@@ -318,11 +413,64 @@ class PointerKind extends bindings.MojoEnum {
return 'PointerKind.TOUCH';
case MOUSE:
return 'PointerKind.MOUSE';
+ default:
+ return null;
}
}
int toJson() => value;
}
+mojom_types.MojomEnum _input_event_constants_PointerKind__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "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,];
+}
+
+
+
+
+
+
+
+
+
+
+var _MojomDesc__ = _initDescriptions();
+
+Map<String, mojom_types.UserDefinedType> _initDescriptions() {
+ var map = new Map<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;
+}
+
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
+ return _MojomDesc__;
+}

Powered by Google App Engine
This is Rietveld 408576698