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

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

Issue 254463006: This CL contains all of the changes for splitting off all of the native (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 part of $LIBRARYNAME; 4 part of $LIBRARYNAME;
5 5
6 $!TOPLEVEL
6 7
7 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 8 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
8 9
9 factory $CLASSNAME(String type, 10 factory $CLASSNAME(String type,
10 {Window view, bool canBubble: true, bool cancelable: true, 11 {Window view, bool canBubble: true, bool cancelable: true,
11 int keyLocation: 1, bool ctrlKey: false, 12 int keyLocation: 1, bool ctrlKey: false,
12 bool altKey: false, bool shiftKey: false, bool metaKey: false, 13 bool altKey: false, bool shiftKey: false, bool metaKey: false,
13 bool altGraphKey: false}) { 14 bool altGraphKey: false}) {
14 if (view == null) { 15 if (view == null) {
15 view = window; 16 view = window;
16 } 17 }
17 final e = document._createEvent("KeyboardEvent"); 18 final e = document._createEvent("KeyboardEvent");
18 e._initKeyboardEvent(type, canBubble, cancelable, view, "", 19 e._initKeyboardEvent(type, canBubble, cancelable, view, "",
19 keyLocation, ctrlKey, altKey, shiftKey, metaKey, altGraphKey); 20 keyLocation, ctrlKey, altKey, shiftKey, metaKey, altGraphKey);
20 return e; 21 return e;
21 } 22 }
22 23
23 @DomName('KeyboardEvent.keyCode') 24 @DomName('KeyboardEvent.keyCode')
24 int get keyCode => _keyCode; 25 int get keyCode => _keyCode;
25 26
26 @DomName('KeyboardEvent.charCode') 27 @DomName('KeyboardEvent.charCode')
27 int get charCode => _charCode; 28 int get charCode => _charCode;
28 $!MEMBERS 29 $!MEMBERS
29 } 30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698