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

Side by Side Diff: client/dom/snippets/events/KeyboardEvent.dart.snippet

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/scripts/template_wrapping_dom.darttemplate ('k') | client/dom/src/KeyLocation.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
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
49 * by KeyEvent.getKeyboardIdentifier when the key does not have a direct
50 * unicode mapping.
51 */
52 interface KeyName {
53
54 /** The Accept (Commit, OK) key */
55 static final String ACCEPT = "Accept";
56
57 /** The Add key */
58 static final String ADD = "Add";
59
60 /** The Again key */
61 static final String AGAIN = "Again";
62
63 /** The All Candidates key */
64 static final String ALL_CANDIDATES = "AllCandidates";
65
66 /** The Alphanumeric key */
67 static final String ALPHANUMERIC = "Alphanumeric";
68
69 /** The Alt (Menu) key */
70 static final String ALT = "Alt";
71
72 /** The Alt-Graph key */
73 static final String ALT_GRAPH = "AltGraph";
74
75 /** The Application key */
76 static final String APPS = "Apps";
77
78 /** The ATTN key */
79 static final String ATTN = "Attn";
80
81 /** The Browser Back key */
82 static final String BROWSER_BACK = "BrowserBack";
83
84 /** The Browser Favorites key */
85 static final String BROWSER_FAVORTIES = "BrowserFavorites";
86
87 /** The Browser Forward key */
88 static final String BROWSER_FORWARD = "BrowserForward";
89
90 /** The Browser Home key */
91 static final String BROWSER_NAME = "BrowserHome";
92
93 /** The Browser Refresh key */
94 static final String BROWSER_REFRESH = "BrowserRefresh";
95
96 /** The Browser Search key */
97 static final String BROWSER_SEARCH = "BrowserSearch";
98
99 /** The Browser Stop key */
100 static final String BROWSER_STOP = "BrowserStop";
101
102 /** The Camera key */
103 static final String CAMERA = "Camera";
104
105 /** The Caps Lock (Capital) key */
106 static final String CAPS_LOCK = "CapsLock";
107
108 /** The Clear key */
109 static final String CLEAR = "Clear";
110
111 /** The Code Input key */
112 static final String CODE_INPUT = "CodeInput";
113
114 /** The Compose key */
115 static final String COMPOSE = "Compose";
116
117 /** The Control (Ctrl) key */
118 static final String CONTROL = "Control";
119
120 /** The Crsel key */
121 static final String CRSEL = "Crsel";
122
123 /** The Convert key */
124 static final String CONVERT = "Convert";
125
126 /** The Copy key */
127 static final String COPY = "Copy";
128
129 /** The Cut key */
130 static final String CUT = "Cut";
131
132 /** The Decimal key */
133 static final String DECIMAL = "Decimal";
134
135 /** The Divide key */
136 static final String DIVIDE = "Divide";
137
138 /** The Down Arrow key */
139 static final String DOWN = "Down";
140
141 /** The diagonal Down-Left Arrow key */
142 static final String DOWN_LEFT = "DownLeft";
143
144 /** The diagonal Down-Right Arrow key */
145 static final String DOWN_RIGHT = "DownRight";
146
147 /** The Eject key */
148 static final String EJECT = "Eject";
149
150 /** The End key */
151 static final String END = "End";
152
153 /**
154 * The Enter key. Note: This key value must also be used for the Return
155 * (Macintosh numpad) key
156 */
157 static final String ENTER = "Enter";
158
159 /** The Erase EOF key */
160 static final String ERASE_EOF= "EraseEof";
161
162 /** The Execute key */
163 static final String EXECUTE = "Execute";
164
165 /** The Exsel key */
166 static final String EXSEL = "Exsel";
167
168 /** The Function switch key */
169 static final String FN = "Fn";
170
171 /** The F1 key */
172 static final String F1 = "F1";
173
174 /** The F2 key */
175 static final String F2 = "F2";
176
177 /** The F3 key */
178 static final String F3 = "F3";
179
180 /** The F4 key */
181 static final String F4 = "F4";
182
183 /** The F5 key */
184 static final String F5 = "F5";
185
186 /** The F6 key */
187 static final String F6 = "F6";
188
189 /** The F7 key */
190 static final String F7 = "F7";
191
192 /** The F8 key */
193 static final String F8 = "F8";
194
195 /** The F9 key */
196 static final String F9 = "F9";
197
198 /** The F10 key */
199 static final String F10 = "F10";
200
201 /** The F11 key */
202 static final String F11 = "F11";
203
204 /** The F12 key */
205 static final String F12 = "F12";
206
207 /** The F13 key */
208 static final String F13 = "F13";
209
210 /** The F14 key */
211 static final String F14 = "F14";
212
213 /** The F15 key */
214 static final String F15 = "F15";
215
216 /** The F16 key */
217 static final String F16 = "F16";
218
219 /** The F17 key */
220 static final String F17 = "F17";
221
222 /** The F18 key */
223 static final String F18 = "F18";
224
225 /** The F19 key */
226 static final String F19 = "F19";
227
228 /** The F20 key */
229 static final String F20 = "F20";
230
231 /** The F21 key */
232 static final String F21 = "F21";
233
234 /** The F22 key */
235 static final String F22 = "F22";
236
237 /** The F23 key */
238 static final String F23 = "F23";
239
240 /** The F24 key */
241 static final String F24 = "F24";
242
243 /** The Final Mode (Final) key used on some asian keyboards */
244 static final String FINAL_MODE = "FinalMode";
245
246 /** The Find key */
247 static final String FIND = "Find";
248
249 /** The Full-Width Characters key */
250 static final String FULL_WIDTH = "FullWidth";
251
252 /** The Half-Width Characters key */
253 static final String HALF_WIDTH = "HalfWidth";
254
255 /** The Hangul (Korean characters) Mode key */
256 static final String HANGUL_MODE = "HangulMode";
257
258 /** The Hanja (Korean characters) Mode key */
259 static final String HANJA_MODE = "HanjaMode";
260
261 /** The Help key */
262 static final String HELP = "Help";
263
264 /** The Hiragana (Japanese Kana characters) key */
265 static final String HIRAGANA = "Hiragana";
266
267 /** The Home key */
268 static final String HOME = "Home";
269
270 /** The Insert (Ins) key */
271 static final String INSERT = "Insert";
272
273 /** The Japanese-Hiragana key */
274 static final String JAPANESE_HIRAGANA = "JapaneseHiragana";
275
276 /** The Japanese-Katakana key */
277 static final String JAPANESE_KATAKANA = "JapaneseKatakana";
278
279 /** The Japanese-Romaji key */
280 static final String JAPANESE_ROMAJI = "JapaneseRomaji";
281
282 /** The Junja Mode key */
283 static final String JUNJA_MODE = "JunjaMode";
284
285 /** The Kana Mode (Kana Lock) key */
286 static final String KANA_MODE = "KanaMode";
287
288 /**
289 * The Kanji (Japanese name for ideographic characters of Chinese origin)
290 * Mode key
291 */
292 static final String KANJI_MODE = "KanjiMode";
293
294 /** The Katakana (Japanese Kana characters) key */
295 static final String KATAKANA = "Katakana";
296
297 /** The Start Application One key */
298 static final String LAUNCH_APPLICATION_1 = "LaunchApplication1";
299
300 /** The Start Application Two key */
301 static final String LAUNCH_APPLICATION_2 = "LaunchApplication2";
302
303 /** The Start Mail key */
304 static final String LAUNCH_MAIL = "LaunchMail";
305
306 /** The Left Arrow key */
307 static final String LEFT = "Left";
308
309 /** The Menu key */
310 static final String MENU = "Menu";
311
312 /**
313 * The Meta key. Note: This key value shall be also used for the Apple
314 * Command key
315 */
316 static final String META = "Meta";
317
318 /** The Media Next Track key */
319 static final String MEDIA_NEXT_TRACK = "MediaNextTrack";
320
321 /** The Media Play Pause key */
322 static final String MEDIA_PAUSE_PLAY = "MediaPlayPause";
323
324 /** The Media Previous Track key */
325 static final String MEDIA_PREVIOUS_TRACK = "MediaPreviousTrack";
326
327 /** The Media Stop key */
328 static final String MEDIA_STOP = "MediaStop";
329
330 /** The Mode Change key */
331 static final String MODE_CHANGE = "ModeChange";
332
333 /** The Next Candidate function key */
334 static final String NEXT_CANDIDATE = "NextCandidate";
335
336 /** The Nonconvert (Don't Convert) key */
337 static final String NON_CONVERT = "Nonconvert";
338
339 /** The Number Lock key */
340 static final String NUM_LOCK = "NumLock";
341
342 /** The Page Down (Next) key */
343 static final String PAGE_DOWN = "PageDown";
344
345 /** The Page Up key */
346 static final String PAGE_UP = "PageUp";
347
348 /** The Paste key */
349 static final String PASTE = "Paste";
350
351 /** The Pause key */
352 static final String PAUSE = "Pause";
353
354 /** The Play key */
355 static final String PLAY = "Play";
356
357 /**
358 * The Power key. Note: Some devices may not expose this key to the
359 * operating environment
360 */
361 static final String POWER = "Power";
362
363 /** The Previous Candidate function key */
364 static final String PREVIOUS_CANDIDATE = "PreviousCandidate";
365
366 /** The Print Screen (PrintScrn, SnapShot) key */
367 static final String PRINT_SCREEN = "PrintScreen";
368
369 /** The Process key */
370 static final String PROCESS = "Process";
371
372 /** The Props key */
373 static final String PROPS = "Props";
374
375 /** The Right Arrow key */
376 static final String RIGHT = "Right";
377
378 /** The Roman Characters function key */
379 static final String ROMAN_CHARACTERS = "RomanCharacters";
380
381 /** The Scroll Lock key */
382 static final String SCROLL = "Scroll";
383
384 /** The Select key */
385 static final String SELECT = "Select";
386
387 /** The Select Media key */
388 static final String SELECT_MEDIA = "SelectMedia";
389
390 /** The Separator key */
391 static final String SEPARATOR = "Separator";
392
393 /** The Shift key */
394 static final String SHIFT = "Shift";
395
396 /** The Soft1 key */
397 static final String SOFT_1 = "Soft1";
398
399 /** The Soft2 key */
400 static final String SOFT_2 = "Soft2";
401
402 /** The Soft3 key */
403 static final String SOFT_3 = "Soft3";
404
405 /** The Soft4 key */
406 static final String SOFT_4 = "Soft4";
407
408 /** The Stop key */
409 static final String STOP = "Stop";
410
411 /** The Subtract key */
412 static final String SUBTRACT = "Subtract";
413
414 /** The Symbol Lock key */
415 static final String SYMBOL_LOCK = "SymbolLock";
416
417 /** The Up Arrow key */
418 static final String UP = "Up";
419
420 /** The diagonal Up-Left Arrow key */
421 static final String UP_LEFT = "UpLeft";
422
423 /** The diagonal Up-Right Arrow key */
424 static final String UP_RIGHT = "UpRight";
425
426 /** The Undo key */
427 static final String UNDO = "Undo";
428
429 /** The Volume Down key */
430 static final String VOLUME_DOWN = "VolumeDown";
431
432 /** The Volume Mute key */
433 static final String VOLUMN_MUTE = "VolumeMute";
434
435 /** The Volume Up key */
436 static final String VOLUMN_UP = "VolumeUp";
437
438 /** The Windows Logo key */
439 static final String WIN = "Win";
440
441 /** The Zoom key */
442 static final String ZOOM = "Zoom";
443
444 /**
445 * The Backspace (Back) key. Note: This key value shall be also used for the
446 * key labeled 'delete' MacOS keyboards when not modified by the 'Fn' key
447 */
448 static final String BACKSPACE = "Backspace";
449
450 /** The Horizontal Tabulation (Tab) key */
451 static final String TAB = "Tab";
452
453 /** The Cancel key */
454 static final String CANCEL = "Cancel";
455
456 /** The Escape (Esc) key */
457 static final String ESC = "Esc";
458
459 /** The Space (Spacebar) key: */
460 static final String SPACEBAR = "Spacebar";
461
462 /**
463 * The Delete (Del) Key. Note: This key value shall be also used for the key
464 * labeled 'delete' MacOS keyboards when modified by the 'Fn' key
465 */
466 static final String DEL = "Del";
467
468 /** The Combining Grave Accent (Greek Varia, Dead Grave) key */
469 static final String DEAD_GRAVE = "DeadGrave";
470
471 /**
472 * The Combining Acute Accent (Stress Mark, Greek Oxia, Tonos, Dead Eacute)
473 * key
474 */
475 static final String DEAD_EACUTE = "DeadEacute";
476
477 /** The Combining Circumflex Accent (Hat, Dead Circumflex) key */
478 static final String DEAD_CIRCUMFLEX = "DeadCircumflex";
479
480 /** The Combining Tilde (Dead Tilde) key */
481 static final String DEAD_TILDE = "DeadTilde";
482
483 /** The Combining Macron (Long, Dead Macron) key */
484 static final String DEAD_MACRON = "DeadMacron";
485
486 /** The Combining Breve (Short, Dead Breve) key */
487 static final String DEAD_BREVE = "DeadBreve";
488
489 /** The Combining Dot Above (Derivative, Dead Above Dot) key */
490 static final String DEAD_ABOVE_DOT = "DeadAboveDot";
491
492 /**
493 * The Combining Diaeresis (Double Dot Abode, Umlaut, Greek Dialytika,
494 * Double Derivative, Dead Diaeresis) key
495 */
496 static final String DEAD_UMLAUT = "DeadUmlaut";
497
498 /** The Combining Ring Above (Dead Above Ring) key */
499 static final String DEAD_ABOVE_RING = "DeadAboveRing";
500
501 /** The Combining Double Acute Accent (Dead Doubleacute) key */
502 static final String DEAD_DOUBLEACUTE = "DeadDoubleacute";
503
504 /** The Combining Caron (Hacek, V Above, Dead Caron) key */
505 static final String DEAD_CARON = "DeadCaron";
506
507 /** The Combining Cedilla (Dead Cedilla) key */
508 static final String DEAD_CEDILLA = "DeadCedilla";
509
510 /** The Combining Ogonek (Nasal Hook, Dead Ogonek) key */
511 static final String DEAD_OGONEK = "DeadOgonek";
512
513 /**
514 * The Combining Greek Ypogegrammeni (Greek Non-Spacing Iota Below, Iota
515 * Subscript, Dead Iota) key
516 */
517 static final String DEAD_IOTA = "DeadIota";
518
519 /**
520 * The Combining Katakana-Hiragana Voiced Sound Mark (Dead Voiced Sound) key
521 */
522 static final String DEAD_VOICED_SOUND = "DeadVoicedSound";
523
524 /**
525 * The Combining Katakana-Hiragana Semi-Voiced Sound Mark (Dead Semivoiced
526 * Sound) key
527 */
528 static final String DEC_SEMIVOICED_SOUND= "DeadSemivoicedSound";
529
530 /**
531 * Key value used when an implementation is unable to identify another key
532 * value, due to either hardware, platform, or software constraints
533 */
534 static final String UNIDENTIFIED = "Unidentified";
535 }
OLDNEW
« no previous file with comments | « client/dom/scripts/template_wrapping_dom.darttemplate ('k') | client/dom/src/KeyLocation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698