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

Unified Diff: sdk/lib/html/src/dart2js_KeyEvent.dart

Issue 11453027: Fixed a lot of dartanalyzer static analysis issues with the html lib. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/html/src/dart2js_KeyEvent.dart
diff --git a/sdk/lib/html/src/dart2js_KeyEvent.dart b/sdk/lib/html/src/dart2js_KeyEvent.dart
index 9a07ea0c614f572adf579ee9b6c2db37bfdbda0f..49b6acc58148bbeef3c89c8346ddaa92d33d5797 100644
--- a/sdk/lib/html/src/dart2js_KeyEvent.dart
+++ b/sdk/lib/html/src/dart2js_KeyEvent.dart
@@ -104,4 +104,17 @@ class KeyEvent implements KeyboardEvent {
throw new UnsupportedError("Cannot initialize an Event from a KeyEvent.");
}
String get _shadowKeyIdentifier => JS('String', '#.keyIdentifier', _parent);
+
+ int get $dom_charCode => charCode;
+ int get $dom_keyCode => keyCode;
+ EventTarget get target => _parent.target;
+ String get $dom_keyIdentifier {
+ throw new UnsupportedError("keyIdentifier is deprecated");
blois 2012/12/06 18:23:12 Deprecated is probably the wrong word- unsupported
+ }
+ void $dom_initKeyboardEvent(String type, bool canBubble, bool cancelable,
+ LocalWindow view, String keyIdentifier, int keyLocation, bool ctrlKey,
+ bool altKey, bool shiftKey, bool metaKey,
+ bool altGraphKey) {
+ throw new UnsupportedError("Cannot initialize a KeyboardEvent from a KeyEvent.");
blois 2012/12/06 18:23:12 line length
+ }
}

Powered by Google App Engine
This is Rietveld 408576698