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

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

Issue 410823002: Revert "Use @Native annotation on dart2js DOM native classes" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 *
11 * See also: 11 * See also:
12 * 12 *
13 * * [KeyboardEvent](https://developer.mozilla.org/en/DOM/KeyboardEvent) at MDN. 13 * * [KeyboardEvent](https://developer.mozilla.org/en/DOM/KeyboardEvent) at MDN.
14 */ 14 */
15 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS { 15 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
16 16
17 /** 17 /**
18 * Programmatically create a KeyboardEvent. 18 * Programmatically create a KeyboardEvent.
19 * 19 *
20 * Due to browser differences, keyCode, charCode, or keyIdentifier values 20 * Due to browser differences, keyCode, charCode, or keyIdentifier values
21 * cannot be specified in this base level constructor. This constructor 21 * cannot be specified in this base level constructor. This constructor
22 * enables the user to programmatically create and dispatch a [KeyboardEvent], 22 * enables the user to programmatically create and dispatch a [KeyboardEvent],
23 * but it will not contain any particular key content. For programmatically 23 * but it will not contain any particular key content. For programmatically
24 * creating keyboard events with specific key value contents, see the custom 24 * creating keyboard events with specific key value contents, see the custom
25 * Event [KeyEvent]. 25 * Event [KeyEvent].
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } 58 }
59 } 59 }
60 60
61 @DomName('KeyboardEvent.keyCode') 61 @DomName('KeyboardEvent.keyCode')
62 int get keyCode => _keyCode; 62 int get keyCode => _keyCode;
63 63
64 @DomName('KeyboardEvent.charCode') 64 @DomName('KeyboardEvent.charCode')
65 int get charCode => _charCode; 65 int get charCode => _charCode;
66 $!MEMBERS 66 $!MEMBERS
67 } 67 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698