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

Side by Side Diff: client/dom/frog/frog_dom.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/dom.dart ('k') | client/dom/frog_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 #library('dom'); 1 #library('dom');
2 2
3 #native('frog_dom.js'); 3 #native('frog_dom.js');
4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
5 // for details. All rights reserved. Use of this source code is governed by a 5 // for details. All rights reserved. Use of this source code is governed by a
6 // BSD-style license that can be found in the LICENSE file. 6 // BSD-style license that can be found in the LICENSE file.
7 7
8 // DO NOT EDIT 8 // DO NOT EDIT
9 // Auto-generated Dart DOM library. 9 // Auto-generated Dart DOM library.
10 10
(...skipping 11207 matching lines...) Expand 10 before | Expand all | Expand 10 after
11218 typedef bool StringCallback(String data); 11218 typedef bool StringCallback(String data);
11219 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 11219 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
11220 // for details. All rights reserved. Use of this source code is governed by a 11220 // for details. All rights reserved. Use of this source code is governed by a
11221 // BSD-style license that can be found in the LICENSE file. 11221 // BSD-style license that can be found in the LICENSE file.
11222 11222
11223 typedef void EventListener(Event event); 11223 typedef void EventListener(Event event);
11224 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 11224 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
11225 // for details. All rights reserved. Use of this source code is governed by a 11225 // for details. All rights reserved. Use of this source code is governed by a
11226 // BSD-style license that can be found in the LICENSE file. 11226 // BSD-style license that can be found in the LICENSE file.
11227 11227
11228 /**
11229 * Defines the standard key locations returned by
11230 * KeyboardEvent.getKeyLocation.
11231 */
11232 interface KeyLocation {
11233
11234 /**
11235 * The event key is not distinguished as the left or right version
11236 * of the key, and did not originate from the numeric keypad (or did not
11237 * originate with a virtual key corresponding to the numeric keypad).
11238 */
11239 static final int STANDARD = 0;
11240
11241 /**
11242 * The event key is in the left key location.
11243 */
11244 static final int LEFT = 1;
11245
11246 /**
11247 * The event key is in the right key location.
11248 */
11249 static final int RIGHT = 2;
11250
11251 /**
11252 * The event key originated on the numeric keypad or with a virtual key
11253 * corresponding to the numeric keypad.
11254 */
11255 static final int NUMPAD = 3;
11256
11257 /**
11258 * The event key originated on a mobile device, either on a physical
11259 * keypad or a virtual keyboard.
11260 */
11261 static final int MOBILE = 4;
11262
11263 /**
11264 * The event key originated on a game controller or a joystick on a mobile
11265 * device.
11266 */
11267 static final int JOYSTICK = 5;
11268 }
11269 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
11270 // for details. All rights reserved. Use of this source code is governed by a
11271 // BSD-style license that can be found in the LICENSE file.
11272
11273 /**
11274 * Defines the standard keyboard identifier names for keys that are returned
11275 * by KeyEvent.getKeyboardIdentifier when the key does not have a direct
11276 * unicode mapping.
11277 */
11278 interface KeyName {
11279
11280 /** The Accept (Commit, OK) key */
11281 static final String ACCEPT = "Accept";
11282
11283 /** The Add key */
11284 static final String ADD = "Add";
11285
11286 /** The Again key */
11287 static final String AGAIN = "Again";
11288
11289 /** The All Candidates key */
11290 static final String ALL_CANDIDATES = "AllCandidates";
11291
11292 /** The Alphanumeric key */
11293 static final String ALPHANUMERIC = "Alphanumeric";
11294
11295 /** The Alt (Menu) key */
11296 static final String ALT = "Alt";
11297
11298 /** The Alt-Graph key */
11299 static final String ALT_GRAPH = "AltGraph";
11300
11301 /** The Application key */
11302 static final String APPS = "Apps";
11303
11304 /** The ATTN key */
11305 static final String ATTN = "Attn";
11306
11307 /** The Browser Back key */
11308 static final String BROWSER_BACK = "BrowserBack";
11309
11310 /** The Browser Favorites key */
11311 static final String BROWSER_FAVORTIES = "BrowserFavorites";
11312
11313 /** The Browser Forward key */
11314 static final String BROWSER_FORWARD = "BrowserForward";
11315
11316 /** The Browser Home key */
11317 static final String BROWSER_NAME = "BrowserHome";
11318
11319 /** The Browser Refresh key */
11320 static final String BROWSER_REFRESH = "BrowserRefresh";
11321
11322 /** The Browser Search key */
11323 static final String BROWSER_SEARCH = "BrowserSearch";
11324
11325 /** The Browser Stop key */
11326 static final String BROWSER_STOP = "BrowserStop";
11327
11328 /** The Camera key */
11329 static final String CAMERA = "Camera";
11330
11331 /** The Caps Lock (Capital) key */
11332 static final String CAPS_LOCK = "CapsLock";
11333
11334 /** The Clear key */
11335 static final String CLEAR = "Clear";
11336
11337 /** The Code Input key */
11338 static final String CODE_INPUT = "CodeInput";
11339
11340 /** The Compose key */
11341 static final String COMPOSE = "Compose";
11342
11343 /** The Control (Ctrl) key */
11344 static final String CONTROL = "Control";
11345
11346 /** The Crsel key */
11347 static final String CRSEL = "Crsel";
11348
11349 /** The Convert key */
11350 static final String CONVERT = "Convert";
11351
11352 /** The Copy key */
11353 static final String COPY = "Copy";
11354
11355 /** The Cut key */
11356 static final String CUT = "Cut";
11357
11358 /** The Decimal key */
11359 static final String DECIMAL = "Decimal";
11360
11361 /** The Divide key */
11362 static final String DIVIDE = "Divide";
11363
11364 /** The Down Arrow key */
11365 static final String DOWN = "Down";
11366
11367 /** The diagonal Down-Left Arrow key */
11368 static final String DOWN_LEFT = "DownLeft";
11369
11370 /** The diagonal Down-Right Arrow key */
11371 static final String DOWN_RIGHT = "DownRight";
11372
11373 /** The Eject key */
11374 static final String EJECT = "Eject";
11375
11376 /** The End key */
11377 static final String END = "End";
11378
11379 /**
11380 * The Enter key. Note: This key value must also be used for the Return
11381 * (Macintosh numpad) key
11382 */
11383 static final String ENTER = "Enter";
11384
11385 /** The Erase EOF key */
11386 static final String ERASE_EOF= "EraseEof";
11387
11388 /** The Execute key */
11389 static final String EXECUTE = "Execute";
11390
11391 /** The Exsel key */
11392 static final String EXSEL = "Exsel";
11393
11394 /** The Function switch key */
11395 static final String FN = "Fn";
11396
11397 /** The F1 key */
11398 static final String F1 = "F1";
11399
11400 /** The F2 key */
11401 static final String F2 = "F2";
11402
11403 /** The F3 key */
11404 static final String F3 = "F3";
11405
11406 /** The F4 key */
11407 static final String F4 = "F4";
11408
11409 /** The F5 key */
11410 static final String F5 = "F5";
11411
11412 /** The F6 key */
11413 static final String F6 = "F6";
11414
11415 /** The F7 key */
11416 static final String F7 = "F7";
11417
11418 /** The F8 key */
11419 static final String F8 = "F8";
11420
11421 /** The F9 key */
11422 static final String F9 = "F9";
11423
11424 /** The F10 key */
11425 static final String F10 = "F10";
11426
11427 /** The F11 key */
11428 static final String F11 = "F11";
11429
11430 /** The F12 key */
11431 static final String F12 = "F12";
11432
11433 /** The F13 key */
11434 static final String F13 = "F13";
11435
11436 /** The F14 key */
11437 static final String F14 = "F14";
11438
11439 /** The F15 key */
11440 static final String F15 = "F15";
11441
11442 /** The F16 key */
11443 static final String F16 = "F16";
11444
11445 /** The F17 key */
11446 static final String F17 = "F17";
11447
11448 /** The F18 key */
11449 static final String F18 = "F18";
11450
11451 /** The F19 key */
11452 static final String F19 = "F19";
11453
11454 /** The F20 key */
11455 static final String F20 = "F20";
11456
11457 /** The F21 key */
11458 static final String F21 = "F21";
11459
11460 /** The F22 key */
11461 static final String F22 = "F22";
11462
11463 /** The F23 key */
11464 static final String F23 = "F23";
11465
11466 /** The F24 key */
11467 static final String F24 = "F24";
11468
11469 /** The Final Mode (Final) key used on some asian keyboards */
11470 static final String FINAL_MODE = "FinalMode";
11471
11472 /** The Find key */
11473 static final String FIND = "Find";
11474
11475 /** The Full-Width Characters key */
11476 static final String FULL_WIDTH = "FullWidth";
11477
11478 /** The Half-Width Characters key */
11479 static final String HALF_WIDTH = "HalfWidth";
11480
11481 /** The Hangul (Korean characters) Mode key */
11482 static final String HANGUL_MODE = "HangulMode";
11483
11484 /** The Hanja (Korean characters) Mode key */
11485 static final String HANJA_MODE = "HanjaMode";
11486
11487 /** The Help key */
11488 static final String HELP = "Help";
11489
11490 /** The Hiragana (Japanese Kana characters) key */
11491 static final String HIRAGANA = "Hiragana";
11492
11493 /** The Home key */
11494 static final String HOME = "Home";
11495
11496 /** The Insert (Ins) key */
11497 static final String INSERT = "Insert";
11498
11499 /** The Japanese-Hiragana key */
11500 static final String JAPANESE_HIRAGANA = "JapaneseHiragana";
11501
11502 /** The Japanese-Katakana key */
11503 static final String JAPANESE_KATAKANA = "JapaneseKatakana";
11504
11505 /** The Japanese-Romaji key */
11506 static final String JAPANESE_ROMAJI = "JapaneseRomaji";
11507
11508 /** The Junja Mode key */
11509 static final String JUNJA_MODE = "JunjaMode";
11510
11511 /** The Kana Mode (Kana Lock) key */
11512 static final String KANA_MODE = "KanaMode";
11513
11514 /**
11515 * The Kanji (Japanese name for ideographic characters of Chinese origin)
11516 * Mode key
11517 */
11518 static final String KANJI_MODE = "KanjiMode";
11519
11520 /** The Katakana (Japanese Kana characters) key */
11521 static final String KATAKANA = "Katakana";
11522
11523 /** The Start Application One key */
11524 static final String LAUNCH_APPLICATION_1 = "LaunchApplication1";
11525
11526 /** The Start Application Two key */
11527 static final String LAUNCH_APPLICATION_2 = "LaunchApplication2";
11528
11529 /** The Start Mail key */
11530 static final String LAUNCH_MAIL = "LaunchMail";
11531
11532 /** The Left Arrow key */
11533 static final String LEFT = "Left";
11534
11535 /** The Menu key */
11536 static final String MENU = "Menu";
11537
11538 /**
11539 * The Meta key. Note: This key value shall be also used for the Apple
11540 * Command key
11541 */
11542 static final String META = "Meta";
11543
11544 /** The Media Next Track key */
11545 static final String MEDIA_NEXT_TRACK = "MediaNextTrack";
11546
11547 /** The Media Play Pause key */
11548 static final String MEDIA_PAUSE_PLAY = "MediaPlayPause";
11549
11550 /** The Media Previous Track key */
11551 static final String MEDIA_PREVIOUS_TRACK = "MediaPreviousTrack";
11552
11553 /** The Media Stop key */
11554 static final String MEDIA_STOP = "MediaStop";
11555
11556 /** The Mode Change key */
11557 static final String MODE_CHANGE = "ModeChange";
11558
11559 /** The Next Candidate function key */
11560 static final String NEXT_CANDIDATE = "NextCandidate";
11561
11562 /** The Nonconvert (Don't Convert) key */
11563 static final String NON_CONVERT = "Nonconvert";
11564
11565 /** The Number Lock key */
11566 static final String NUM_LOCK = "NumLock";
11567
11568 /** The Page Down (Next) key */
11569 static final String PAGE_DOWN = "PageDown";
11570
11571 /** The Page Up key */
11572 static final String PAGE_UP = "PageUp";
11573
11574 /** The Paste key */
11575 static final String PASTE = "Paste";
11576
11577 /** The Pause key */
11578 static final String PAUSE = "Pause";
11579
11580 /** The Play key */
11581 static final String PLAY = "Play";
11582
11583 /**
11584 * The Power key. Note: Some devices may not expose this key to the
11585 * operating environment
11586 */
11587 static final String POWER = "Power";
11588
11589 /** The Previous Candidate function key */
11590 static final String PREVIOUS_CANDIDATE = "PreviousCandidate";
11591
11592 /** The Print Screen (PrintScrn, SnapShot) key */
11593 static final String PRINT_SCREEN = "PrintScreen";
11594
11595 /** The Process key */
11596 static final String PROCESS = "Process";
11597
11598 /** The Props key */
11599 static final String PROPS = "Props";
11600
11601 /** The Right Arrow key */
11602 static final String RIGHT = "Right";
11603
11604 /** The Roman Characters function key */
11605 static final String ROMAN_CHARACTERS = "RomanCharacters";
11606
11607 /** The Scroll Lock key */
11608 static final String SCROLL = "Scroll";
11609
11610 /** The Select key */
11611 static final String SELECT = "Select";
11612
11613 /** The Select Media key */
11614 static final String SELECT_MEDIA = "SelectMedia";
11615
11616 /** The Separator key */
11617 static final String SEPARATOR = "Separator";
11618
11619 /** The Shift key */
11620 static final String SHIFT = "Shift";
11621
11622 /** The Soft1 key */
11623 static final String SOFT_1 = "Soft1";
11624
11625 /** The Soft2 key */
11626 static final String SOFT_2 = "Soft2";
11627
11628 /** The Soft3 key */
11629 static final String SOFT_3 = "Soft3";
11630
11631 /** The Soft4 key */
11632 static final String SOFT_4 = "Soft4";
11633
11634 /** The Stop key */
11635 static final String STOP = "Stop";
11636
11637 /** The Subtract key */
11638 static final String SUBTRACT = "Subtract";
11639
11640 /** The Symbol Lock key */
11641 static final String SYMBOL_LOCK = "SymbolLock";
11642
11643 /** The Up Arrow key */
11644 static final String UP = "Up";
11645
11646 /** The diagonal Up-Left Arrow key */
11647 static final String UP_LEFT = "UpLeft";
11648
11649 /** The diagonal Up-Right Arrow key */
11650 static final String UP_RIGHT = "UpRight";
11651
11652 /** The Undo key */
11653 static final String UNDO = "Undo";
11654
11655 /** The Volume Down key */
11656 static final String VOLUME_DOWN = "VolumeDown";
11657
11658 /** The Volume Mute key */
11659 static final String VOLUMN_MUTE = "VolumeMute";
11660
11661 /** The Volume Up key */
11662 static final String VOLUMN_UP = "VolumeUp";
11663
11664 /** The Windows Logo key */
11665 static final String WIN = "Win";
11666
11667 /** The Zoom key */
11668 static final String ZOOM = "Zoom";
11669
11670 /**
11671 * The Backspace (Back) key. Note: This key value shall be also used for the
11672 * key labeled 'delete' MacOS keyboards when not modified by the 'Fn' key
11673 */
11674 static final String BACKSPACE = "Backspace";
11675
11676 /** The Horizontal Tabulation (Tab) key */
11677 static final String TAB = "Tab";
11678
11679 /** The Cancel key */
11680 static final String CANCEL = "Cancel";
11681
11682 /** The Escape (Esc) key */
11683 static final String ESC = "Esc";
11684
11685 /** The Space (Spacebar) key: */
11686 static final String SPACEBAR = "Spacebar";
11687
11688 /**
11689 * The Delete (Del) Key. Note: This key value shall be also used for the key
11690 * labeled 'delete' MacOS keyboards when modified by the 'Fn' key
11691 */
11692 static final String DEL = "Del";
11693
11694 /** The Combining Grave Accent (Greek Varia, Dead Grave) key */
11695 static final String DEAD_GRAVE = "DeadGrave";
11696
11697 /**
11698 * The Combining Acute Accent (Stress Mark, Greek Oxia, Tonos, Dead Eacute)
11699 * key
11700 */
11701 static final String DEAD_EACUTE = "DeadEacute";
11702
11703 /** The Combining Circumflex Accent (Hat, Dead Circumflex) key */
11704 static final String DEAD_CIRCUMFLEX = "DeadCircumflex";
11705
11706 /** The Combining Tilde (Dead Tilde) key */
11707 static final String DEAD_TILDE = "DeadTilde";
11708
11709 /** The Combining Macron (Long, Dead Macron) key */
11710 static final String DEAD_MACRON = "DeadMacron";
11711
11712 /** The Combining Breve (Short, Dead Breve) key */
11713 static final String DEAD_BREVE = "DeadBreve";
11714
11715 /** The Combining Dot Above (Derivative, Dead Above Dot) key */
11716 static final String DEAD_ABOVE_DOT = "DeadAboveDot";
11717
11718 /**
11719 * The Combining Diaeresis (Double Dot Abode, Umlaut, Greek Dialytika,
11720 * Double Derivative, Dead Diaeresis) key
11721 */
11722 static final String DEAD_UMLAUT = "DeadUmlaut";
11723
11724 /** The Combining Ring Above (Dead Above Ring) key */
11725 static final String DEAD_ABOVE_RING = "DeadAboveRing";
11726
11727 /** The Combining Double Acute Accent (Dead Doubleacute) key */
11728 static final String DEAD_DOUBLEACUTE = "DeadDoubleacute";
11729
11730 /** The Combining Caron (Hacek, V Above, Dead Caron) key */
11731 static final String DEAD_CARON = "DeadCaron";
11732
11733 /** The Combining Cedilla (Dead Cedilla) key */
11734 static final String DEAD_CEDILLA = "DeadCedilla";
11735
11736 /** The Combining Ogonek (Nasal Hook, Dead Ogonek) key */
11737 static final String DEAD_OGONEK = "DeadOgonek";
11738
11739 /**
11740 * The Combining Greek Ypogegrammeni (Greek Non-Spacing Iota Below, Iota
11741 * Subscript, Dead Iota) key
11742 */
11743 static final String DEAD_IOTA = "DeadIota";
11744
11745 /**
11746 * The Combining Katakana-Hiragana Voiced Sound Mark (Dead Voiced Sound) key
11747 */
11748 static final String DEAD_VOICED_SOUND = "DeadVoicedSound";
11749
11750 /**
11751 * The Combining Katakana-Hiragana Semi-Voiced Sound Mark (Dead Semivoiced
11752 * Sound) key
11753 */
11754 static final String DEC_SEMIVOICED_SOUND= "DeadSemivoicedSound";
11755
11756 /**
11757 * Key value used when an implementation is unable to identify another key
11758 * value, due to either hardware, platform, or software constraints
11759 */
11760 static final String UNIDENTIFIED = "Unidentified";
11761 }
11762 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
11763 // for details. All rights reserved. Use of this source code is governed by a
11764 // BSD-style license that can be found in the LICENSE file.
11765
11228 typedef bool RequestAnimationFrameCallback(int time); 11766 typedef bool RequestAnimationFrameCallback(int time);
11229 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 11767 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
11230 // for details. All rights reserved. Use of this source code is governed by a 11768 // for details. All rights reserved. Use of this source code is governed by a
11231 // BSD-style license that can be found in the LICENSE file. 11769 // BSD-style license that can be found in the LICENSE file.
11232 11770
11233 typedef void TimeoutHandler(); 11771 typedef void TimeoutHandler();
11234 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 11772 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
11235 // for details. All rights reserved. Use of this source code is governed by a 11773 // for details. All rights reserved. Use of this source code is governed by a
11236 // BSD-style license that can be found in the LICENSE file. 11774 // BSD-style license that can be found in the LICENSE file.
11237 11775
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
11349 startIndex = a.length - 1; 11887 startIndex = a.length - 1;
11350 } 11888 }
11351 for (int i = startIndex; i >= 0; i--) { 11889 for (int i = startIndex; i >= 0; i--) {
11352 if (a[i] == element) { 11890 if (a[i] == element) {
11353 return i; 11891 return i;
11354 } 11892 }
11355 } 11893 }
11356 return -1; 11894 return -1;
11357 } 11895 }
11358 } 11896 }
OLDNEW
« no previous file with comments | « client/dom/dom.dart ('k') | client/dom/frog_dom.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698