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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/input_event_constants.mojom.dart

Issue 1753013002: Mojom runtime type info: New implementation for Dart. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: No changes to sha1s Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 library input_event_constants_mojom; 5 library input_event_constants_mojom;
6 import 'package:mojo/bindings.dart' as bindings; 6 import 'package:mojo/bindings.dart' as bindings;
7 7
8 8
9 class EventType extends bindings.MojoEnum { 9 class EventType extends bindings.MojoEnum {
10 static const EventType unknown = const EventType._(0); 10 static const EventType unknown = const EventType._(0);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 case pointerUp: 86 case pointerUp:
87 return 'EventType.pointerUp'; 87 return 'EventType.pointerUp';
88 default: 88 default:
89 return null; 89 return null;
90 } 90 }
91 } 91 }
92 92
93 int toJson() => mojoEnumValue; 93 int toJson() => mojoEnumValue;
94 } 94 }
95 95
96
97
98 class EventFlags extends bindings.MojoEnum { 96 class EventFlags extends bindings.MojoEnum {
99 static const EventFlags none = const EventFlags._(0); 97 static const EventFlags none = const EventFlags._(0);
100 static const EventFlags capsLockDown = const EventFlags._(1); 98 static const EventFlags capsLockDown = const EventFlags._(1);
101 static const EventFlags shiftDown = const EventFlags._(2); 99 static const EventFlags shiftDown = const EventFlags._(2);
102 static const EventFlags controlDown = const EventFlags._(4); 100 static const EventFlags controlDown = const EventFlags._(4);
103 static const EventFlags altDown = const EventFlags._(8); 101 static const EventFlags altDown = const EventFlags._(8);
104 static const EventFlags leftMouseButton = const EventFlags._(16); 102 static const EventFlags leftMouseButton = const EventFlags._(16);
105 static const EventFlags middleMouseButton = const EventFlags._(32); 103 static const EventFlags middleMouseButton = const EventFlags._(32);
106 static const EventFlags rightMouseButton = const EventFlags._(64); 104 static const EventFlags rightMouseButton = const EventFlags._(64);
107 static const EventFlags commandDown = const EventFlags._(128); 105 static const EventFlags commandDown = const EventFlags._(128);
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 case mod3Down: 215 case mod3Down:
218 return 'EventFlags.mod3Down'; 216 return 'EventFlags.mod3Down';
219 default: 217 default:
220 return null; 218 return null;
221 } 219 }
222 } 220 }
223 221
224 int toJson() => mojoEnumValue; 222 int toJson() => mojoEnumValue;
225 } 223 }
226 224
227
228
229 class MouseEventFlags extends bindings.MojoEnum { 225 class MouseEventFlags extends bindings.MojoEnum {
230 static const MouseEventFlags isDoubleClick = const MouseEventFlags._(65536); 226 static const MouseEventFlags isDoubleClick = const MouseEventFlags._(65536);
231 static const MouseEventFlags isTripleClick = const MouseEventFlags._(131072); 227 static const MouseEventFlags isTripleClick = const MouseEventFlags._(131072);
232 static const MouseEventFlags isNonClient = const MouseEventFlags._(262144); 228 static const MouseEventFlags isNonClient = const MouseEventFlags._(262144);
233 229
234 const MouseEventFlags._(int v) : super(v); 230 const MouseEventFlags._(int v) : super(v);
235 231
236 static const Map<String, MouseEventFlags> valuesMap = const { 232 static const Map<String, MouseEventFlags> valuesMap = const {
237 "isDoubleClick": isDoubleClick, 233 "isDoubleClick": isDoubleClick,
238 "isTripleClick": isTripleClick, 234 "isTripleClick": isTripleClick,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 case isNonClient: 274 case isNonClient:
279 return 'MouseEventFlags.isNonClient'; 275 return 'MouseEventFlags.isNonClient';
280 default: 276 default:
281 return null; 277 return null;
282 } 278 }
283 } 279 }
284 280
285 int toJson() => mojoEnumValue; 281 int toJson() => mojoEnumValue;
286 } 282 }
287 283
288
289
290 class PointerKind extends bindings.MojoEnum { 284 class PointerKind extends bindings.MojoEnum {
291 static const PointerKind touch = const PointerKind._(0); 285 static const PointerKind touch = const PointerKind._(0);
292 static const PointerKind mouse = const PointerKind._(1); 286 static const PointerKind mouse = const PointerKind._(1);
293 287
294 const PointerKind._(int v) : super(v); 288 const PointerKind._(int v) : super(v);
295 289
296 static const Map<String, PointerKind> valuesMap = const { 290 static const Map<String, PointerKind> valuesMap = const {
297 "touch": touch, 291 "touch": touch,
298 "mouse": mouse, 292 "mouse": mouse,
299 }; 293 };
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 return null; 329 return null;
336 } 330 }
337 } 331 }
338 332
339 int toJson() => mojoEnumValue; 333 int toJson() => mojoEnumValue;
340 } 334 }
341 335
342 336
343 337
344 338
345
346
347
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698