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

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

Issue 1754523006: Beginning fix for KeyEvent,KeyboardEvent and UIEvent changes in roll 45 (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged Created 4 years, 9 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 | « tools/dom/templates/html/dart2js/impl_KeyboardEvent.darttemplate ('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 part of $LIBRARYNAME; 4 part of $LIBRARYNAME;
5 5
6 6
7 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS { 7 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
8 8
9 factory $CLASSNAME(String type, 9 factory $CLASSNAME(String type,
10 {Window view, bool canBubble: true, bool cancelable: true, 10 {Window view, bool canBubble: true, bool cancelable: true,
11 int keyLocation: 1, bool ctrlKey: false, 11 int keyLocation: 1, bool ctrlKey: false,
12 bool altKey: false, bool shiftKey: false, bool metaKey: false}) { 12 bool altKey: false, bool shiftKey: false, bool metaKey: false}) {
13 if (view == null) { 13 if (view == null) {
14 view = window; 14 view = window;
15 } 15 }
16 final e = document._createEvent("KeyboardEvent"); 16 final e = document._createEvent("KeyboardEvent");
17 e._initKeyboardEvent(type, canBubble, cancelable, view, "", 17 e._initKeyboardEvent(type, canBubble, cancelable, view, "",
18 keyLocation, ctrlKey, altKey, shiftKey, metaKey); 18 keyLocation, ctrlKey, altKey, shiftKey, metaKey);
19 return e; 19 return e;
20 } 20 }
21 21
22 @DomName('KeyboardEvent.keyCode') 22 @DomName('KeyboardEvent.keyCode')
23 int get keyCode => _keyCode; 23 int get keyCode => _keyCode;
24 24
25 @DomName('KeyboardEvent.charCode') 25 @DomName('KeyboardEvent.charCode')
26 int get charCode => _charCode; 26 int get charCode => _charCode;
27
28 @DomName('KeyboardEvent.which')
29 int get which => _which;
27 $!MEMBERS 30 $!MEMBERS
28 } 31 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/dart2js/impl_KeyboardEvent.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698