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

Unified Diff: pkg/dev_compiler/lib/js/es6/dart_sdk.js

Issue 2431443002: Use dart:html prefixes (e.g. webkitAudioNode) on other browsers (Closed)
Patch Set: Fix indent Created 4 years, 2 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:
Download patch
« no previous file with comments | « pkg/dev_compiler/lib/js/common/dart_sdk.js ('k') | pkg/dev_compiler/lib/js/legacy/dart_library.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/lib/js/es6/dart_sdk.js
diff --git a/pkg/dev_compiler/lib/js/es6/dart_sdk.js b/pkg/dev_compiler/lib/js/es6/dart_sdk.js
index 5114d4a862bff7dbc57d6e2203feeb83e43be1e2..a4e5fd157d6a67d23c7373de9555b925f2bd70f5 100644
--- a/pkg/dev_compiler/lib/js/es6/dart_sdk.js
+++ b/pkg/dev_compiler/lib/js/es6/dart_sdk.js
@@ -1058,8 +1058,10 @@ dart.setBaseClass = function(derived, base) {
derived.__proto__ = base;
};
dart.setExtensionBaseClass = function(derived, base) {
- derived.prototype[dart._extensionType] = derived;
- derived.prototype.__proto__ = base.prototype;
+ if (base) {
+ derived.prototype[dart._extensionType] = derived;
+ derived.prototype.__proto__ = base.prototype;
+ }
};
dart.callableClass = function(callableCtor, classExpr) {
callableCtor.prototype = classExpr.prototype;
@@ -16288,6 +16290,7 @@ dart.setSignature(_native_typed_data.NativeUint8ClampedList, {
names: ['_create1', '_create2', '_create3']
});
dart.registerExtension(dart.global.Uint8ClampedArray, _native_typed_data.NativeUint8ClampedList);
+dart.registerExtension(dart.global.CanvasPixelArray, _native_typed_data.NativeUint8ClampedList);
dart.defineExtensionNames([
'runtimeType',
'length',
@@ -39271,6 +39274,7 @@ dart.defineLazy(indexed_db.OpenDBRequest, {
}
});
dart.registerExtension(dart.global.IDBOpenDBRequest, indexed_db.OpenDBRequest);
+dart.registerExtension(dart.global.IDBVersionChangeRequest, indexed_db.OpenDBRequest);
dart.defineExtensionNames([
'completed',
'abort',
@@ -39522,6 +39526,7 @@ html.Event.AT_TARGET = 2;
html.Event.BUBBLING_PHASE = 3;
html.Event.CAPTURING_PHASE = 1;
dart.registerExtension(dart.global.Event, html.Event);
+dart.registerExtension(dart.global.InputEvent, html.Event);
dart.defineExtensionNames([
'dataLoss',
'dataLossMessage',
@@ -42400,6 +42405,8 @@ dart.defineLazy(html.ApplicationCache, {
}
});
dart.registerExtension(dart.global.ApplicationCache, html.ApplicationCache);
+dart.registerExtension(dart.global.DOMApplicationCache, html.ApplicationCache);
+dart.registerExtension(dart.global.OfflineResourceList, html.ApplicationCache);
dart.defineExtensionNames([
'message',
'reason',
@@ -46219,6 +46226,8 @@ dart.setSignature(html.CssKeyframeRule, {
})
});
dart.registerExtension(dart.global.CSSKeyframeRule, html.CssKeyframeRule);
+dart.registerExtension(dart.global.MozCSSKeyframeRule, html.CssKeyframeRule);
+dart.registerExtension(dart.global.WebKitCSSKeyframeRule, html.CssKeyframeRule);
dart.defineExtensionNames([
'appendRule',
'deleteRule',
@@ -46266,6 +46275,8 @@ dart.setSignature(html.CssKeyframesRule, {
})
});
dart.registerExtension(dart.global.CSSKeyframesRule, html.CssKeyframesRule);
+dart.registerExtension(dart.global.MozCSSKeyframesRule, html.CssKeyframesRule);
+dart.registerExtension(dart.global.WebKitCSSKeyframesRule, html.CssKeyframesRule);
dart.defineExtensionNames([
'media'
]);
@@ -52007,6 +52018,8 @@ dart.defineLazy(html.CssStyleDeclaration, {
}
});
dart.registerExtension(dart.global.CSSStyleDeclaration, html.CssStyleDeclaration);
+dart.registerExtension(dart.global.MSStyleCSSProperties, html.CssStyleDeclaration);
+dart.registerExtension(dart.global.CSS2Properties, html.CssStyleDeclaration);
const _elementIterable = Symbol('_elementIterable');
const _elementCssStyleDeclarationSetIterable = Symbol('_elementCssStyleDeclarationSetIterable');
const _setAll = Symbol('_setAll');
@@ -64483,6 +64496,7 @@ dart.setSignature(html.MouseEvent, {
names: ['_create_1', '_create_2']
});
dart.registerExtension(dart.global.MouseEvent, html.MouseEvent);
+dart.registerExtension(dart.global.DragEvent, html.MouseEvent);
html.MutationCallback = dart.typedef('MutationCallback', () => dart.functionType(dart.void, [ListOfMutationRecord(), html.MutationObserver]));
const _observe_1 = Symbol('_observe_1');
const _observe = Symbol('_observe');
@@ -64572,6 +64586,7 @@ dart.setSignature(html.MutationObserver, {
});
html.MutationObserver._boolKeys = dart.const(dart.map({childList: true, attributes: true, characterData: true, subtree: true, attributeOldValue: true, characterDataOldValue: true}, core.String, core.bool));
dart.registerExtension(dart.global.MutationObserver, html.MutationObserver);
+dart.registerExtension(dart.global.WebKitMutationObserver, html.MutationObserver);
dart.defineExtensionNames([
'addedNodes',
'attributeName',
@@ -65377,6 +65392,7 @@ dart.setSignature(html.NodeList, {
})
});
dart.registerExtension(dart.global.NodeList, html.NodeList);
+dart.registerExtension(dart.global.RadioNodeList, html.NodeList);
dart.defineExtensionNames([
'nextElementSibling',
'previousElementSibling'
@@ -68295,6 +68311,7 @@ dart.defineLazy(html.RtcDataChannel, {
}
});
dart.registerExtension(dart.global.RTCDataChannel, html.RtcDataChannel);
+dart.registerExtension(dart.global.DataChannel, html.RtcDataChannel);
dart.defineExtensionNames([
'channel'
]);
@@ -68437,6 +68454,7 @@ dart.setSignature(html.RtcIceCandidate, {
})
});
dart.registerExtension(dart.global.RTCIceCandidate, html.RtcIceCandidate);
+dart.registerExtension(dart.global.mozRTCIceCandidate, html.RtcIceCandidate);
dart.defineExtensionNames([
'candidate'
]);
@@ -68453,6 +68471,7 @@ dart.setSignature(html.RtcIceCandidateEvent, {
fields: () => ({[dartx.candidate]: html.RtcIceCandidate})
});
dart.registerExtension(dart.global.RTCIceCandidateEvent, html.RtcIceCandidateEvent);
+dart.registerExtension(dart.global.RTCPeerConnectionIceEvent, html.RtcIceCandidateEvent);
const _createOffer = Symbol('_createOffer');
const _createAnswer = Symbol('_createAnswer');
const _getStats = Symbol('_getStats');
@@ -68812,6 +68831,7 @@ dart.defineLazy(html.RtcPeerConnection, {
}
});
dart.registerExtension(dart.global.RTCPeerConnection, html.RtcPeerConnection);
+dart.registerExtension(dart.global.mozRTCPeerConnection, html.RtcPeerConnection);
dart.defineExtensionNames([
'sdp',
'type'
@@ -68848,6 +68868,7 @@ dart.setSignature(html.RtcSessionDescription, {
})
});
dart.registerExtension(dart.global.RTCSessionDescription, html.RtcSessionDescription);
+dart.registerExtension(dart.global.mozRTCSessionDescription, html.RtcSessionDescription);
const _get_timestamp = Symbol('_get_timestamp');
dart.defineExtensionNames([
'timestamp',
@@ -71995,6 +72016,8 @@ dart.setSignature(html.TableCellElement, {
})
});
dart.registerExtension(dart.global.HTMLTableCellElement, html.TableCellElement);
+dart.registerExtension(dart.global.HTMLTableDataCellElement, html.TableCellElement);
+dart.registerExtension(dart.global.HTMLTableHeaderCellElement, html.TableCellElement);
dart.defineExtensionNames([
'span'
]);
@@ -73742,6 +73765,7 @@ dart.setSignature(html.TransitionEvent, {
names: ['_create_1', '_create_2']
});
dart.registerExtension(dart.global.TransitionEvent, html.TransitionEvent);
+dart.registerExtension(dart.global.WebKitTransitionEvent, html.TransitionEvent);
dart.defineExtensionNames([
'firstChild',
'lastChild',
@@ -76240,6 +76264,7 @@ dart.defineLazy(html.Window, {
}
});
dart.registerExtension(dart.global.Window, html.Window);
+dart.registerExtension(dart.global.DOMWindow, html.Window);
const _returnValue = Symbol('_returnValue');
html._WrappedEvent = class _WrappedEvent extends core.Object {
new(wrapped) {
@@ -77198,6 +77223,7 @@ dart.setSignature(html._ClientRectList, {
})
});
dart.registerExtension(dart.global.ClientRectList, html._ClientRectList);
+dart.registerExtension(dart.global.DOMRectList, html._ClientRectList);
dart.defineExtensionNames([
'length',
'get',
@@ -77741,6 +77767,7 @@ dart.setSignature(html._NamedNodeMap, {
})
});
dart.registerExtension(dart.global.NamedNodeMap, html._NamedNodeMap);
+dart.registerExtension(dart.global.MozNamedAttrMap, html._NamedNodeMap);
html._PagePopupController = class _PagePopupController extends _interceptors.Interceptor {
static _() {
dart.throw(new core.UnsupportedError("Not supported"));
@@ -90260,6 +90287,7 @@ dart.setSignature(web_audio.AnalyserNode, {
})
});
dart.registerExtension(dart.global.AnalyserNode, web_audio.AnalyserNode);
+dart.registerExtension(dart.global.RealtimeAnalyserNode, web_audio.AnalyserNode);
dart.defineExtensionNames([
'getChannelData',
'duration',
@@ -90579,6 +90607,7 @@ dart.setSignature(web_audio.AudioContext, {
});
web_audio.AudioContext.completeEvent = dart.const(new (EventStreamProviderOfEvent())('complete'));
dart.registerExtension(dart.global.AudioContext, web_audio.AudioContext);
+dart.registerExtension(dart.global.webkitAudioContext, web_audio.AudioContext);
dart.defineExtensionNames([
'maxChannelCount'
]);
@@ -90782,6 +90811,7 @@ dart.setSignature(web_audio.ChannelMergerNode, {
constructors: () => ({_: dart.definiteFunctionType(web_audio.ChannelMergerNode, [])})
});
dart.registerExtension(dart.global.ChannelMergerNode, web_audio.ChannelMergerNode);
+dart.registerExtension(dart.global.AudioChannelMerger, web_audio.ChannelMergerNode);
web_audio.ChannelSplitterNode = class ChannelSplitterNode extends web_audio.AudioNode {
static _() {
dart.throw(new core.UnsupportedError("Not supported"));
@@ -90791,6 +90821,7 @@ dart.setSignature(web_audio.ChannelSplitterNode, {
constructors: () => ({_: dart.definiteFunctionType(web_audio.ChannelSplitterNode, [])})
});
dart.registerExtension(dart.global.ChannelSplitterNode, web_audio.ChannelSplitterNode);
+dart.registerExtension(dart.global.AudioChannelSplitter, web_audio.ChannelSplitterNode);
dart.defineExtensionNames([
'buffer',
'normalize'
@@ -90895,6 +90926,7 @@ dart.setSignature(web_audio.GainNode, {
fields: () => ({[dartx.gain]: web_audio.AudioParam})
});
dart.registerExtension(dart.global.GainNode, web_audio.GainNode);
+dart.registerExtension(dart.global.AudioGainNode, web_audio.GainNode);
dart.defineExtensionNames([
'mediaElement'
]);
@@ -91044,6 +91076,7 @@ dart.setSignature(web_audio.OscillatorNode, {
});
web_audio.OscillatorNode.endedEvent = dart.const(new (EventStreamProviderOfEvent())('ended'));
dart.registerExtension(dart.global.OscillatorNode, web_audio.OscillatorNode);
+dart.registerExtension(dart.global.Oscillator, web_audio.OscillatorNode);
dart.defineExtensionNames([
'setOrientation',
'setPosition',
@@ -91138,6 +91171,8 @@ dart.setSignature(web_audio.PannerNode, {
})
});
dart.registerExtension(dart.global.PannerNode, web_audio.PannerNode);
+dart.registerExtension(dart.global.AudioPannerNode, web_audio.PannerNode);
+dart.registerExtension(dart.global.webkitAudioPannerNode, web_audio.PannerNode);
web_audio.PeriodicWave = class PeriodicWave extends _interceptors.Interceptor {
static _() {
dart.throw(new core.UnsupportedError("Not supported"));
@@ -91175,6 +91210,7 @@ dart.setSignature(web_audio.ScriptProcessorNode, {
});
web_audio.ScriptProcessorNode.audioProcessEvent = dart.const(new (EventStreamProviderOfAudioProcessingEvent())('audioprocess'));
dart.registerExtension(dart.global.ScriptProcessorNode, web_audio.ScriptProcessorNode);
+dart.registerExtension(dart.global.JavaScriptAudioNode, web_audio.ScriptProcessorNode);
dart.defineExtensionNames([
'curve',
'oversample'
@@ -93444,6 +93480,7 @@ dart.setSignature(web_gl.LoseContext, {
})
});
dart.registerExtension(dart.global.WebGLLoseContext, web_gl.LoseContext);
+dart.registerExtension(dart.global.WebGLExtensionLoseContext, web_gl.LoseContext);
web_gl.OesElementIndexUint = class OesElementIndexUint extends _interceptors.Interceptor {
static _() {
dart.throw(new core.UnsupportedError("Not supported"));
« no previous file with comments | « pkg/dev_compiler/lib/js/common/dart_sdk.js ('k') | pkg/dev_compiler/lib/js/legacy/dart_library.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698