| Index: sdk/lib/html/dartium/html_dartium.dart
|
| diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
|
| index adc5b0e63c457ac6934ca8fb365dfcb3e65b0823..6c1e45cbea4da136c72e723be4d93360293ef815 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -11984,10 +11984,32 @@ class Events {
|
| class ElementEvents extends Events {
|
| /* Raw event target. */
|
| final Element _ptr;
|
| + static final webkitEvents = {
|
| + 'animationend' : 'webkitAnimationEnd',
|
| + 'animationiteration' : 'webkitAnimationIteration',
|
| + 'animationstart' : 'webkitAnimationStart',
|
| + 'fullscreenchange' : 'webkitfullscreenchange',
|
| + 'fullscreenerror' : 'webkitfullscreenerror',
|
| + 'keyadded' : 'webkitkeyadded',
|
| + 'keyerror' : 'webkitkeyerror',
|
| + 'keymessage' : 'webkitkeymessage',
|
| + 'needkey' : 'webkitneedkey',
|
| + 'pointerlockchange' : 'webkitpointerlockchange',
|
| + 'pointerlockerror' : 'webkitpointerlockerror',
|
| + 'resourcetimingbufferfull' : 'webkitresourcetimingbufferfull',
|
| + 'transitionend': 'webkitTransitionEnd',
|
| + 'speechchange' : 'webkitSpeechChange'
|
| + };
|
|
|
| ElementEvents(Element ptr) : this._ptr = ptr, super(ptr);
|
|
|
| Stream operator [](String type) {
|
| + if (type.toLowerCase() in webkitEvents.keys) {
|
| + if (Device.isWebKit) {
|
| + return new _ElementEventStreamImpl(
|
| + _ptr, webkitEvents[type.toLowerCase()], false);
|
| + }
|
| + }
|
| return new _ElementEventStreamImpl(_ptr, type, false);
|
| }
|
| }
|
| @@ -35336,6 +35358,8 @@ class _Utils {
|
|
|
| static bool isMap(obj) => obj is Map;
|
|
|
| + static List toListIfIterable(obj) => obj is Iterable ? obj.toList() : null;
|
| +
|
| static Map createMap() => {};
|
|
|
| static makeUnimplementedError(String fileName, int lineNo) {
|
| @@ -35642,10 +35666,6 @@ class _Utils {
|
|
|
| static bool isNoSuchMethodError(obj) => obj is NoSuchMethodError;
|
|
|
| - // TODO(jacobr): we need a failsafe way to determine that a Node is really a
|
| - // DOM node rather than just a class that extends Node.
|
| - static bool isNode(obj) => obj is Node;
|
| -
|
| static bool _isBuiltinType(ClassMirror cls) {
|
| // TODO(vsm): Find a less hackish way to do this.
|
| LibraryMirror lib = cls.owner;
|
|
|