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

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

Issue 17063007: Making all DOM types abstract and removing superfluous Dartium constructors. (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
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 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 6 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
7 7
8 factory $CLASSNAME(String type, 8 factory $CLASSNAME(String type,
9 {Window view, bool canBubble: true, bool cancelable: true, 9 {Window view, bool canBubble: true, bool cancelable: true,
10 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false, 10 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false,
11 bool altKey: false, bool shiftKey: false, bool metaKey: false, 11 bool altKey: false, bool shiftKey: false, bool metaKey: false,
12 bool altGraphKey: false}) { 12 bool altGraphKey: false}) {
13 if (view == null) { 13 if (view == null) {
14 view = window; 14 view = window;
15 } 15 }
16 final e = document.$dom_createEvent("KeyboardEvent"); 16 final e = document.$dom_createEvent("KeyboardEvent");
(...skipping 22 matching lines...) Expand all
39 } 39 }
40 } 40 }
41 41
42 @DomName('KeyboardEvent.keyCode') 42 @DomName('KeyboardEvent.keyCode')
43 int get keyCode => $dom_keyCode; 43 int get keyCode => $dom_keyCode;
44 44
45 @DomName('KeyboardEvent.charCode') 45 @DomName('KeyboardEvent.charCode')
46 int get charCode => $dom_charCode; 46 int get charCode => $dom_charCode;
47 $!MEMBERS 47 $!MEMBERS
48 } 48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698