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

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

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: All Short Names use unsafe GetElementForName Created 4 years, 10 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_key_codes_mojom; 5 library input_key_codes_mojom;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:mojo/bindings.dart' as bindings; 9 import 'package:mojo/bindings.dart' as bindings;
10 import 'package:mojo/core.dart' as core; 10 import 'package:mojo/core.dart' as core;
11 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
11 12
12 class KeyboardCode extends bindings.MojoEnum { 13 class KeyboardCode extends bindings.MojoEnum {
13 static const KeyboardCode back = const KeyboardCode._(8); 14 static const KeyboardCode back = const KeyboardCode._(8);
14 static const KeyboardCode tab = const KeyboardCode._(9); 15 static const KeyboardCode tab = const KeyboardCode._(9);
15 static const KeyboardCode clear = const KeyboardCode._(12); 16 static const KeyboardCode clear = const KeyboardCode._(12);
16 static const KeyboardCode return_ = const KeyboardCode._(13); 17 static const KeyboardCode return_ = const KeyboardCode._(13);
17 static const KeyboardCode shift = const KeyboardCode._(16); 18 static const KeyboardCode shift = const KeyboardCode._(16);
18 static const KeyboardCode control = const KeyboardCode._(17); 19 static const KeyboardCode control = const KeyboardCode._(17);
19 static const KeyboardCode menu = const KeyboardCode._(18); 20 static const KeyboardCode menu = const KeyboardCode._(18);
20 static const KeyboardCode pause = const KeyboardCode._(19); 21 static const KeyboardCode pause = const KeyboardCode._(19);
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after
1229 case noname: 1230 case noname:
1230 return 'KeyboardCode.noname'; 1231 return 'KeyboardCode.noname';
1231 case pa1: 1232 case pa1:
1232 return 'KeyboardCode.pa1'; 1233 return 'KeyboardCode.pa1';
1233 case oemClear: 1234 case oemClear:
1234 return 'KeyboardCode.oemClear'; 1235 return 'KeyboardCode.oemClear';
1235 case unknown: 1236 case unknown:
1236 return 'KeyboardCode.unknown'; 1237 return 'KeyboardCode.unknown';
1237 case altgr: 1238 case altgr:
1238 return 'KeyboardCode.altgr'; 1239 return 'KeyboardCode.altgr';
1240 default:
1241 return null;
1239 } 1242 }
1240 } 1243 }
1241 1244
1242 int toJson() => mojoEnumValue; 1245 int toJson() => mojoEnumValue;
1243 } 1246 }
1244 1247
1245 1248
1246 1249
1250
1251
1252
1253
1254
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698