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

Side by Side Diff: client/dom/src/KeyName.dart

Issue 8872058: Add KeyName and KeyLocation to frog dom. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « client/dom/src/KeyLocation.dart ('k') | client/dom/wrapping_dom.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Defines the standard key locations returned by
7 * KeyboardEvent.getKeyLocation.
8 */
9 interface KeyLocation {
10
11 /**
12 * The event key is not distinguished as the left or right version
13 * of the key, and did not originate from the numeric keypad (or did not
14 * originate with a virtual key corresponding to the numeric keypad).
15 */
16 static final int STANDARD = 0;
17
18 /**
19 * The event key is in the left key location.
20 */
21 static final int LEFT = 1;
22
23 /**
24 * The event key is in the right key location.
25 */
26 static final int RIGHT = 2;
27
28 /**
29 * The event key originated on the numeric keypad or with a virtual key
30 * corresponding to the numeric keypad.
31 */
32 static final int NUMPAD = 3;
33
34 /**
35 * The event key originated on a mobile device, either on a physical
36 * keypad or a virtual keyboard.
37 */
38 static final int MOBILE = 4;
39
40 /**
41 * The event key originated on a game controller or a joystick on a mobile
42 * device.
43 */
44 static final int JOYSTICK = 5;
45 }
46
47 /**
48 * Defines the standard keyboard identifier names for keys that are returned 6 * Defines the standard keyboard identifier names for keys that are returned
49 * by KeyEvent.getKeyboardIdentifier when the key does not have a direct 7 * by KeyEvent.getKeyboardIdentifier when the key does not have a direct
50 * unicode mapping. 8 * unicode mapping.
51 */ 9 */
52 interface KeyName { 10 interface KeyName {
53 11
54 /** The Accept (Commit, OK) key */ 12 /** The Accept (Commit, OK) key */
55 static final String ACCEPT = "Accept"; 13 static final String ACCEPT = "Accept";
56 14
57 /** The Add key */ 15 /** The Add key */
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 * Sound) key 484 * Sound) key
527 */ 485 */
528 static final String DEC_SEMIVOICED_SOUND= "DeadSemivoicedSound"; 486 static final String DEC_SEMIVOICED_SOUND= "DeadSemivoicedSound";
529 487
530 /** 488 /**
531 * Key value used when an implementation is unable to identify another key 489 * Key value used when an implementation is unable to identify another key
532 * value, due to either hardware, platform, or software constraints 490 * value, due to either hardware, platform, or software constraints
533 */ 491 */
534 static final String UNIDENTIFIED = "Unidentified"; 492 static final String UNIDENTIFIED = "Unidentified";
535 } 493 }
OLDNEW
« no previous file with comments | « client/dom/src/KeyLocation.dart ('k') | client/dom/wrapping_dom.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698