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

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
« no previous file with comments | « sdk/lib/html/src/KeyboardEventController.dart ('k') | sdk/lib/html/src/dartium_KeyEvent.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..83f73ff793405ff5b0f6e6ad1e77b243ebaa04f8 100644
--- a/sdk/lib/html/src/dart2js_KeyEvent.dart
+++ b/sdk/lib/html/src/dart2js_KeyEvent.dart
@@ -104,4 +104,18 @@ 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 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.");
+ }
}
« no previous file with comments | « sdk/lib/html/src/KeyboardEventController.dart ('k') | sdk/lib/html/src/dartium_KeyEvent.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698