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

Side by Side Diff: tools/dom/templates/html/dart2js/impl_KeyboardEvent.darttemplate

Issue 2896653003: Make KeyboardEvent have direct fields for keyCode/charCode, as they're no longer inherited from UIE… (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « tests/html/html.status ('k') | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /** 6 /**
7 * An event that describes user interaction with the keyboard. 7 * An event that describes user interaction with the keyboard.
8 * 8 *
9 * The [type] of the event identifies what kind of interaction occurred. 9 * The [type] of the event identifies what kind of interaction occurred.
10 * 10 *
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 ctrlKey, altKey, shiftKey, metaKey); 58 ctrlKey, altKey, shiftKey, metaKey);
59 } else { 59 } else {
60 // initKeyboardEvent is for all other browsers. 60 // initKeyboardEvent is for all other browsers.
61 JS('void', '#.initKeyboardEvent(#, #, #, #, #, #, #, #, #, #)', this, 61 JS('void', '#.initKeyboardEvent(#, #, #, #, #, #, #, #, #, #)', this,
62 type, canBubble, cancelable, view, keyIdentifier, location, 62 type, canBubble, cancelable, view, keyIdentifier, location,
63 ctrlKey, altKey, shiftKey, metaKey); 63 ctrlKey, altKey, shiftKey, metaKey);
64 } 64 }
65 } 65 }
66 66
67 @DomName('KeyboardEvent.keyCode') 67 @DomName('KeyboardEvent.keyCode')
68 int get keyCode => _keyCode; 68 final int keyCode;
69 69
70 @DomName('KeyboardEvent.charCode') 70 @DomName('KeyboardEvent.charCode')
71 int get charCode => _charCode; 71 final int charCode;
72 72
73 @DomName('KeyboardEvent.which') 73 @DomName('KeyboardEvent.which')
74 int get which => _which; 74 int get which => _which;
75 $!MEMBERS 75 $!MEMBERS
76 } 76 }
OLDNEW
« no previous file with comments | « tests/html/html.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698