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

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

Issue 17759006: Added minimal documentation to the KeyboardEvent class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('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 /**
7 * An event that describes user interaction with the keyboard.
8 *
9 * The [type] of the event identifies what kind of interaction occurred.
10 *
11 * See also:
12 *
13 * * [KeyboardEvent](https://developer.mozilla.org/en/DOM/KeyboardEvent) at MDN.
14 */
6 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 15 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
7 16
8 factory $CLASSNAME(String type, 17 factory $CLASSNAME(String type,
9 {Window view, bool canBubble: true, bool cancelable: true, 18 {Window view, bool canBubble: true, bool cancelable: true,
10 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false, 19 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false,
11 bool altKey: false, bool shiftKey: false, bool metaKey: false, 20 bool altKey: false, bool shiftKey: false, bool metaKey: false,
12 bool altGraphKey: false}) { 21 bool altGraphKey: false}) {
13 if (view == null) { 22 if (view == null) {
14 view = window; 23 view = window;
15 } 24 }
(...skipping 23 matching lines...) Expand all
39 } 48 }
40 } 49 }
41 50
42 @DomName('KeyboardEvent.keyCode') 51 @DomName('KeyboardEvent.keyCode')
43 int get keyCode => $dom_keyCode; 52 int get keyCode => $dom_keyCode;
44 53
45 @DomName('KeyboardEvent.charCode') 54 @DomName('KeyboardEvent.charCode')
46 int get charCode => $dom_charCode; 55 int get charCode => $dom_charCode;
47 $!MEMBERS 56 $!MEMBERS
48 } 57 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698