OLD | NEW |
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; |
| 12 |
11 | 13 |
12 class KeyboardCode extends bindings.MojoEnum { | 14 class KeyboardCode extends bindings.MojoEnum { |
13 static const KeyboardCode back = const KeyboardCode._(8); | 15 static const KeyboardCode back = const KeyboardCode._(8); |
14 static const KeyboardCode tab = const KeyboardCode._(9); | 16 static const KeyboardCode tab = const KeyboardCode._(9); |
15 static const KeyboardCode clear = const KeyboardCode._(12); | 17 static const KeyboardCode clear = const KeyboardCode._(12); |
16 static const KeyboardCode return_ = const KeyboardCode._(13); | 18 static const KeyboardCode return_ = const KeyboardCode._(13); |
17 static const KeyboardCode shift = const KeyboardCode._(16); | 19 static const KeyboardCode shift = const KeyboardCode._(16); |
18 static const KeyboardCode control = const KeyboardCode._(17); | 20 static const KeyboardCode control = const KeyboardCode._(17); |
19 static const KeyboardCode menu = const KeyboardCode._(18); | 21 static const KeyboardCode menu = const KeyboardCode._(18); |
20 static const KeyboardCode pause = const KeyboardCode._(19); | 22 static const KeyboardCode pause = const KeyboardCode._(19); |
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1229 case noname: | 1231 case noname: |
1230 return 'KeyboardCode.noname'; | 1232 return 'KeyboardCode.noname'; |
1231 case pa1: | 1233 case pa1: |
1232 return 'KeyboardCode.pa1'; | 1234 return 'KeyboardCode.pa1'; |
1233 case oemClear: | 1235 case oemClear: |
1234 return 'KeyboardCode.oemClear'; | 1236 return 'KeyboardCode.oemClear'; |
1235 case unknown: | 1237 case unknown: |
1236 return 'KeyboardCode.unknown'; | 1238 return 'KeyboardCode.unknown'; |
1237 case altgr: | 1239 case altgr: |
1238 return 'KeyboardCode.altgr'; | 1240 return 'KeyboardCode.altgr'; |
| 1241 default: |
| 1242 return null; |
1239 } | 1243 } |
1240 } | 1244 } |
1241 | 1245 |
1242 int toJson() => mojoEnumValue; | 1246 int toJson() => mojoEnumValue; |
1243 } | 1247 } |
1244 | 1248 |
1245 | 1249 |
1246 | 1250 |
| 1251 |
| 1252 |
| 1253 |
| 1254 |
OLD | NEW |