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

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

Issue 18054021: Fixing up DOM constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 15 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
16 16
17 factory $CLASSNAME(String type, 17 factory $CLASSNAME(String type,
18 {Window view, bool canBubble: true, bool cancelable: true, 18 {Window view, bool canBubble: true, bool cancelable: true,
19 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false, 19 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false,
20 bool altKey: false, bool shiftKey: false, bool metaKey: false, 20 bool altKey: false, bool shiftKey: false, bool metaKey: false,
21 bool altGraphKey: false}) { 21 bool altGraphKey: false}) {
22 if (view == null) { 22 if (view == null) {
23 view = window; 23 view = window;
24 } 24 }
25 final e = document.$dom_createEvent("KeyboardEvent"); 25 final e = document.$dom_createEvent("KeyboardEvent");
(...skipping 22 matching lines...) Expand all
48 } 48 }
49 } 49 }
50 50
51 @DomName('KeyboardEvent.keyCode') 51 @DomName('KeyboardEvent.keyCode')
52 int get keyCode => $dom_keyCode; 52 int get keyCode => $dom_keyCode;
53 53
54 @DomName('KeyboardEvent.charCode') 54 @DomName('KeyboardEvent.charCode')
55 int get charCode => $dom_charCode; 55 int get charCode => $dom_charCode;
56 $!MEMBERS 56 $!MEMBERS
57 } 57 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698