| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class _KeyboardEventWrappingImplementation extends _UIEventWrappingImplementatio
n implements KeyboardEvent { | 7 class _KeyboardEventWrappingImplementation extends _UIEventWrappingImplementatio
n implements KeyboardEvent { |
| 8 _KeyboardEventWrappingImplementation() : super() {} | 8 _KeyboardEventWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__KeyboardEventWrappingImplementation() native { | 10 static create__KeyboardEventWrappingImplementation() native { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 int get keyLocation() { return _get__KeyboardEvent_keyLocation(this); } | 26 int get keyLocation() { return _get__KeyboardEvent_keyLocation(this); } |
| 27 static int _get__KeyboardEvent_keyLocation(var _this) native; | 27 static int _get__KeyboardEvent_keyLocation(var _this) native; |
| 28 | 28 |
| 29 bool get metaKey() { return _get__KeyboardEvent_metaKey(this); } | 29 bool get metaKey() { return _get__KeyboardEvent_metaKey(this); } |
| 30 static bool _get__KeyboardEvent_metaKey(var _this) native; | 30 static bool _get__KeyboardEvent_metaKey(var _this) native; |
| 31 | 31 |
| 32 bool get shiftKey() { return _get__KeyboardEvent_shiftKey(this); } | 32 bool get shiftKey() { return _get__KeyboardEvent_shiftKey(this); } |
| 33 static bool _get__KeyboardEvent_shiftKey(var _this) native; | 33 static bool _get__KeyboardEvent_shiftKey(var _this) native; |
| 34 | 34 |
| 35 bool getModifierState(String keyIdentifierArg) { | |
| 36 return _getModifierState(this, keyIdentifierArg); | |
| 37 } | |
| 38 static bool _getModifierState(receiver, keyIdentifierArg) native; | |
| 39 | |
| 40 void initKeyboardEvent(String type, bool canBubble, bool cancelable, DOMWindow
view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool sh
iftKey, bool metaKey, bool altGraphKey) { | 35 void initKeyboardEvent(String type, bool canBubble, bool cancelable, DOMWindow
view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool sh
iftKey, bool metaKey, bool altGraphKey) { |
| 41 _initKeyboardEvent(this, type, canBubble, cancelable, view, keyIdentifier, k
eyLocation, ctrlKey, altKey, shiftKey, metaKey, altGraphKey); | 36 _initKeyboardEvent(this, type, canBubble, cancelable, view, keyIdentifier, k
eyLocation, ctrlKey, altKey, shiftKey, metaKey, altGraphKey); |
| 42 return; | 37 return; |
| 43 } | 38 } |
| 44 static void _initKeyboardEvent(receiver, type, canBubble, cancelable, view, ke
yIdentifier, keyLocation, ctrlKey, altKey, shiftKey, metaKey, altGraphKey) nativ
e; | 39 static void _initKeyboardEvent(receiver, type, canBubble, cancelable, view, ke
yIdentifier, keyLocation, ctrlKey, altKey, shiftKey, metaKey, altGraphKey) nativ
e; |
| 45 | 40 |
| 46 String get typeName() { return "KeyboardEvent"; } | 41 String get typeName() { return "KeyboardEvent"; } |
| 47 } | 42 } |
| OLD | NEW |