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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 18054021: Fixing up DOM constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 8e307a41ff76ac3b206261f3a336c7ccebdf9c08..b72e2ebd250d988ce2716d16dbb638e74dbf863e 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -78,6 +78,8 @@ Future<SendPort> spawnDomFunction(Function f) =>
@DocsEditable
@DomName('AbstractWorker')
class AbstractWorker extends EventTarget native "AbstractWorker" {
+ // To suppress missing implicit constructor warnings.
+ factory AbstractWorker._() { throw new UnsupportedError("Not supported"); }
@DomName('AbstractWorker.errorEvent')
@DocsEditable
@@ -109,6 +111,8 @@ class AbstractWorker extends EventTarget native "AbstractWorker" {
@DocsEditable
@DomName('HTMLAnchorElement')
class AnchorElement extends _HTMLElement native "HTMLAnchorElement" {
+ // To suppress missing implicit constructor warnings.
+ factory AnchorElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLAnchorElement.HTMLAnchorElement')
@DocsEditable
@@ -203,6 +207,8 @@ class AnchorElement extends _HTMLElement native "HTMLAnchorElement" {
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental
class AnimationEvent extends Event native "WebKitAnimationEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory AnimationEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('WebKitAnimationEvent.animationName')
@DocsEditable
@@ -226,6 +232,8 @@ class AnimationEvent extends Event native "WebKitAnimationEvent" {
@SupportedBrowser(SupportedBrowser.SAFARI)
@Unstable
class ApplicationCache extends EventTarget native "ApplicationCache,DOMApplicationCache,OfflineResourceList" {
+ // To suppress missing implicit constructor warnings.
+ factory ApplicationCache._() { throw new UnsupportedError("Not supported"); }
@DomName('DOMApplicationCache.cachedEvent')
@DocsEditable
@@ -366,6 +374,8 @@ class ApplicationCache extends EventTarget native "ApplicationCache,DOMApplicati
*/
@DomName('HTMLAreaElement')
class AreaElement extends _HTMLElement native "HTMLAreaElement" {
+ // To suppress missing implicit constructor warnings.
+ factory AreaElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLAreaElement.HTMLAreaElement')
@DocsEditable
@@ -433,6 +443,8 @@ class AreaElement extends _HTMLElement native "HTMLAreaElement" {
@DocsEditable
@DomName('HTMLAudioElement')
class AudioElement extends MediaElement native "HTMLAudioElement" {
+ // To suppress missing implicit constructor warnings.
+ factory AudioElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLAudioElement.HTMLAudioElement')
@DocsEditable
@@ -455,6 +467,8 @@ class AudioElement extends MediaElement native "HTMLAudioElement" {
// http://wiki.whatwg.org/wiki/RequestAutocomplete
@Experimental
class AutocompleteErrorEvent extends Event native "AutocompleteErrorEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory AutocompleteErrorEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('AutocompleteErrorEvent.reason')
@DocsEditable
@@ -468,6 +482,8 @@ class AutocompleteErrorEvent extends Event native "AutocompleteErrorEvent" {
@DocsEditable
@DomName('HTMLBRElement')
class BRElement extends _HTMLElement native "HTMLBRElement" {
+ // To suppress missing implicit constructor warnings.
+ factory BRElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLBRElement.HTMLBRElement')
@DocsEditable
@@ -482,7 +498,7 @@ class BRElement extends _HTMLElement native "HTMLBRElement" {
@DomName('BarProp')
// http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#barprop
@deprecated // standard
-class BarProp native "BarProp" {
+class BarProp extends Interceptor native "BarProp" {
@DomName('BarProp.visible')
@DocsEditable
@@ -496,6 +512,8 @@ class BarProp native "BarProp" {
@DocsEditable
@DomName('HTMLBaseElement')
class BaseElement extends _HTMLElement native "HTMLBaseElement" {
+ // To suppress missing implicit constructor warnings.
+ factory BaseElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLBaseElement.HTMLBaseElement')
@DocsEditable
@@ -518,6 +536,8 @@ class BaseElement extends _HTMLElement native "HTMLBaseElement" {
@DomName('BeforeLoadEvent')
@Experimental
class BeforeLoadEvent extends Event native "BeforeLoadEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory BeforeLoadEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('BeforeLoadEvent.url')
@DocsEditable
@@ -529,7 +549,7 @@ class BeforeLoadEvent extends Event native "BeforeLoadEvent" {
@DomName('Blob')
-class Blob native "Blob" {
+class Blob extends Interceptor native "Blob" {
@DomName('Blob.size')
@DocsEditable
@@ -571,6 +591,8 @@ class Blob native "Blob" {
@DocsEditable
@DomName('HTMLBodyElement')
class BodyElement extends _HTMLElement native "HTMLBodyElement" {
+ // To suppress missing implicit constructor warnings.
+ factory BodyElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLBodyElement.blurEvent')
@DocsEditable
@@ -680,6 +702,8 @@ class BodyElement extends _HTMLElement native "HTMLBodyElement" {
@DocsEditable
@DomName('HTMLButtonElement')
class ButtonElement extends _HTMLElement native "HTMLButtonElement" {
+ // To suppress missing implicit constructor warnings.
+ factory ButtonElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLButtonElement.HTMLButtonElement')
@DocsEditable
@@ -766,6 +790,8 @@ class ButtonElement extends _HTMLElement native "HTMLButtonElement" {
// http://dom.spec.whatwg.org/#cdatasection
@deprecated // deprecated
class CDataSection extends Text native "CDATASection" {
+ // To suppress missing implicit constructor warnings.
+ factory CDataSection._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -776,7 +802,7 @@ class CDataSection extends Text native "CDATASection" {
@DomName('Canvas2DContextAttributes')
// http://wiki.whatwg.org/wiki/CanvasOpaque#Suggested_IDL
@Experimental
-class Canvas2DContextAttributes native "Canvas2DContextAttributes" {
+class Canvas2DContextAttributes extends Interceptor native "Canvas2DContextAttributes" {
@DomName('Canvas2DContextAttributes.alpha')
@DocsEditable
@@ -789,6 +815,8 @@ class Canvas2DContextAttributes native "Canvas2DContextAttributes" {
@DomName('HTMLCanvasElement')
class CanvasElement extends _HTMLElement implements CanvasImageSource native "HTMLCanvasElement" {
+ // To suppress missing implicit constructor warnings.
+ factory CanvasElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLCanvasElement.webglcontextlostEvent')
@DocsEditable
@@ -952,7 +980,7 @@ class CanvasElement extends _HTMLElement implements CanvasImageSource native "HT
* * [CanvasGradient](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvasgradient) from W3C.
*/
@DomName('CanvasGradient')
-class CanvasGradient native "CanvasGradient" {
+class CanvasGradient extends Interceptor native "CanvasGradient" {
/**
* Adds a color stop to this gradient at the offset.
@@ -1001,7 +1029,7 @@ class CanvasGradient native "CanvasGradient" {
* * [CanvasPattern](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvaspattern) from W3C.
*/
@DomName('CanvasPattern')
-class CanvasPattern native "CanvasPattern" {
+class CanvasPattern extends Interceptor native "CanvasPattern" {
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -1016,7 +1044,7 @@ class CanvasPattern native "CanvasPattern" {
* [WebGLRenderingContext].
*/
@DomName('CanvasRenderingContext')
-class CanvasRenderingContext native "CanvasRenderingContext" {
+class CanvasRenderingContext extends Interceptor native "CanvasRenderingContext" {
/// Reference to the canvas element to which this context belongs.
@DomName('CanvasRenderingContext.canvas')
@@ -1030,6 +1058,8 @@ class CanvasRenderingContext native "CanvasRenderingContext" {
@DomName('CanvasRenderingContext2D')
class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRenderingContext2D" {
+ // To suppress missing implicit constructor warnings.
+ factory CanvasRenderingContext2D._() { throw new UnsupportedError("Not supported"); }
@DomName('CanvasRenderingContext2D.currentPath')
@DocsEditable
@@ -1586,6 +1616,8 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend
@DocsEditable
@DomName('CharacterData')
class CharacterData extends Node native "CharacterData" {
+ // To suppress missing implicit constructor warnings.
+ factory CharacterData._() { throw new UnsupportedError("Not supported"); }
@DomName('CharacterData.data')
@DocsEditable
@@ -1631,6 +1663,8 @@ class CharacterData extends Node native "CharacterData" {
@DocsEditable
@DomName('CloseEvent')
class CloseEvent extends Event native "CloseEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory CloseEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('CloseEvent.code')
@DocsEditable
@@ -1652,6 +1686,8 @@ class CloseEvent extends Event native "CloseEvent" {
@DocsEditable
@DomName('Comment')
class Comment extends CharacterData native "Comment" {
+ // To suppress missing implicit constructor warnings.
+ factory Comment._() { throw new UnsupportedError("Not supported"); }
@DomName('Comment.Comment')
@DocsEditable
@@ -1673,7 +1709,7 @@ class Comment extends CharacterData native "Comment" {
@DomName('Composition')
// http://www.w3.org/TR/ime-api/#idl-def-Composition
@Experimental
-class Composition native "Composition" {
+class Composition extends Interceptor native "Composition" {
@DomName('Composition.caret')
@DocsEditable
@@ -1702,6 +1738,8 @@ class CompositionEvent extends UIEvent native "CompositionEvent" {
e.$dom_initCompositionEvent(type, canBubble, cancelable, view, data);
return e;
}
+ // To suppress missing implicit constructor warnings.
+ factory CompositionEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('CompositionEvent.data')
@DocsEditable
@@ -1827,6 +1865,8 @@ class Console {
@Experimental
// https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#content-element
class ContentElement extends _HTMLElement native "HTMLContentElement" {
+ // To suppress missing implicit constructor warnings.
+ factory ContentElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLContentElement.HTMLContentElement')
@DocsEditable
@@ -1856,7 +1896,7 @@ class ContentElement extends _HTMLElement native "HTMLContentElement" {
@DocsEditable
@DomName('Coordinates')
-class Coordinates native "Coordinates" {
+class Coordinates extends Interceptor native "Coordinates" {
@DomName('Coordinates.accuracy')
@DocsEditable
@@ -1897,7 +1937,7 @@ class Coordinates native "Coordinates" {
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental
// http://www.w3.org/TR/WebCryptoAPI/
-class Crypto native "Crypto" {
+class Crypto extends Interceptor native "Crypto" {
/// Checks if this type is supported on the current platform.
static bool get supported => JS('bool', '!!(window.crypto && window.crypto.getRandomValues)');
@@ -1917,7 +1957,7 @@ class Crypto native "Crypto" {
@DomName('CSS')
// http://www.w3.org/TR/css3-conditional/#the-css-interface
@Experimental // None
-class Css native "CSS" {
+class Css extends Interceptor native "CSS" {
@DomName('CSS.supports')
@DocsEditable
@@ -1933,6 +1973,8 @@ class Css native "CSS" {
// http://dev.w3.org/csswg/cssom/#the-csscharsetrule-interface
@Experimental
class CssCharsetRule extends CssRule native "CSSCharsetRule" {
+ // To suppress missing implicit constructor warnings.
+ factory CssCharsetRule._() { throw new UnsupportedError("Not supported"); }
@DomName('CSSCharsetRule.encoding')
@DocsEditable
@@ -1950,6 +1992,8 @@ class CssCharsetRule extends CssRule native "CSSCharsetRule" {
@Experimental
// http://www.w3.org/TR/filter-effects/
class CssFilterRule extends CssRule native "WebKitCSSFilterRule" {
+ // To suppress missing implicit constructor warnings.
+ factory CssFilterRule._() { throw new UnsupportedError("Not supported"); }
@DomName('WebKitCSSFilterRule.style')
@DocsEditable
@@ -1968,6 +2012,8 @@ class CssFilterRule extends CssRule native "WebKitCSSFilterRule" {
// http://dev.w3.org/csswg/cssom/
@deprecated // deprecated
class CssFilterValue extends _CssValueList native "WebKitCSSFilterValue" {
+ // To suppress missing implicit constructor warnings.
+ factory CssFilterValue._() { throw new UnsupportedError("Not supported"); }
@DomName('WebKitCSSFilterValue.CSS_FILTER_BLUR')
@DocsEditable
@@ -2035,6 +2081,8 @@ class CssFilterValue extends _CssValueList native "WebKitCSSFilterValue" {
// http://www.w3.org/TR/css3-fonts/
@Experimental
class CssFontFaceLoadEvent extends Event native "CSSFontFaceLoadEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory CssFontFaceLoadEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('CSSFontFaceLoadEvent.error')
@DocsEditable
@@ -2052,6 +2100,8 @@ class CssFontFaceLoadEvent extends Event native "CSSFontFaceLoadEvent" {
@DocsEditable
@DomName('CSSFontFaceRule')
class CssFontFaceRule extends CssRule native "CSSFontFaceRule" {
+ // To suppress missing implicit constructor warnings.
+ factory CssFontFaceRule._() { throw new UnsupportedError("Not supported"); }
@DomName('CSSFontFaceRule.style')
@DocsEditable
@@ -2068,6 +2118,8 @@ class CssFontFaceRule extends CssRule native "CSSFontFaceRule" {
@Experimental
// https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#css-host-rule-interface
class CssHostRule extends CssRule native "CSSHostRule" {
+ // To suppress missing implicit constructor warnings.
+ factory CssHostRule._() { throw new UnsupportedError("Not supported"); }
@DomName('CSSHostRule.cssRules')
@DocsEditable
@@ -2091,6 +2143,8 @@ class CssHostRule extends CssRule native "CSSHostRule" {
@DocsEditable
@DomName('CSSImportRule')
class CssImportRule extends CssRule native "CSSImportRule" {
+ // To suppress missing implicit constructor warnings.
+ factory CssImportRule._() { throw new UnsupportedError("Not supported"); }
@DomName('CSSImportRule.href')
@DocsEditable
@@ -2116,6 +2170,8 @@ class CssImportRule extends CssRule native "CSSImportRule" {
@Experimental
// http://www.w3.org/TR/css3-animations/#CSSKeyframeRule-interface
class CssKeyframeRule extends CssRule native "CSSKeyframeRule,MozCSSKeyframeRule,WebKitCSSKeyframeRule" {
+ // To suppress missing implicit constructor warnings.
+ factory CssKeyframeRule._() { throw new UnsupportedError("Not supported"); }
@DomName('WebKitCSSKeyframeRule.keyText')
@DocsEditable
@@ -2137,6 +2193,8 @@ class CssKeyframeRule extends CssRule native "CSSKeyframeRule,MozCSSKeyframeRule
@Experimental
// http://www.w3.org/TR/css3-animations/#csskeyframesrule
class CssKeyframesRule extends CssRule native "CSSKeyframesRule,MozCSSKeyframesRule,WebKitCSSKeyframesRule" {
+ // To suppress missing implicit constructor warnings.
+ factory CssKeyframesRule._() { throw new UnsupportedError("Not supported"); }
@DomName('WebKitCSSKeyframesRule.cssRules')
@DocsEditable
@@ -2184,7 +2242,7 @@ class CssKeyframesRule extends CssRule native "CSSKeyframesRule,MozCSSKeyframesR
@Experimental
// http://dev.w3.org/csswg/cssom/
@deprecated // deprecated
-class CssMatrix native "WebKitCSSMatrix" {
+class CssMatrix extends Interceptor native "WebKitCSSMatrix" {
@DomName('WebKitCSSMatrix.CSSMatrix')
@DocsEditable
@@ -2333,6 +2391,8 @@ class CssMatrix native "WebKitCSSMatrix" {
@DocsEditable
@DomName('CSSMediaRule')
class CssMediaRule extends CssRule native "CSSMediaRule" {
+ // To suppress missing implicit constructor warnings.
+ factory CssMediaRule._() { throw new UnsupportedError("Not supported"); }
@DomName('CSSMediaRule.cssRules')
@DocsEditable
@@ -2365,6 +2425,8 @@ class CssMediaRule extends CssRule native "CSSMediaRule" {
// http://dev.w3.org/csswg/cssom/
@deprecated // deprecated
class CssMixFunctionValue extends _CssValueList native "WebKitCSSMixFunctionValue" {
+ // To suppress missing implicit constructor warnings.
+ factory CssMixFunctionValue._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -2374,6 +2436,8 @@ class CssMixFunctionValue extends _CssValueList native "WebKitCSSMixFunctionValu
@DocsEditable
@DomName('CSSPageRule')
class CssPageRule extends CssRule native "CSSPageRule" {
+ // To suppress missing implicit constructor warnings.
+ factory CssPageRule._() { throw new UnsupportedError("Not supported"); }
@DomName('CSSPageRule.selectorText')
@DocsEditable
@@ -2395,6 +2459,8 @@ class CssPageRule extends CssRule native "CSSPageRule" {
@Experimental
// http://dev.w3.org/csswg/css-regions/#region-style-rule-interface
class CssRegionRule extends CssRule native "WebKitCSSRegionRule" {
+ // To suppress missing implicit constructor warnings.
+ factory CssRegionRule._() { throw new UnsupportedError("Not supported"); }
@DomName('WebKitCSSRegionRule.cssRules')
@DocsEditable
@@ -2409,7 +2475,7 @@ class CssRegionRule extends CssRule native "WebKitCSSRegionRule" {
@DocsEditable
@DomName('CSSRule')
-class CssRule native "CSSRule" {
+class CssRule extends Interceptor native "CSSRule" {
@DomName('CSSRule.CHARSET_RULE')
@DocsEditable
@@ -2497,7 +2563,7 @@ class CssRule native "CSSRule" {
@DomName('CSSStyleDeclaration')
-class CssStyleDeclaration native "CSSStyleDeclaration,MSStyleCSSProperties,CSS2Properties" {
+class CssStyleDeclaration extends Interceptor native "CSSStyleDeclaration,MSStyleCSSProperties,CSS2Properties" {
factory CssStyleDeclaration() => new CssStyleDeclaration.css('');
factory CssStyleDeclaration.css(String css) {
@@ -5739,6 +5805,8 @@ class CssStyleDeclaration native "CSSStyleDeclaration,MSStyleCSSProperties,CSS2P
@DocsEditable
@DomName('CSSStyleRule')
class CssStyleRule extends CssRule native "CSSStyleRule" {
+ // To suppress missing implicit constructor warnings.
+ factory CssStyleRule._() { throw new UnsupportedError("Not supported"); }
@DomName('CSSStyleRule.selectorText')
@DocsEditable
@@ -5756,6 +5824,8 @@ class CssStyleRule extends CssRule native "CSSStyleRule" {
@DocsEditable
@DomName('CSSStyleSheet')
class CssStyleSheet extends StyleSheet native "CSSStyleSheet" {
+ // To suppress missing implicit constructor warnings.
+ factory CssStyleSheet._() { throw new UnsupportedError("Not supported"); }
@DomName('CSSStyleSheet.cssRules')
@DocsEditable
@@ -5800,6 +5870,8 @@ class CssStyleSheet extends StyleSheet native "CSSStyleSheet" {
@DocsEditable
@DomName('CSSSupportsRule')
class CssSupportsRule extends CssRule native "CSSSupportsRule" {
+ // To suppress missing implicit constructor warnings.
+ factory CssSupportsRule._() { throw new UnsupportedError("Not supported"); }
@DomName('CSSSupportsRule.conditionText')
@DocsEditable
@@ -5832,6 +5904,8 @@ class CssSupportsRule extends CssRule native "CSSSupportsRule" {
// http://dev.w3.org/csswg/cssom/
@deprecated // deprecated
class CssTransformValue extends _CssValueList native "WebKitCSSTransformValue" {
+ // To suppress missing implicit constructor warnings.
+ factory CssTransformValue._() { throw new UnsupportedError("Not supported"); }
@DomName('WebKitCSSTransformValue.CSS_MATRIX')
@DocsEditable
@@ -5935,6 +6009,8 @@ class CssTransformValue extends _CssValueList native "WebKitCSSTransformValue" {
// http://dev.w3.org/csswg/cssom/#the-cssstylesheet-interface
@deprecated // deprecated
class CssUnknownRule extends CssRule native "CSSUnknownRule" {
+ // To suppress missing implicit constructor warnings.
+ factory CssUnknownRule._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -5945,7 +6021,7 @@ class CssUnknownRule extends CssRule native "CSSUnknownRule" {
@DomName('CustomElementConstructor')
// https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#dfn-custom-element-constructor-generation
@deprecated // experimental
-class CustomElementConstructor native "CustomElementConstructor" {
+class CustomElementConstructor extends Interceptor native "CustomElementConstructor" {
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -5964,6 +6040,8 @@ class CustomEvent extends Event native "CustomEvent" {
return e;
}
+ // To suppress missing implicit constructor warnings.
+ factory CustomEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('CustomEvent.detail')
@DocsEditable
@@ -5984,6 +6062,8 @@ class CustomEvent extends Event native "CustomEvent" {
@DocsEditable
@DomName('HTMLDListElement')
class DListElement extends _HTMLElement native "HTMLDListElement" {
+ // To suppress missing implicit constructor warnings.
+ factory DListElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLDListElement.HTMLDListElement')
@DocsEditable
@@ -6001,6 +6081,8 @@ class DListElement extends _HTMLElement native "HTMLDListElement" {
@SupportedBrowser(SupportedBrowser.IE, '10')
@SupportedBrowser(SupportedBrowser.SAFARI)
class DataListElement extends _HTMLElement native "HTMLDataListElement" {
+ // To suppress missing implicit constructor warnings.
+ factory DataListElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLDataListElement.HTMLDataListElement')
@DocsEditable
@@ -6020,7 +6102,7 @@ class DataListElement extends _HTMLElement native "HTMLDataListElement" {
@DocsEditable
@DomName('Clipboard')
-class DataTransfer native "Clipboard" {
+class DataTransfer extends Interceptor native "Clipboard" {
@DomName('Clipboard.dropEffect')
@DocsEditable
@@ -6085,7 +6167,7 @@ class DataTransfer native "Clipboard" {
@DomName('DataTransferItem')
// http://www.w3.org/TR/2011/WD-html5-20110113/dnd.html#the-datatransferitem-interface
@Experimental
-class DataTransferItem native "DataTransferItem" {
+class DataTransferItem extends Interceptor native "DataTransferItem" {
@DomName('DataTransferItem.kind')
@DocsEditable
@@ -6131,7 +6213,7 @@ class DataTransferItem native "DataTransferItem" {
@DomName('DataTransferItemList')
// http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#the-datatransferitemlist-interface
@Experimental
-class DataTransferItemList native "DataTransferItemList" {
+class DataTransferItemList extends Interceptor native "DataTransferItemList" {
@DomName('DataTransferItemList.length')
@DocsEditable
@@ -6171,6 +6253,8 @@ typedef void DatabaseCallback(database);
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental
class DetailsElement extends _HTMLElement native "HTMLDetailsElement" {
+ // To suppress missing implicit constructor warnings.
+ factory DetailsElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLDetailsElement.HTMLDetailsElement')
@DocsEditable
@@ -6192,7 +6276,7 @@ class DetailsElement extends _HTMLElement native "HTMLDetailsElement" {
@DomName('DeviceAcceleration')
// http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion
@Experimental
-class DeviceAcceleration native "DeviceAcceleration" {
+class DeviceAcceleration extends Interceptor native "DeviceAcceleration" {
@DomName('DeviceAcceleration.x')
@DocsEditable
@@ -6216,6 +6300,8 @@ class DeviceAcceleration native "DeviceAcceleration" {
// http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion
@Experimental
class DeviceMotionEvent extends Event native "DeviceMotionEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory DeviceMotionEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('DeviceMotionEvent.acceleration')
@DocsEditable
@@ -6242,7 +6328,6 @@ class DeviceMotionEvent extends Event native "DeviceMotionEvent" {
@DomName('DeviceOrientationEvent')
// http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion
@Experimental
-
class DeviceOrientationEvent extends Event native "DeviceOrientationEvent" {
factory DeviceOrientationEvent(String type,
{bool canBubble: true, bool cancelable: true, num alpha: 0, num beta: 0,
@@ -6252,6 +6337,8 @@ class DeviceOrientationEvent extends Event native "DeviceOrientationEvent" {
gamma, absolute);
return e;
}
+ // To suppress missing implicit constructor warnings.
+ factory DeviceOrientationEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('DeviceOrientationEvent.absolute')
@DocsEditable
@@ -6284,7 +6371,7 @@ class DeviceOrientationEvent extends Event native "DeviceOrientationEvent" {
@DomName('DeviceRotationRate')
// http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion
@Experimental
-class DeviceRotationRate native "DeviceRotationRate" {
+class DeviceRotationRate extends Interceptor native "DeviceRotationRate" {
@DomName('DeviceRotationRate.alpha')
@DocsEditable
@@ -6307,6 +6394,8 @@ class DeviceRotationRate native "DeviceRotationRate" {
@DomName('HTMLDialogElement')
@Unstable
class DialogElement extends _HTMLElement native "HTMLDialogElement" {
+ // To suppress missing implicit constructor warnings.
+ factory DialogElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLDialogElement.open')
@DocsEditable
@@ -6333,14 +6422,14 @@ class DialogElement extends _HTMLElement native "HTMLDialogElement" {
// http://www.w3.org/TR/file-system-api/#the-directoryentry-interface
@Experimental
class DirectoryEntry extends Entry native "DirectoryEntry" {
-
+
/**
* Create a new directory with the specified `path`. If `exclusive` is true,
* the returned Future will complete with an error if a directory already
* exists with the specified `path`.
*/
Future<Entry> createDirectory(String path, {bool exclusive: false}) {
- return _getDirectory(path, options:
+ return _getDirectory(path, options:
{'create': true, 'exclusive': exclusive});
}
@@ -6361,7 +6450,7 @@ class DirectoryEntry extends Entry native "DirectoryEntry" {
Future<Entry> createFile(String path, {bool exclusive: false}) {
return _getFile(path, options: {'create': true, 'exclusive': exclusive});
}
-
+
/**
* Retrieve an already existing file entry. The returned future will
* result in an error if a file at `path` does not exist or if the item at
@@ -6370,6 +6459,8 @@ class DirectoryEntry extends Entry native "DirectoryEntry" {
Future<Entry> getFile(String path) {
return _getFile(path);
}
+ // To suppress missing implicit constructor warnings.
+ factory DirectoryEntry._() { throw new UnsupportedError("Not supported"); }
@DomName('DirectoryEntry.createReader')
@DocsEditable
@@ -6500,7 +6591,7 @@ class DirectoryEntry extends Entry native "DirectoryEntry" {
@DomName('DirectoryReader')
// http://www.w3.org/TR/file-system-api/#the-directoryreader-interface
@Experimental
-class DirectoryReader native "DirectoryReader" {
+class DirectoryReader extends Interceptor native "DirectoryReader" {
@JSName('readEntries')
@DomName('DirectoryReader.readEntries')
@@ -6547,6 +6638,8 @@ class DirectoryReader native "DirectoryReader" {
*/
@DomName('HTMLDivElement')
class DivElement extends _HTMLElement native "HTMLDivElement" {
+ // To suppress missing implicit constructor warnings.
+ factory DivElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLDivElement.HTMLDivElement')
@DocsEditable
@@ -6570,6 +6663,8 @@ class DivElement extends _HTMLElement native "HTMLDivElement" {
class Document extends Node native "Document"
{
+ // To suppress missing implicit constructor warnings.
+ factory Document._() { throw new UnsupportedError("Not supported"); }
@DomName('Document.readystatechangeEvent')
@DocsEditable
@@ -7343,6 +7438,8 @@ class DocumentFragment extends Node native "DocumentFragment" {
this.append(new DocumentFragment.html(text));
}
+ // To suppress missing implicit constructor warnings.
+ factory DocumentFragment._() { throw new UnsupportedError("Not supported"); }
@DomName('DocumentFragment.childElementCount')
@DocsEditable
@@ -7379,6 +7476,8 @@ class DocumentFragment extends Node native "DocumentFragment" {
// http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-412266927
@deprecated // stable
class DocumentType extends Node native "DocumentType" {
+ // To suppress missing implicit constructor warnings.
+ factory DocumentType._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -7387,7 +7486,7 @@ class DocumentType extends Node native "DocumentType" {
@DocsEditable
@DomName('DOMError')
-class DomError native "DOMError" {
+class DomError extends Interceptor native "DOMError" {
@DomName('DOMError.name')
@DocsEditable
@@ -7400,7 +7499,7 @@ class DomError native "DOMError" {
@DomName('DOMException')
@Unstable
-class DomException native "DOMException" {
+class DomException extends Interceptor native "DOMException" {
static const String INDEX_SIZE = 'IndexSizeError';
static const String HIERARCHY_REQUEST = 'HierarchyRequestError';
@@ -7451,7 +7550,7 @@ class DomException native "DOMException" {
@DocsEditable
@DomName('DOMImplementation')
-class DomImplementation native "DOMImplementation" {
+class DomImplementation extends Interceptor native "DOMImplementation" {
@JSName('createCSSStyleSheet')
@DomName('DOMImplementation.createCSSStyleSheet')
@@ -7483,7 +7582,7 @@ class DomImplementation native "DOMImplementation" {
@DocsEditable
@DomName('DOMParser')
-class DomParser native "DOMParser" {
+class DomParser extends Interceptor native "DOMParser" {
@DomName('DOMParser.DOMParser')
@DocsEditable
@@ -7504,6 +7603,8 @@ class DomParser native "DOMParser" {
@DocsEditable
@DomName('DOMSettableTokenList')
class DomSettableTokenList extends DomTokenList native "DOMSettableTokenList" {
+ // To suppress missing implicit constructor warnings.
+ factory DomSettableTokenList._() { throw new UnsupportedError("Not supported"); }
@DomName('DOMSettableTokenList.value')
@DocsEditable
@@ -7583,8 +7684,9 @@ class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMix
// BSD-style license that can be found in the LICENSE file.
+@DocsEditable
@DomName('DOMStringMap')
-abstract class DomStringMap {
+abstract class DomStringMap extends Interceptor {
bool __delete__(String name);
@@ -7599,7 +7701,7 @@ abstract class DomStringMap {
@DocsEditable
@DomName('DOMTokenList')
-class DomTokenList native "DOMTokenList" {
+class DomTokenList extends Interceptor native "DOMTokenList" {
@DomName('DOMTokenList.length')
@DocsEditable
@@ -8391,6 +8493,8 @@ abstract class Element extends Node implements ElementTraversal native "Element"
TemplateElement.decorate(this);
}
+ // To suppress missing implicit constructor warnings.
+ factory Element._() { throw new UnsupportedError("Not supported"); }
@DomName('Element.abortEvent')
@DocsEditable
@@ -9335,9 +9439,10 @@ class ScrollAlignment {
// BSD-style license that can be found in the LICENSE file.
+@DocsEditable
@DomName('ElementTimeControl')
@Unstable
-abstract class ElementTimeControl {
+abstract class ElementTimeControl extends Interceptor {
void beginElement();
@@ -9352,9 +9457,10 @@ abstract class ElementTimeControl {
// BSD-style license that can be found in the LICENSE file.
+@DocsEditable
@DomName('ElementTraversal')
@Unstable
-abstract class ElementTraversal {
+abstract class ElementTraversal extends Interceptor {
int $dom_childElementCount;
@@ -9378,6 +9484,8 @@ abstract class ElementTraversal {
@SupportedBrowser(SupportedBrowser.SAFARI)
@Unstable
class EmbedElement extends _HTMLElement native "HTMLEmbedElement" {
+ // To suppress missing implicit constructor warnings.
+ factory EmbedElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLEmbedElement.HTMLEmbedElement')
@DocsEditable
@@ -9440,7 +9548,7 @@ typedef void _EntriesCallback(List<Entry> entries);
@DomName('Entry')
// http://www.w3.org/TR/file-system-api/#the-entry-interface
@Experimental
-class Entry native "Entry" {
+class Entry extends Interceptor native "Entry" {
@DomName('Entry.filesystem')
@DocsEditable
@@ -9578,6 +9686,8 @@ typedef void _ErrorCallback(FileError error);
@DomName('ErrorEvent')
@Unstable
class ErrorEvent extends Event native "ErrorEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory ErrorEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('ErrorEvent.filename')
@DocsEditable
@@ -9599,7 +9709,7 @@ class ErrorEvent extends Event native "ErrorEvent" {
@DomName('Event')
-class Event native "Event" {
+class Event extends Interceptor native "Event" {
// In JS, canBubble and cancelable are technically required parameters to
// init*Event. In practice, though, if they aren't provided they simply
// default to false (since that's Boolean(undefined)).
@@ -9830,7 +9940,7 @@ class Event native "Event" {
@DocsEditable
@DomName('EventException')
@Unstable
-class EventException native "EventException" {
+class EventException extends Interceptor native "EventException" {
@DomName('EventException.DISPATCH_REQUEST_ERR')
@DocsEditable
@@ -9873,6 +9983,8 @@ class EventSource extends EventTarget native "EventSource" {
};
return EventSource._factoryEventSource(title, parsedOptions);
}
+ // To suppress missing implicit constructor warnings.
+ factory EventSource._() { throw new UnsupportedError("Not supported"); }
@DomName('EventSource.errorEvent')
@DocsEditable
@@ -10012,7 +10124,7 @@ class Events {
* for compile-time type checks and a more concise API.
*/
@DomName('EventTarget')
-class EventTarget native "EventTarget" {
+class EventTarget extends Interceptor native "EventTarget" {
/**
* This is an ease-of-use accessor for event streams which should only be
@@ -10044,6 +10156,8 @@ class EventTarget native "EventTarget" {
@DomName('HTMLFieldSetElement')
@Unstable
class FieldSetElement extends _HTMLElement native "HTMLFieldSetElement" {
+ // To suppress missing implicit constructor warnings.
+ factory FieldSetElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLFieldSetElement.HTMLFieldSetElement')
@DocsEditable
@@ -10097,6 +10211,8 @@ class FieldSetElement extends _HTMLElement native "HTMLFieldSetElement" {
@DocsEditable
@DomName('File')
class File extends Blob native "File" {
+ // To suppress missing implicit constructor warnings.
+ factory File._() { throw new UnsupportedError("Not supported"); }
DateTime get lastModifiedDate => _convertNativeToDart_DateTime(this._get_lastModifiedDate);
@JSName('lastModifiedDate')
@@ -10139,6 +10255,8 @@ typedef void _FileCallback(File file);
// http://www.w3.org/TR/file-system-api/#the-fileentry-interface
@Experimental
class FileEntry extends Entry native "FileEntry" {
+ // To suppress missing implicit constructor warnings.
+ factory FileEntry._() { throw new UnsupportedError("Not supported"); }
@JSName('createWriter')
@DomName('FileEntry.createWriter')
@@ -10181,7 +10299,7 @@ class FileEntry extends Entry native "FileEntry" {
@DomName('FileError')
// http://dev.w3.org/2009/dap/file-system/pub/FileSystem/
@Experimental
-class FileError native "FileError" {
+class FileError extends Interceptor native "FileError" {
@DomName('FileError.ABORT_ERR')
@DocsEditable
@@ -10244,7 +10362,7 @@ class FileError native "FileError" {
@DomName('FileException')
// http://dev.w3.org/2009/dap/file-system/pub/FileSystem/
@Experimental
-class FileException native "FileException" {
+class FileException extends Interceptor native "FileException" {
@DomName('FileException.ABORT_ERR')
@DocsEditable
@@ -10379,6 +10497,8 @@ class FileList extends Interceptor with ListMixin<File>, ImmutableListMixin<File
@DocsEditable
@DomName('FileReader')
class FileReader extends EventTarget native "FileReader" {
+ // To suppress missing implicit constructor warnings.
+ factory FileReader._() { throw new UnsupportedError("Not supported"); }
@DomName('FileReader.abortEvent')
@DocsEditable
@@ -10507,7 +10627,7 @@ class FileReader extends EventTarget native "FileReader" {
@SupportedBrowser(SupportedBrowser.CHROME)
@Experimental
// http://www.w3.org/TR/file-system-api/
-class FileSystem native "DOMFileSystem" {
+class FileSystem extends Interceptor native "DOMFileSystem" {
/// Checks if this type is supported on the current platform.
static bool get supported => JS('bool', '!!(window.webkitRequestFileSystem)');
@@ -10541,6 +10661,8 @@ typedef void _FileSystemCallback(FileSystem fileSystem);
// http://www.w3.org/TR/file-writer-api/#the-filewriter-interface
@Experimental
class FileWriter extends EventTarget native "FileWriter" {
+ // To suppress missing implicit constructor warnings.
+ factory FileWriter._() { throw new UnsupportedError("Not supported"); }
@DomName('FileWriter.abortEvent')
@DocsEditable
@@ -10667,6 +10789,8 @@ typedef void _FileWriterCallback(FileWriter fileWriter);
@DocsEditable
@DomName('FocusEvent')
class FocusEvent extends UIEvent native "FocusEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory FocusEvent._() { throw new UnsupportedError("Not supported"); }
EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._get_relatedTarget);
@JSName('relatedTarget')
@@ -10685,6 +10809,8 @@ class FocusEvent extends UIEvent native "FocusEvent" {
// http://www.w3.org/TR/css3-fonts/#document-fontloader
@Experimental
class FontLoader extends EventTarget native "FontLoader" {
+ // To suppress missing implicit constructor warnings.
+ factory FontLoader._() { throw new UnsupportedError("Not supported"); }
@DomName('FontLoader.errorEvent')
@DocsEditable
@@ -10775,7 +10901,7 @@ class FontLoader extends EventTarget native "FontLoader" {
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.IE, '10')
@SupportedBrowser(SupportedBrowser.SAFARI)
-class FormData native "FormData" {
+class FormData extends Interceptor native "FormData" {
@DomName('FormData.FormData')
@DocsEditable
@@ -10803,6 +10929,8 @@ class FormData native "FormData" {
@DocsEditable
@DomName('HTMLFormElement')
class FormElement extends _HTMLElement native "HTMLFormElement" {
+ // To suppress missing implicit constructor warnings.
+ factory FormElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLFormElement.autocompleteEvent')
@DocsEditable
@@ -10905,7 +11033,7 @@ class FormElement extends _HTMLElement native "HTMLFormElement" {
@DomName('Gamepad')
// https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#gamepad-interface
@Experimental
-class Gamepad native "Gamepad" {
+class Gamepad extends Interceptor native "Gamepad" {
@DomName('Gamepad.axes')
@DocsEditable
@@ -10935,7 +11063,7 @@ class Gamepad native "Gamepad" {
@DocsEditable
@DomName('Geolocation')
@Unstable
-class Geolocation native "Geolocation" {
+class Geolocation extends Interceptor native "Geolocation" {
@DomName('Geolocation.getCurrentPosition')
Future<Geoposition> getCurrentPosition({bool enableHighAccuracy,
@@ -11052,7 +11180,7 @@ class _GeopositionWrapper implements Geoposition {
@DocsEditable
@DomName('Geoposition')
@Unstable
-class Geoposition native "Geoposition" {
+class Geoposition extends Interceptor native "Geoposition" {
@DomName('Geoposition.coords')
@DocsEditable
@@ -11073,6 +11201,8 @@ class Geoposition native "Geoposition" {
*/
@DomName('HTMLHRElement')
class HRElement extends _HTMLElement native "HTMLHRElement" {
+ // To suppress missing implicit constructor warnings.
+ factory HRElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLHRElement.HTMLHRElement')
@DocsEditable
@@ -11089,7 +11219,6 @@ class HRElement extends _HTMLElement native "HTMLHRElement" {
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Unstable
-
class HashChangeEvent extends Event native "HashChangeEvent" {
factory HashChangeEvent(String type,
{bool canBubble: true, bool cancelable: true, String oldUrl,
@@ -11098,6 +11227,8 @@ class HashChangeEvent extends Event native "HashChangeEvent" {
event.$dom_initHashChangeEvent(type, canBubble, cancelable, oldUrl, newUrl);
return event;
}
+ // To suppress missing implicit constructor warnings.
+ factory HashChangeEvent._() { throw new UnsupportedError("Not supported"); }
/// Checks if this type is supported on the current platform.
static bool get supported => Device.isEventTypeSupported('HashChangeEvent');
@@ -11126,6 +11257,8 @@ class HashChangeEvent extends Event native "HashChangeEvent" {
@DocsEditable
@DomName('HTMLHeadElement')
class HeadElement extends _HTMLElement native "HTMLHeadElement" {
+ // To suppress missing implicit constructor warnings.
+ factory HeadElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLHeadElement.HTMLHeadElement')
@DocsEditable
@@ -11139,6 +11272,8 @@ class HeadElement extends _HTMLElement native "HTMLHeadElement" {
@DocsEditable
@DomName('HTMLHeadingElement')
class HeadingElement extends _HTMLElement native "HTMLHeadingElement" {
+ // To suppress missing implicit constructor warnings.
+ factory HeadingElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLHeadingElement.HTMLHeadingElement')
@DocsEditable
@@ -11170,7 +11305,7 @@ class HeadingElement extends _HTMLElement native "HTMLHeadingElement" {
@DomName('History')
-class History implements HistoryBase native "History" {
+class History extends Interceptor implements HistoryBase native "History" {
/**
* Checks if the State APIs are supported on the current platform.
@@ -11378,6 +11513,8 @@ class HtmlCollection extends Interceptor with ListMixin<Node>, ImmutableListMixi
@DomName('HTMLDocument')
class HtmlDocument extends Document native "HTMLDocument" {
+ // To suppress missing implicit constructor warnings.
+ factory HtmlDocument._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLDocument.activeElement')
@DocsEditable
@@ -11540,6 +11677,8 @@ class HtmlDocument extends Document native "HTMLDocument" {
@DocsEditable
@DomName('HTMLHtmlElement')
class HtmlElement extends _HTMLElement native "HTMLHtmlElement" {
+ // To suppress missing implicit constructor warnings.
+ factory HtmlElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLHtmlElement.HTMLHtmlElement')
@DocsEditable
@@ -11553,6 +11692,8 @@ class HtmlElement extends _HTMLElement native "HTMLHtmlElement" {
@DocsEditable
@DomName('HTMLFormControlsCollection')
class HtmlFormControlsCollection extends HtmlCollection native "HTMLFormControlsCollection" {
+ // To suppress missing implicit constructor warnings.
+ factory HtmlFormControlsCollection._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLFormControlsCollection.__getter__')
@DocsEditable
@@ -11570,6 +11711,8 @@ class HtmlFormControlsCollection extends HtmlCollection native "HTMLFormControls
@DocsEditable
@DomName('HTMLOptionsCollection')
class HtmlOptionsCollection extends HtmlCollection native "HTMLOptionsCollection" {
+ // To suppress missing implicit constructor warnings.
+ factory HtmlOptionsCollection._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -11744,6 +11887,8 @@ class HttpRequest extends EventTarget native "XMLHttpRequest" {
return JS('bool', '("overrideMimeType" in #)', xhr);
}
+ // To suppress missing implicit constructor warnings.
+ factory HttpRequest._() { throw new UnsupportedError("Not supported"); }
@DomName('XMLHttpRequest.abortEvent')
@DocsEditable
@@ -12109,6 +12254,8 @@ class HttpRequest extends EventTarget native "XMLHttpRequest" {
@Experimental
@Experimental // nonstandard
class HttpRequestProgressEvent extends ProgressEvent native "XMLHttpRequestProgressEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory HttpRequestProgressEvent._() { throw new UnsupportedError("Not supported"); }
/// Checks if this type is supported on the current platform.
static bool get supported => Device.isEventTypeSupported('XMLHttpRequestProgressEvent');
@@ -12131,6 +12278,8 @@ class HttpRequestProgressEvent extends ProgressEvent native "XMLHttpRequestProgr
// http://xhr.spec.whatwg.org/#xmlhttprequestupload
@Experimental
class HttpRequestUpload extends EventTarget native "XMLHttpRequestUpload,XMLHttpRequestEventTarget" {
+ // To suppress missing implicit constructor warnings.
+ factory HttpRequestUpload._() { throw new UnsupportedError("Not supported"); }
@DomName('XMLHttpRequestUpload.abortEvent')
@DocsEditable
@@ -12202,6 +12351,8 @@ class HttpRequestUpload extends EventTarget native "XMLHttpRequestUpload,XMLHttp
@DocsEditable
@DomName('HTMLIFrameElement')
class IFrameElement extends _HTMLElement native "HTMLIFrameElement" {
+ // To suppress missing implicit constructor warnings.
+ factory IFrameElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLIFrameElement.HTMLIFrameElement')
@DocsEditable
@@ -12248,8 +12399,7 @@ class IFrameElement extends _HTMLElement native "HTMLIFrameElement" {
// BSD-style license that can be found in the LICENSE file.
@DomName('ImageData')
-
-class ImageData native "ImageData" {
+class ImageData extends Interceptor native "ImageData" {
@DomName('ImageData.data')
@@ -12272,6 +12422,8 @@ class ImageData native "ImageData" {
@DomName('HTMLImageElement')
class ImageElement extends _HTMLElement implements CanvasImageSource native "HTMLImageElement" {
+ // To suppress missing implicit constructor warnings.
+ factory ImageElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLImageElement.HTMLImageElement')
@DocsEditable
@@ -12385,6 +12537,8 @@ class InputElement extends _HTMLElement implements
return e;
}
+ // To suppress missing implicit constructor warnings.
+ factory InputElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLInputElement.webkitSpeechChangeEvent')
@DocsEditable
@@ -13232,7 +13386,7 @@ abstract class ButtonInputElement implements InputElementBase {
@DomName('InputMethodContext')
// http://www.w3.org/TR/ime-api/#idl-def-InputMethodContext
@Experimental
-class InputMethodContext native "InputMethodContext" {
+class InputMethodContext extends Interceptor native "InputMethodContext" {
@DomName('InputMethodContext.composition')
@DocsEditable
@@ -13318,6 +13472,8 @@ class KeyboardEvent extends UIEvent native "KeyboardEvent" {
@DomName('KeyboardEvent.charCode')
int get charCode => $dom_charCode;
+ // To suppress missing implicit constructor warnings.
+ factory KeyboardEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('KeyboardEvent.altGraphKey')
@DocsEditable
@@ -13364,6 +13520,8 @@ class KeyboardEvent extends UIEvent native "KeyboardEvent" {
@Experimental
// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-keygen-element
class KeygenElement extends _HTMLElement native "HTMLKeygenElement" {
+ // To suppress missing implicit constructor warnings.
+ factory KeygenElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLKeygenElement.HTMLKeygenElement')
@DocsEditable
@@ -13435,6 +13593,8 @@ class KeygenElement extends _HTMLElement native "HTMLKeygenElement" {
@DocsEditable
@DomName('HTMLLIElement')
class LIElement extends _HTMLElement native "HTMLLIElement" {
+ // To suppress missing implicit constructor warnings.
+ factory LIElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLLIElement.HTMLLIElement')
@DocsEditable
@@ -13458,6 +13618,8 @@ class LIElement extends _HTMLElement native "HTMLLIElement" {
@DocsEditable
@DomName('HTMLLabelElement')
class LabelElement extends _HTMLElement native "HTMLLabelElement" {
+ // To suppress missing implicit constructor warnings.
+ factory LabelElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLLabelElement.HTMLLabelElement')
@DocsEditable
@@ -13483,6 +13645,8 @@ class LabelElement extends _HTMLElement native "HTMLLabelElement" {
@DocsEditable
@DomName('HTMLLegendElement')
class LegendElement extends _HTMLElement native "HTMLLegendElement" {
+ // To suppress missing implicit constructor warnings.
+ factory LegendElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLLegendElement.HTMLLegendElement')
@DocsEditable
@@ -13500,6 +13664,8 @@ class LegendElement extends _HTMLElement native "HTMLLegendElement" {
@DocsEditable
@DomName('HTMLLinkElement')
class LinkElement extends _HTMLElement native "HTMLLinkElement" {
+ // To suppress missing implicit constructor warnings.
+ factory LinkElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLLinkElement.HTMLLinkElement')
@DocsEditable
@@ -13550,7 +13716,7 @@ class LinkElement extends _HTMLElement native "HTMLLinkElement" {
@DocsEditable
@DomName('Location')
-class Location implements LocationBase native "Location" {
+class Location extends Interceptor implements LocationBase native "Location" {
@DomName('Location.ancestorOrigins')
@DocsEditable
@@ -13635,6 +13801,8 @@ typedef void MidiErrorCallback(DomError error);
@DocsEditable
@DomName('HTMLMapElement')
class MapElement extends _HTMLElement native "HTMLMapElement" {
+ // To suppress missing implicit constructor warnings.
+ factory MapElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLMapElement.HTMLMapElement')
@DocsEditable
@@ -13658,6 +13826,8 @@ class MapElement extends _HTMLElement native "HTMLMapElement" {
// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#mediacontroller
@Experimental
class MediaController extends EventTarget native "MediaController" {
+ // To suppress missing implicit constructor warnings.
+ factory MediaController._() { throw new UnsupportedError("Not supported"); }
@DomName('MediaController.MediaController')
@DocsEditable
@@ -13745,6 +13915,8 @@ class MediaController extends EventTarget native "MediaController" {
@DomName('HTMLMediaElement')
@Unstable
class MediaElement extends _HTMLElement native "HTMLMediaElement" {
+ // To suppress missing implicit constructor warnings.
+ factory MediaElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLMediaElement.canplayEvent')
@DocsEditable
@@ -14232,7 +14404,7 @@ class MediaElement extends _HTMLElement native "HTMLMediaElement" {
@DocsEditable
@DomName('MediaError')
@Unstable
-class MediaError native "MediaError" {
+class MediaError extends Interceptor native "MediaError" {
@DomName('MediaError.MEDIA_ERR_ABORTED')
@DocsEditable
@@ -14269,7 +14441,7 @@ class MediaError native "MediaError" {
@DomName('MediaKeyError')
// https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#error-codes
@Experimental
-class MediaKeyError native "MediaKeyError" {
+class MediaKeyError extends Interceptor native "MediaKeyError" {
@DomName('MediaKeyError.MEDIA_KEYERR_CLIENT')
@DocsEditable
@@ -14314,6 +14486,8 @@ class MediaKeyError native "MediaKeyError" {
// https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#event-definitions
@Experimental
class MediaKeyEvent extends Event native "MediaKeyEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory MediaKeyEvent._() { throw new UnsupportedError("Not supported"); }
@JSName('defaultURL')
@DomName('MediaKeyEvent.defaultURL')
@@ -14354,6 +14528,8 @@ class MediaKeyEvent extends Event native "MediaKeyEvent" {
// https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#dom-mediakeymessageevent
@Experimental
class MediaKeyMessageEvent extends Event native "MediaKeyMessageEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory MediaKeyMessageEvent._() { throw new UnsupportedError("Not supported"); }
@JSName('destinationURL')
@DomName('MediaKeyMessageEvent.destinationURL')
@@ -14374,6 +14550,8 @@ class MediaKeyMessageEvent extends Event native "MediaKeyMessageEvent" {
// https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#dom-mediakeyneededevent
@Experimental
class MediaKeyNeededEvent extends Event native "MediaKeyNeededEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory MediaKeyNeededEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('MediaKeyNeededEvent.initData')
@DocsEditable
@@ -14389,6 +14567,8 @@ class MediaKeyNeededEvent extends Event native "MediaKeyNeededEvent" {
// https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html#dom-mediakeysession
@Experimental
class MediaKeySession extends EventTarget native "MediaKeySession" {
+ // To suppress missing implicit constructor warnings.
+ factory MediaKeySession._() { throw new UnsupportedError("Not supported"); }
@DomName('MediaKeySession.webkitkeyaddedEvent')
@DocsEditable
@@ -14466,7 +14646,7 @@ class MediaKeySession extends EventTarget native "MediaKeySession" {
@DomName('MediaKeys')
// https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted-media.html
@Experimental
-class MediaKeys native "MediaKeys" {
+class MediaKeys extends Interceptor native "MediaKeys" {
@DomName('MediaKeys.MediaKeys')
@DocsEditable
@@ -14491,7 +14671,7 @@ class MediaKeys native "MediaKeys" {
@DocsEditable
@DomName('MediaList')
@Unstable
-class MediaList native "MediaList" {
+class MediaList extends Interceptor native "MediaList" {
@DomName('MediaList.length')
@DocsEditable
@@ -14521,7 +14701,7 @@ class MediaList native "MediaList" {
@DocsEditable
@DomName('MediaQueryList')
@Unstable
-class MediaQueryList native "MediaQueryList" {
+class MediaQueryList extends Interceptor native "MediaQueryList" {
@DomName('MediaQueryList.matches')
@DocsEditable
@@ -14544,9 +14724,10 @@ class MediaQueryList native "MediaQueryList" {
// BSD-style license that can be found in the LICENSE file.
+@DocsEditable
@DomName('MediaQueryListListener')
@Unstable
-abstract class MediaQueryListListener {
+abstract class MediaQueryListListener extends Interceptor {
void queryChanged(MediaQueryList list);
}
@@ -14562,6 +14743,8 @@ abstract class MediaQueryListListener {
@Experimental
// https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#mediasource
class MediaSource extends EventTarget native "WebKitMediaSource" {
+ // To suppress missing implicit constructor warnings.
+ factory MediaSource._() { throw new UnsupportedError("Not supported"); }
@DomName('WebKitMediaSource.WebKitMediaSource')
@DocsEditable
@@ -14626,6 +14809,8 @@ class MediaSource extends EventTarget native "WebKitMediaSource" {
@Experimental
// http://dev.w3.org/2011/webrtc/editor/getusermedia.html#mediastream
class MediaStream extends EventTarget native "MediaStream" {
+ // To suppress missing implicit constructor warnings.
+ factory MediaStream._() { throw new UnsupportedError("Not supported"); }
@DomName('MediaStream.addtrackEvent')
@DocsEditable
@@ -14747,6 +14932,8 @@ class MediaStream extends EventTarget native "MediaStream" {
@Experimental
// http://dev.w3.org/2011/webrtc/editor/getusermedia.html
class MediaStreamEvent extends Event native "MediaStreamEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory MediaStreamEvent._() { throw new UnsupportedError("Not supported"); }
/// Checks if this type is supported on the current platform.
static bool get supported => Device.isEventTypeSupported('MediaStreamEvent');
@@ -14766,6 +14953,8 @@ class MediaStreamEvent extends Event native "MediaStreamEvent" {
@Experimental
// http://dev.w3.org/2011/webrtc/editor/getusermedia.html#mediastreamtrack
class MediaStreamTrack extends EventTarget native "MediaStreamTrack" {
+ // To suppress missing implicit constructor warnings.
+ factory MediaStreamTrack._() { throw new UnsupportedError("Not supported"); }
@DomName('MediaStreamTrack.endedEvent')
@DocsEditable
@@ -14836,6 +15025,8 @@ class MediaStreamTrack extends EventTarget native "MediaStreamTrack" {
@Experimental
// http://dev.w3.org/2011/webrtc/editor/getusermedia.html
class MediaStreamTrackEvent extends Event native "MediaStreamTrackEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory MediaStreamTrackEvent._() { throw new UnsupportedError("Not supported"); }
/// Checks if this type is supported on the current platform.
static bool get supported => Device.isEventTypeSupported('MediaStreamTrackEvent');
@@ -14852,7 +15043,7 @@ class MediaStreamTrackEvent extends Event native "MediaStreamTrackEvent" {
@DocsEditable
@DomName('MemoryInfo')
@Experimental // nonstandard
-class MemoryInfo native "MemoryInfo" {
+class MemoryInfo extends Interceptor native "MemoryInfo" {
@DomName('MemoryInfo.jsHeapSizeLimit')
@DocsEditable
@@ -14884,6 +15075,8 @@ class MemoryInfo native "MemoryInfo" {
*/
@DomName('HTMLMenuElement')
class MenuElement extends _HTMLElement native "HTMLMenuElement" {
+ // To suppress missing implicit constructor warnings.
+ factory MenuElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLMenuElement.HTMLMenuElement')
@DocsEditable
@@ -14897,7 +15090,7 @@ class MenuElement extends _HTMLElement native "HTMLMenuElement" {
@DocsEditable
@DomName('MessageChannel')
@Unstable
-class MessageChannel native "MessageChannel" {
+class MessageChannel extends Interceptor native "MessageChannel" {
@DomName('MessageChannel.MessageChannel')
@DocsEditable
@@ -14935,6 +15128,8 @@ class MessageEvent extends Event native "MessageEvent" {
lastEventId, source, messagePorts);
return event;
}
+ // To suppress missing implicit constructor warnings.
+ factory MessageEvent._() { throw new UnsupportedError("Not supported"); }
dynamic get data => convertNativeToDart_SerializedScriptValue(this._get_data);
@JSName('data')
@@ -14982,6 +15177,8 @@ class MessageEvent extends Event native "MessageEvent" {
@DomName('MessagePort')
@Unstable
class MessagePort extends EventTarget native "MessagePort" {
+ // To suppress missing implicit constructor warnings.
+ factory MessagePort._() { throw new UnsupportedError("Not supported"); }
@DomName('MessagePort.messageEvent')
@DocsEditable
@@ -15042,6 +15239,8 @@ class MessagePort extends EventTarget native "MessagePort" {
@DocsEditable
@DomName('HTMLMetaElement')
class MetaElement extends _HTMLElement native "HTMLMetaElement" {
+ // To suppress missing implicit constructor warnings.
+ factory MetaElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLMetaElement.HTMLMetaElement')
@DocsEditable
@@ -15068,7 +15267,7 @@ class MetaElement extends _HTMLElement native "HTMLMetaElement" {
@DomName('Metadata')
// http://www.w3.org/TR/file-system-api/#the-metadata-interface
@Experimental
-class Metadata native "Metadata" {
+class Metadata extends Interceptor native "Metadata" {
DateTime get modificationTime => _convertNativeToDart_DateTime(this._get_modificationTime);
@JSName('modificationTime')
@@ -15104,6 +15303,8 @@ typedef void MetadataCallback(Metadata metadata);
@SupportedBrowser(SupportedBrowser.SAFARI)
@Unstable
class MeterElement extends _HTMLElement native "HTMLMeterElement" {
+ // To suppress missing implicit constructor warnings.
+ factory MeterElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLMeterElement.HTMLMeterElement')
@DocsEditable
@@ -15153,6 +15354,8 @@ class MeterElement extends _HTMLElement native "HTMLMeterElement" {
// http://webaudio.github.io/web-midi-api/#midiaccess-interface
@Experimental
class MidiAccess extends EventTarget native "MIDIAccess" {
+ // To suppress missing implicit constructor warnings.
+ factory MidiAccess._() { throw new UnsupportedError("Not supported"); }
@DomName('MIDIAccess.connectEvent')
@DocsEditable
@@ -15202,6 +15405,8 @@ class MidiAccess extends EventTarget native "MIDIAccess" {
// http://webaudio.github.io/web-midi-api/#midiconnectionevent-interface
@Experimental
class MidiConnectionEvent extends Event native "MIDIConnectionEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory MidiConnectionEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('MIDIConnectionEvent.port')
@DocsEditable
@@ -15217,6 +15422,8 @@ class MidiConnectionEvent extends Event native "MIDIConnectionEvent" {
// http://webaudio.github.io/web-midi-api/#idl-def-MIDIInput
@Experimental
class MidiInput extends MidiPort implements EventTarget native "MIDIInput" {
+ // To suppress missing implicit constructor warnings.
+ factory MidiInput._() { throw new UnsupportedError("Not supported"); }
@DomName('MIDIInput.midimessageEvent')
@DocsEditable
@@ -15236,6 +15443,8 @@ class MidiInput extends MidiPort implements EventTarget native "MIDIInput" {
// http://webaudio.github.io/web-midi-api/#midimessageevent-interface
@Experimental
class MidiMessageEvent extends Event native "MIDIMessageEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory MidiMessageEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('MIDIMessageEvent.data')
@DocsEditable
@@ -15255,6 +15464,8 @@ class MidiMessageEvent extends Event native "MIDIMessageEvent" {
// http://webaudio.github.io/web-midi-api/#midioutput-interface
@Experimental
class MidiOutput extends MidiPort native "MIDIOutput" {
+ // To suppress missing implicit constructor warnings.
+ factory MidiOutput._() { throw new UnsupportedError("Not supported"); }
@DomName('MIDIOutput.send')
@DocsEditable
@@ -15270,6 +15481,8 @@ class MidiOutput extends MidiPort native "MIDIOutput" {
// http://webaudio.github.io/web-midi-api/#idl-def-MIDIPort
@Experimental
class MidiPort extends EventTarget native "MIDIPort" {
+ // To suppress missing implicit constructor warnings.
+ factory MidiPort._() { throw new UnsupportedError("Not supported"); }
@DomName('MIDIPort.disconnectEvent')
@DocsEditable
@@ -15321,7 +15534,7 @@ class MidiPort extends EventTarget native "MIDIPort" {
@DocsEditable
@DomName('MimeType')
@Experimental // non-standard
-class MimeType native "MimeType" {
+class MimeType extends Interceptor native "MimeType" {
@DomName('MimeType.description')
@DocsEditable
@@ -15418,6 +15631,8 @@ class MimeTypeArray extends Interceptor with ListMixin<MimeType>, ImmutableListM
@DomName('HTMLModElement')
@Unstable
class ModElement extends _HTMLElement native "HTMLModElement" {
+ // To suppress missing implicit constructor warnings.
+ factory ModElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLModElement.cite')
@DocsEditable
@@ -15449,6 +15664,8 @@ class MouseEvent extends UIEvent native "MouseEvent,DragEvent" {
button, relatedTarget);
return event;
}
+ // To suppress missing implicit constructor warnings.
+ factory MouseEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('MouseEvent.altKey')
@DocsEditable
@@ -15624,6 +15841,8 @@ class MutationEvent extends Event native "MutationEvent" {
prevValue, newValue, attrName, attrChange);
return event;
}
+ // To suppress missing implicit constructor warnings.
+ factory MutationEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('MutationEvent.ADDITION')
@DocsEditable
@@ -15676,7 +15895,7 @@ class MutationEvent extends Event native "MutationEvent" {
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental
-class MutationObserver native "MutationObserver,WebKitMutationObserver" {
+class MutationObserver extends Interceptor native "MutationObserver,WebKitMutationObserver" {
@DomName('MutationObserver.disconnect')
@DocsEditable
@@ -15772,7 +15991,7 @@ class MutationObserver native "MutationObserver,WebKitMutationObserver" {
@DocsEditable
@DomName('MutationRecord')
-class MutationRecord native "MutationRecord" {
+class MutationRecord extends Interceptor native "MutationRecord" {
@DomName('MutationRecord.addedNodes')
@DocsEditable
@@ -15826,6 +16045,8 @@ class MutationRecord native "MutationRecord" {
@Experimental
// http://www.w3.org/TR/css3-regions/#dom-named-flow-collection
class NamedFlow extends EventTarget native "WebKitNamedFlow" {
+ // To suppress missing implicit constructor warnings.
+ factory NamedFlow._() { throw new UnsupportedError("Not supported"); }
@DomName('WebKitNamedFlow.firstEmptyRegionIndex')
@DocsEditable
@@ -15882,7 +16103,7 @@ class NamedFlow extends EventTarget native "WebKitNamedFlow" {
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental
// http://dev.w3.org/csswg/css-regions/#dom-named-flow-collection
-class NamedFlowCollection native "WebKitNamedFlowCollection" {
+class NamedFlowCollection extends Interceptor native "WebKitNamedFlowCollection" {
@DomName('WebKitNamedFlowCollection.length')
@DocsEditable
@@ -15906,7 +16127,7 @@ class NamedFlowCollection native "WebKitNamedFlowCollection" {
@DomName('Navigator')
-class Navigator native "Navigator" {
+class Navigator extends Interceptor native "Navigator" {
@DomName('Navigator.language')
String get language => JS('String', '#.language || #.userLanguage', this,
@@ -15928,18 +16149,18 @@ class Navigator native "Navigator" {
* document.body.append(video);
* });
*
- * The user can also pass in Maps to the audio or video parameters to specify
- * mandatory and optional constraints for the media stream. Not passing in a
- * map, but passing in `true` will provide a MediaStream with audio or
+ * The user can also pass in Maps to the audio or video parameters to specify
+ * mandatory and optional constraints for the media stream. Not passing in a
+ * map, but passing in `true` will provide a MediaStream with audio or
* video capabilities, but without any additional constraints. The particular
- * constraint names for audio and video are still in flux, but as of this
+ * constraint names for audio and video are still in flux, but as of this
* writing, here is an example providing more constraints.
*
* window.navigator.getUserMedia(
- * audio: true,
- * video: {'mandatory':
+ * audio: true,
+ * video: {'mandatory':
* { 'minAspectRatio': 1.333, 'maxAspectRatio': 1.334 },
- * 'optional':
+ * 'optional':
* [{ 'minFrameRate': 60 },
* { 'maxWidth': 640 }]
* });
@@ -16107,7 +16328,7 @@ class Navigator native "Navigator" {
@DomName('NavigatorUserMediaError')
// http://dev.w3.org/2011/webrtc/editor/getusermedia.html#idl-def-NavigatorUserMediaError
@Experimental
-class NavigatorUserMediaError native "NavigatorUserMediaError" {
+class NavigatorUserMediaError extends Interceptor native "NavigatorUserMediaError" {
@DomName('NavigatorUserMediaError.constraintName')
@DocsEditable
@@ -16423,6 +16644,8 @@ class Node extends EventTarget native "Node" {
TemplateInstance get templateInstance =>
TemplateElement.mdvPackage(this).templateInstance;
+ // To suppress missing implicit constructor warnings.
+ factory Node._() { throw new UnsupportedError("Not supported"); }
@DomName('Node.ATTRIBUTE_NODE')
@DocsEditable
@@ -16602,7 +16825,7 @@ class Node extends EventTarget native "Node" {
@DocsEditable
@DomName('NodeFilter')
@Unstable
-class NodeFilter native "NodeFilter" {
+class NodeFilter extends Interceptor native "NodeFilter" {
@DomName('NodeFilter.FILTER_ACCEPT')
@DocsEditable
@@ -16680,7 +16903,7 @@ class NodeFilter native "NodeFilter" {
@DomName('NodeIterator')
@Unstable
-class NodeIterator native "NodeIterator" {
+class NodeIterator extends Interceptor native "NodeIterator" {
factory NodeIterator(Node root, int whatToShow) {
return document.$dom_createNodeIterator(root, whatToShow, null, false);
}
@@ -16786,6 +17009,8 @@ class NodeList extends Interceptor with ListMixin<Node>, ImmutableListMixin<Node
// http://dom.spec.whatwg.org/#notation
@deprecated // deprecated
class Notation extends Node native "Notation" {
+ // To suppress missing implicit constructor warnings.
+ factory Notation._() { throw new UnsupportedError("Not supported"); }
@DomName('Notation.publicId')
@DocsEditable
@@ -16805,7 +17030,7 @@ class Notation extends Node native "Notation" {
@Experimental // experimental
class Notification extends EventTarget native "Notification" {
- factory Notification(String title, {String titleDir: null, String body: null,
+ factory Notification(String title, {String titleDir: null, String body: null,
String bodyDir: null, String tag: null, String iconUrl: null}) {
var parsedOptions = {};
@@ -16817,6 +17042,8 @@ class Notification extends EventTarget native "Notification" {
return Notification._factoryNotification(title, parsedOptions);
}
+ // To suppress missing implicit constructor warnings.
+ factory Notification._() { throw new UnsupportedError("Not supported"); }
@DomName('Notification.clickEvent')
@DocsEditable
@@ -16946,7 +17173,7 @@ class Notification extends EventTarget native "Notification" {
@Experimental
// http://www.w3.org/TR/notifications/#showing-a-notification
@deprecated // deprecated
-class NotificationCenter native "NotificationCenter" {
+class NotificationCenter extends Interceptor native "NotificationCenter" {
/// Checks if this type is supported on the current platform.
static bool get supported => JS('bool', '!!(window.webkitNotifications)');
@@ -16998,6 +17225,8 @@ typedef void _NotificationPermissionCallback(String permission);
@DocsEditable
@DomName('HTMLOListElement')
class OListElement extends _HTMLElement native "HTMLOListElement" {
+ // To suppress missing implicit constructor warnings.
+ factory OListElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLOListElement.HTMLOListElement')
@DocsEditable
@@ -17027,6 +17256,8 @@ class OListElement extends _HTMLElement native "HTMLOListElement" {
@SupportedBrowser(SupportedBrowser.SAFARI)
@Unstable
class ObjectElement extends _HTMLElement native "HTMLObjectElement" {
+ // To suppress missing implicit constructor warnings.
+ factory ObjectElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLObjectElement.HTMLObjectElement')
@DocsEditable
@@ -17105,6 +17336,8 @@ class ObjectElement extends _HTMLElement native "HTMLObjectElement" {
@DocsEditable
@DomName('HTMLOptGroupElement')
class OptGroupElement extends _HTMLElement native "HTMLOptGroupElement" {
+ // To suppress missing implicit constructor warnings.
+ factory OptGroupElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLOptGroupElement.HTMLOptGroupElement')
@DocsEditable
@@ -17126,6 +17359,8 @@ class OptGroupElement extends _HTMLElement native "HTMLOptGroupElement" {
@DocsEditable
@DomName('HTMLOptionElement')
class OptionElement extends _HTMLElement native "HTMLOptionElement" {
+ // To suppress missing implicit constructor warnings.
+ factory OptionElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLOptionElement.HTMLOptionElement')
@DocsEditable
@@ -17189,6 +17424,8 @@ class OptionElement extends _HTMLElement native "HTMLOptionElement" {
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.SAFARI)
class OutputElement extends _HTMLElement native "HTMLOutputElement" {
+ // To suppress missing implicit constructor warnings.
+ factory OutputElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLOutputElement.HTMLOutputElement')
@DocsEditable
@@ -17257,6 +17494,8 @@ class OutputElement extends _HTMLElement native "HTMLOutputElement" {
@DomName('OverflowEvent')
@Experimental // nonstandard
class OverflowEvent extends Event native "OverflowEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory OverflowEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('OverflowEvent.BOTH')
@DocsEditable
@@ -17292,6 +17531,8 @@ class OverflowEvent extends Event native "OverflowEvent" {
// http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#pagetransitionevent
@Experimental
class PageTransitionEvent extends Event native "PageTransitionEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory PageTransitionEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('PageTransitionEvent.persisted')
@DocsEditable
@@ -17305,6 +17546,8 @@ class PageTransitionEvent extends Event native "PageTransitionEvent" {
@DocsEditable
@DomName('HTMLParagraphElement')
class ParagraphElement extends _HTMLElement native "HTMLParagraphElement" {
+ // To suppress missing implicit constructor warnings.
+ factory ParagraphElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLParagraphElement.HTMLParagraphElement')
@DocsEditable
@@ -17319,6 +17562,8 @@ class ParagraphElement extends _HTMLElement native "HTMLParagraphElement" {
@DomName('HTMLParamElement')
@Unstable
class ParamElement extends _HTMLElement native "HTMLParamElement" {
+ // To suppress missing implicit constructor warnings.
+ factory ParamElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLParamElement.HTMLParamElement')
@DocsEditable
@@ -17341,7 +17586,7 @@ class ParamElement extends _HTMLElement native "HTMLParamElement" {
@DomName('Path')
// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#path-objects
@Experimental
-class Path native "Path" {
+class Path extends Interceptor native "Path" {
@DomName('Path.Path')
@DocsEditable
@@ -17404,6 +17649,8 @@ class Path native "Path" {
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.IE)
class Performance extends EventTarget native "Performance" {
+ // To suppress missing implicit constructor warnings.
+ factory Performance._() { throw new UnsupportedError("Not supported"); }
@DomName('Performance.webkitresourcetimingbufferfullEvent')
@DocsEditable
@@ -17508,7 +17755,7 @@ class Performance extends EventTarget native "Performance" {
@DomName('PerformanceEntry')
// http://www.w3.org/TR/performance-timeline/#sec-PerformanceEntry-interface
@Experimental
-class PerformanceEntry native "PerformanceEntry" {
+class PerformanceEntry extends Interceptor native "PerformanceEntry" {
@DomName('PerformanceEntry.duration')
@DocsEditable
@@ -17536,6 +17783,8 @@ class PerformanceEntry native "PerformanceEntry" {
// http://www.w3.org/TR/user-timing/#performancemark
@Experimental
class PerformanceMark extends PerformanceEntry native "PerformanceMark" {
+ // To suppress missing implicit constructor warnings.
+ factory PerformanceMark._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -17547,6 +17796,8 @@ class PerformanceMark extends PerformanceEntry native "PerformanceMark" {
// http://www.w3.org/TR/user-timing/#performancemeasure
@Experimental
class PerformanceMeasure extends PerformanceEntry native "PerformanceMeasure" {
+ // To suppress missing implicit constructor warnings.
+ factory PerformanceMeasure._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -17556,7 +17807,7 @@ class PerformanceMeasure extends PerformanceEntry native "PerformanceMeasure" {
@DocsEditable
@DomName('PerformanceNavigation')
@Unstable
-class PerformanceNavigation native "PerformanceNavigation" {
+class PerformanceNavigation extends Interceptor native "PerformanceNavigation" {
@DomName('PerformanceNavigation.TYPE_BACK_FORWARD')
@DocsEditable
@@ -17592,6 +17843,8 @@ class PerformanceNavigation native "PerformanceNavigation" {
// http://www.w3c-test.org/webperf/specs/ResourceTiming/#performanceresourcetiming
@Experimental
class PerformanceResourceTiming extends PerformanceEntry native "PerformanceResourceTiming" {
+ // To suppress missing implicit constructor warnings.
+ factory PerformanceResourceTiming._() { throw new UnsupportedError("Not supported"); }
@DomName('PerformanceResourceTiming.connectEnd')
@DocsEditable
@@ -17652,7 +17905,7 @@ class PerformanceResourceTiming extends PerformanceEntry native "PerformanceReso
@DocsEditable
@DomName('PerformanceTiming')
@Unstable
-class PerformanceTiming native "PerformanceTiming" {
+class PerformanceTiming extends Interceptor native "PerformanceTiming" {
@DomName('PerformanceTiming.connectEnd')
@DocsEditable
@@ -17746,7 +17999,7 @@ class PerformanceTiming native "PerformanceTiming" {
@DocsEditable
@DomName('Plugin')
@Experimental // non-standard
-class Plugin native "Plugin" {
+class Plugin extends Interceptor native "Plugin" {
@DomName('Plugin.description')
@DocsEditable
@@ -17862,6 +18115,8 @@ class PluginArray extends Interceptor with ListMixin<Plugin>, ImmutableListMixin
@SupportedBrowser(SupportedBrowser.IE, '10')
@SupportedBrowser(SupportedBrowser.SAFARI)
class PopStateEvent extends Event native "PopStateEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory PopStateEvent._() { throw new UnsupportedError("Not supported"); }
dynamic get state => convertNativeToDart_SerializedScriptValue(this._get_state);
@JSName('state')
@@ -17889,7 +18144,7 @@ typedef void _PositionCallback(Geoposition position);
@DocsEditable
@DomName('PositionError')
@Unstable
-class PositionError native "PositionError" {
+class PositionError extends Interceptor native "PositionError" {
@DomName('PositionError.PERMISSION_DENIED')
@DocsEditable
@@ -17929,6 +18184,8 @@ typedef void _PositionErrorCallback(PositionError error);
@DocsEditable
@DomName('HTMLPreElement')
class PreElement extends _HTMLElement native "HTMLPreElement" {
+ // To suppress missing implicit constructor warnings.
+ factory PreElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLPreElement.HTMLPreElement')
@DocsEditable
@@ -17948,6 +18205,8 @@ class PreElement extends _HTMLElement native "HTMLPreElement" {
@DomName('ProcessingInstruction')
@Unstable
class ProcessingInstruction extends Node native "ProcessingInstruction" {
+ // To suppress missing implicit constructor warnings.
+ factory ProcessingInstruction._() { throw new UnsupportedError("Not supported"); }
@DomName('ProcessingInstruction.data')
@DocsEditable
@@ -17975,6 +18234,8 @@ class ProcessingInstruction extends Node native "ProcessingInstruction" {
@SupportedBrowser(SupportedBrowser.IE, '10')
@SupportedBrowser(SupportedBrowser.SAFARI)
class ProgressElement extends _HTMLElement native "HTMLProgressElement" {
+ // To suppress missing implicit constructor warnings.
+ factory ProgressElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLProgressElement.HTMLProgressElement')
@DocsEditable
@@ -18010,6 +18271,8 @@ class ProgressElement extends _HTMLElement native "HTMLProgressElement" {
@DocsEditable
@DomName('ProgressEvent')
class ProgressEvent extends Event native "ProgressEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory ProgressEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('ProgressEvent.lengthComputable')
@DocsEditable
@@ -18031,6 +18294,8 @@ class ProgressEvent extends Event native "ProgressEvent" {
@DocsEditable
@DomName('HTMLQuoteElement')
class QuoteElement extends _HTMLElement native "HTMLQuoteElement" {
+ // To suppress missing implicit constructor warnings.
+ factory QuoteElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLQuoteElement.HTMLQuoteElement')
@DocsEditable
@@ -18082,7 +18347,7 @@ typedef void RtcStatsCallback(RtcStatsResponse response);
@DomName('Range')
@Unstable
-class Range native "Range" {
+class Range extends Interceptor native "Range" {
factory Range() => document.$dom_createRange();
factory Range.fromPoint(Point point) =>
@@ -18283,6 +18548,8 @@ typedef void RequestAnimationFrameCallback(num highResTime);
// https://chromiumcodereview.appspot.com/14773025/
@deprecated // experimental
class ResourceProgressEvent extends ProgressEvent native "ResourceProgressEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory ResourceProgressEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('ResourceProgressEvent.url')
@DocsEditable
@@ -18298,6 +18565,8 @@ class ResourceProgressEvent extends ProgressEvent native "ResourceProgressEvent"
// http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDataChannel
@Experimental
class RtcDataChannel extends EventTarget native "RTCDataChannel,DataChannel" {
+ // To suppress missing implicit constructor warnings.
+ factory RtcDataChannel._() { throw new UnsupportedError("Not supported"); }
@DomName('RTCDataChannel.closeEvent')
@DocsEditable
@@ -18383,6 +18652,8 @@ class RtcDataChannel extends EventTarget native "RTCDataChannel,DataChannel" {
// http://dev.w3.org/2011/webrtc/editor/webrtc.html#rtcdatachannelevent
@Experimental
class RtcDataChannelEvent extends Event native "RTCDataChannelEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory RtcDataChannelEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('RTCDataChannelEvent.channel')
@DocsEditable
@@ -18398,6 +18669,8 @@ class RtcDataChannelEvent extends Event native "RTCDataChannelEvent" {
// http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDTMFSender
@Experimental
class RtcDtmfSender extends EventTarget native "RTCDTMFSender" {
+ // To suppress missing implicit constructor warnings.
+ factory RtcDtmfSender._() { throw new UnsupportedError("Not supported"); }
@DomName('RTCDTMFSender.tonechangeEvent')
@DocsEditable
@@ -18457,6 +18730,8 @@ class RtcDtmfSender extends EventTarget native "RTCDTMFSender" {
// http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDTMFToneChangeEvent
@Experimental
class RtcDtmfToneChangeEvent extends Event native "RTCDTMFToneChangeEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory RtcDtmfToneChangeEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('RTCDTMFToneChangeEvent.tone')
@DocsEditable
@@ -18471,13 +18746,13 @@ class RtcDtmfToneChangeEvent extends Event native "RTCDTMFToneChangeEvent" {
@SupportedBrowser(SupportedBrowser.CHROME)
@Experimental
// http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCIceCandidate
-class RtcIceCandidate native "RTCIceCandidate,mozRTCIceCandidate" {
+class RtcIceCandidate extends Interceptor native "RTCIceCandidate,mozRTCIceCandidate" {
factory RtcIceCandidate(Map dictionary) {
// TODO(efortuna): Remove this check if when you can actually construct with
// the unprefixed RTCIceCandidate in Firefox (currently both are defined,
// but one can't be used as a constructor).
var constructorName = JS('', 'window[#]',
- Device.isFirefox ? '${Device.propertyPrefix}RTCIceCandidate' :
+ Device.isFirefox ? '${Device.propertyPrefix}RTCIceCandidate' :
'RTCIceCandidate');
return JS('RtcIceCandidate', 'new #(#)', constructorName,
convertDartToNative_SerializedScriptValue(dictionary));
@@ -18506,6 +18781,8 @@ class RtcIceCandidate native "RTCIceCandidate,mozRTCIceCandidate" {
// http://dev.w3.org/2011/webrtc/editor/webrtc.html#rtcicecandidate-type
@Experimental
class RtcIceCandidateEvent extends Event native "RTCIceCandidateEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory RtcIceCandidateEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('RTCIceCandidateEvent.candidate')
@DocsEditable
@@ -18542,7 +18819,7 @@ class RtcPeerConnection extends EventTarget native "RTCPeerConnection,mozRTCPeer
// Currently in Firefox some of the RTC elements are defined but throw an
// error unless the user has specifically enabled them in their
// about:config. So we have to construct an element to actually test if RTC
- // is supported at the given time.
+ // is supported at the given time.
try {
new RtcPeerConnection(
{"iceServers": [ {"url":"stun:localhost"}]});
@@ -18565,6 +18842,8 @@ class RtcPeerConnection extends EventTarget native "RTCPeerConnection,mozRTCPeer
(error) { completer.completeError(error); }, mediaConstraints);
return completer.future;
}
+ // To suppress missing implicit constructor warnings.
+ factory RtcPeerConnection._() { throw new UnsupportedError("Not supported"); }
@DomName('RTCPeerConnection.addstreamEvent')
@DocsEditable
@@ -18839,15 +19118,15 @@ class RtcPeerConnection extends EventTarget native "RTCPeerConnection,mozRTCPeer
@SupportedBrowser(SupportedBrowser.CHROME)
@Experimental
// http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCSessionDescription
-class RtcSessionDescription native "RTCSessionDescription,mozRTCSessionDescription" {
+class RtcSessionDescription extends Interceptor native "RTCSessionDescription,mozRTCSessionDescription" {
factory RtcSessionDescription(Map dictionary) {
// TODO(efortuna): Remove this check if when you can actually construct with
// the unprefixed RTCIceCandidate in Firefox (currently both are defined,
// but one can't be used as a constructor).
var constructorName = JS('', 'window[#]',
- Device.isFirefox ? '${Device.propertyPrefix}RTCSessionDescription' :
+ Device.isFirefox ? '${Device.propertyPrefix}RTCSessionDescription' :
'RTCSessionDescription');
- return JS('RtcSessionDescription',
+ return JS('RtcSessionDescription',
'new #(#)', constructorName,
convertDartToNative_SerializedScriptValue(dictionary));
}
@@ -18870,7 +19149,7 @@ class RtcSessionDescription native "RTCSessionDescription,mozRTCSessionDescripti
@DomName('RTCStatsReport')
// http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCStatsReport
@Experimental
-class RtcStatsReport native "RTCStatsReport" {
+class RtcStatsReport extends Interceptor native "RTCStatsReport" {
@DomName('RTCStatsReport.id')
@DocsEditable
@@ -18912,7 +19191,7 @@ class RtcStatsReport native "RTCStatsReport" {
@DomName('RTCStatsResponse')
// http://dev.w3.org/2011/webrtc/editor/webrtc.html#widl-RTCStatsReport-RTCStats-getter-DOMString-id
@Experimental
-class RtcStatsResponse native "RTCStatsResponse" {
+class RtcStatsResponse extends Interceptor native "RTCStatsResponse" {
@DomName('RTCStatsResponse.__getter__')
@DocsEditable
@@ -18933,7 +19212,7 @@ class RtcStatsResponse native "RTCStatsResponse" {
@DocsEditable
@DomName('Screen')
-class Screen native "Screen" {
+class Screen extends Interceptor native "Screen" {
@DomName('Screen.availHeight')
@DomName('Screen.availLeft')
@@ -18988,6 +19267,8 @@ class Screen native "Screen" {
@DocsEditable
@DomName('HTMLScriptElement')
class ScriptElement extends _HTMLElement native "HTMLScriptElement" {
+ // To suppress missing implicit constructor warnings.
+ factory ScriptElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLScriptElement.HTMLScriptElement')
@DocsEditable
@@ -19046,7 +19327,7 @@ class ScriptElement extends _HTMLElement native "HTMLScriptElement" {
@DomName('SecurityPolicy')
// https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification.dev.html#securitypolicy
@Experimental
-class SecurityPolicy native "SecurityPolicy" {
+class SecurityPolicy extends Interceptor native "SecurityPolicy" {
@DomName('SecurityPolicy.allowsEval')
@DocsEditable
@@ -19120,6 +19401,8 @@ class SecurityPolicy native "SecurityPolicy" {
// https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification.dev.html#securitypolicyviolationevent-events
@Experimental
class SecurityPolicyViolationEvent extends Event native "SecurityPolicyViolationEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory SecurityPolicyViolationEvent._() { throw new UnsupportedError("Not supported"); }
@JSName('blockedURI')
@DomName('SecurityPolicyViolationEvent.blockedURI')
@@ -19166,6 +19449,8 @@ class SecurityPolicyViolationEvent extends Event native "SecurityPolicyViolation
@DomName('HTMLSelectElement')
class SelectElement extends _HTMLElement native "HTMLSelectElement" {
+ // To suppress missing implicit constructor warnings.
+ factory SelectElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLSelectElement.HTMLSelectElement')
@DocsEditable
@@ -19280,7 +19565,7 @@ class SelectElement extends _HTMLElement native "HTMLSelectElement" {
@DocsEditable
@DomName('Selection')
-class Selection native "Selection" {
+class Selection extends Interceptor native "Selection" {
@DomName('Selection.anchorNode')
@DocsEditable
@@ -19407,6 +19692,8 @@ class Selection native "Selection" {
@Experimental
// https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#shadow-element
class ShadowElement extends _HTMLElement native "HTMLShadowElement" {
+ // To suppress missing implicit constructor warnings.
+ factory ShadowElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLShadowElement.HTMLShadowElement')
@DocsEditable
@@ -19435,6 +19722,8 @@ class ShadowElement extends _HTMLElement native "HTMLShadowElement" {
@Experimental
// https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#api-shadow-root
class ShadowRoot extends DocumentFragment native "ShadowRoot" {
+ // To suppress missing implicit constructor warnings.
+ factory ShadowRoot._() { throw new UnsupportedError("Not supported"); }
@DomName('ShadowRoot.activeElement')
@DocsEditable
@@ -19496,7 +19785,7 @@ class ShadowRoot extends DocumentFragment native "ShadowRoot" {
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental
// https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#sourcebuffer
-class SourceBuffer native "WebKitSourceBuffer" {
+class SourceBuffer extends Interceptor native "WebKitSourceBuffer" {
@DomName('WebKitSourceBuffer.buffered')
@DocsEditable
@@ -19527,6 +19816,8 @@ class SourceBuffer native "WebKitSourceBuffer" {
@Experimental
// https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#sourcebufferlist
class SourceBufferList extends EventTarget with ListMixin<SourceBuffer>, ImmutableListMixin<SourceBuffer> implements JavaScriptIndexingBehavior, List<SourceBuffer> native "WebKitSourceBufferList" {
+ // To suppress missing implicit constructor warnings.
+ factory SourceBufferList._() { throw new UnsupportedError("Not supported"); }
@DomName('WebKitSourceBufferList.length')
@DocsEditable
@@ -19602,6 +19893,8 @@ class SourceBufferList extends EventTarget with ListMixin<SourceBuffer>, Immutab
@DocsEditable
@DomName('HTMLSourceElement')
class SourceElement extends _HTMLElement native "HTMLSourceElement" {
+ // To suppress missing implicit constructor warnings.
+ factory SourceElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLSourceElement.HTMLSourceElement')
@DocsEditable
@@ -19627,6 +19920,8 @@ class SourceElement extends _HTMLElement native "HTMLSourceElement" {
@DocsEditable
@DomName('HTMLSpanElement')
class SpanElement extends _HTMLElement native "HTMLSpanElement" {
+ // To suppress missing implicit constructor warnings.
+ factory SpanElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLSpanElement.HTMLSpanElement')
@DocsEditable
@@ -19641,7 +19936,7 @@ class SpanElement extends _HTMLElement native "HTMLSpanElement" {
@DomName('SpeechGrammar')
// https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#dfn-speechgrammar
@Experimental
-class SpeechGrammar native "SpeechGrammar" {
+class SpeechGrammar extends Interceptor native "SpeechGrammar" {
@DomName('SpeechGrammar.SpeechGrammar')
@DocsEditable
@@ -19746,6 +20041,8 @@ class SpeechGrammarList extends Interceptor with ListMixin<SpeechGrammar>, Immut
// http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api-draft.html#speech_input_event_interface
@Experimental
class SpeechInputEvent extends Event native "SpeechInputEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory SpeechInputEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('SpeechInputEvent.results')
@DocsEditable
@@ -19762,7 +20059,7 @@ class SpeechInputEvent extends Event native "SpeechInputEvent" {
@DomName('SpeechInputResult')
// http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api-draft.html#speech_input_result_interface
@Experimental
-class SpeechInputResult native "SpeechInputResult" {
+class SpeechInputResult extends Interceptor native "SpeechInputResult" {
@DomName('SpeechInputResult.confidence')
@DocsEditable
@@ -19782,6 +20079,8 @@ class SpeechInputResult native "SpeechInputResult" {
@Experimental
// https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-section
class SpeechRecognition extends EventTarget native "SpeechRecognition" {
+ // To suppress missing implicit constructor warnings.
+ factory SpeechRecognition._() { throw new UnsupportedError("Not supported"); }
@DomName('SpeechRecognition.audioendEvent')
@DocsEditable
@@ -19935,7 +20234,7 @@ class SpeechRecognition extends EventTarget native "SpeechRecognition" {
@SupportedBrowser(SupportedBrowser.CHROME, '25')
@Experimental
// https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechrecognitionalternative
-class SpeechRecognitionAlternative native "SpeechRecognitionAlternative" {
+class SpeechRecognitionAlternative extends Interceptor native "SpeechRecognitionAlternative" {
@DomName('SpeechRecognitionAlternative.confidence')
@DocsEditable
@@ -19956,6 +20255,8 @@ class SpeechRecognitionAlternative native "SpeechRecognitionAlternative" {
@Experimental
// https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-error
class SpeechRecognitionError extends Event native "SpeechRecognitionError" {
+ // To suppress missing implicit constructor warnings.
+ factory SpeechRecognitionError._() { throw new UnsupportedError("Not supported"); }
@DomName('SpeechRecognitionError.error')
@DocsEditable
@@ -19976,6 +20277,8 @@ class SpeechRecognitionError extends Event native "SpeechRecognitionError" {
@Experimental
// https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-event
class SpeechRecognitionEvent extends Event native "SpeechRecognitionEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory SpeechRecognitionEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('SpeechRecognitionEvent.emma')
@DocsEditable
@@ -20005,7 +20308,7 @@ class SpeechRecognitionEvent extends Event native "SpeechRecognitionEvent" {
@SupportedBrowser(SupportedBrowser.CHROME, '25')
@Experimental
// https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechrecognitionresult
-class SpeechRecognitionResult native "SpeechRecognitionResult" {
+class SpeechRecognitionResult extends Interceptor native "SpeechRecognitionResult" {
@DomName('SpeechRecognitionResult.isFinal')
@DocsEditable
@@ -20028,7 +20331,7 @@ class SpeechRecognitionResult native "SpeechRecognitionResult" {
@DomName('SpeechSynthesis')
// https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section
@Experimental
-class SpeechSynthesis native "SpeechSynthesis" {
+class SpeechSynthesis extends Interceptor native "SpeechSynthesis" {
@DomName('SpeechSynthesis.paused')
@DocsEditable
@@ -20072,6 +20375,8 @@ class SpeechSynthesis native "SpeechSynthesis" {
// https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section
@Experimental
class SpeechSynthesisEvent extends Event native "SpeechSynthesisEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory SpeechSynthesisEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('SpeechSynthesisEvent.charIndex')
@DocsEditable
@@ -20095,6 +20400,8 @@ class SpeechSynthesisEvent extends Event native "SpeechSynthesisEvent" {
// https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section
@Experimental
class SpeechSynthesisUtterance extends EventTarget native "SpeechSynthesisUtterance" {
+ // To suppress missing implicit constructor warnings.
+ factory SpeechSynthesisUtterance._() { throw new UnsupportedError("Not supported"); }
@DomName('SpeechSynthesisUtterance.boundaryEvent')
@DocsEditable
@@ -20196,7 +20503,7 @@ class SpeechSynthesisUtterance extends EventTarget native "SpeechSynthesisUttera
@DomName('SpeechSynthesisVoice')
// https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section
@Experimental
-class SpeechSynthesisVoice native "SpeechSynthesisVoice" {
+class SpeechSynthesisVoice extends Interceptor native "SpeechSynthesisVoice" {
@JSName('default')
@DomName('SpeechSynthesisVoice.default')
@@ -20252,8 +20559,8 @@ class SpeechSynthesisVoice native "SpeechSynthesisVoice" {
*/
@DomName('Storage')
@Unstable
-class Storage implements Map<String, String>
- native "Storage" {
+class Storage extends Interceptor
+ implements Map<String, String> native "Storage" {
// TODO(nweiz): update this when maps support lazy iteration
bool containsValue(String value) => values.any((e) => e == value);
@@ -20377,6 +20684,8 @@ class StorageEvent extends Event native "StorageEvent" {
newValue, url, storageArea);
return e;
}
+ // To suppress missing implicit constructor warnings.
+ factory StorageEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('StorageEvent.key')
@DocsEditable
@@ -20412,7 +20721,7 @@ class StorageEvent extends Event native "StorageEvent" {
@DomName('StorageInfo')
// http://www.w3.org/TR/file-system-api/
@Experimental
-class StorageInfo native "StorageInfo" {
+class StorageInfo extends Interceptor native "StorageInfo" {
@DomName('StorageInfo.PERSISTENT')
@DocsEditable
@@ -20446,8 +20755,8 @@ class StorageInfo native "StorageInfo" {
Future<StorageInfoUsage> queryUsageAndQuota(int storageType) {
var completer = new Completer<StorageInfoUsage>();
_queryUsageAndQuota(storageType,
- (currentUsageInBytes, currentQuotaInBytes) {
- completer.complete(new StorageInfoUsage(currentUsageInBytes,
+ (currentUsageInBytes, currentQuotaInBytes) {
+ completer.complete(new StorageInfoUsage(currentUsageInBytes,
currentQuotaInBytes));
},
(error) { completer.completeError(error); });
@@ -20455,7 +20764,7 @@ class StorageInfo native "StorageInfo" {
}
}
-/**
+/**
* A simple container class for the two values that are returned from the
* futures in requestQuota and queryUsageAndQuota.
*/
@@ -20473,7 +20782,7 @@ class StorageInfoUsage {
@DomName('StorageQuota')
// http://www.w3.org/TR/quota-api/#idl-def-StorageQuota
@Experimental
-class StorageQuota native "StorageQuota" {
+class StorageQuota extends Interceptor native "StorageQuota" {
@DomName('StorageQuota.queryUsageAndQuota')
@DocsEditable
@@ -20524,6 +20833,8 @@ typedef void _StringCallback(String data);
@DocsEditable
@DomName('HTMLStyleElement')
class StyleElement extends _HTMLElement native "HTMLStyleElement" {
+ // To suppress missing implicit constructor warnings.
+ factory StyleElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLStyleElement.HTMLStyleElement')
@DocsEditable
@@ -20558,7 +20869,7 @@ class StyleElement extends _HTMLElement native "HTMLStyleElement" {
@DomName('StyleMedia')
// http://developer.apple.com/library/safari/#documentation/SafariDOMAdditions/Reference/StyleMedia/StyleMedia/StyleMedia.html
@Experimental // nonstandard
-class StyleMedia native "StyleMedia" {
+class StyleMedia extends Interceptor native "StyleMedia" {
@DomName('StyleMedia.type')
@DocsEditable
@@ -20575,7 +20886,7 @@ class StyleMedia native "StyleMedia" {
@DocsEditable
@DomName('StyleSheet')
-class StyleSheet native "StyleSheet" {
+class StyleSheet extends Interceptor native "StyleSheet" {
@DomName('StyleSheet.disabled')
@DocsEditable
@@ -20613,6 +20924,8 @@ class StyleSheet native "StyleSheet" {
@DocsEditable
@DomName('HTMLTableCaptionElement')
class TableCaptionElement extends _HTMLElement native "HTMLTableCaptionElement" {
+ // To suppress missing implicit constructor warnings.
+ factory TableCaptionElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLTableCaptionElement.HTMLTableCaptionElement')
@DocsEditable
@@ -20626,6 +20939,8 @@ class TableCaptionElement extends _HTMLElement native "HTMLTableCaptionElement"
@DocsEditable
@DomName('HTMLTableCellElement')
class TableCellElement extends _HTMLElement native "HTMLTableCellElement,HTMLTableDataCellElement,HTMLTableHeaderCellElement" {
+ // To suppress missing implicit constructor warnings.
+ factory TableCellElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLTableCellElement.HTMLTableCellElement')
@DocsEditable
@@ -20655,6 +20970,8 @@ class TableCellElement extends _HTMLElement native "HTMLTableCellElement,HTMLTab
@DocsEditable
@DomName('HTMLTableColElement')
class TableColElement extends _HTMLElement native "HTMLTableColElement" {
+ // To suppress missing implicit constructor warnings.
+ factory TableColElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLTableColElement.HTMLTableColElement')
@DocsEditable
@@ -20703,6 +21020,8 @@ class TableElement extends _HTMLElement native "HTMLTableElement" {
@JSName('createTBody')
TableSectionElement _createTBody() native;
+ // To suppress missing implicit constructor warnings.
+ factory TableElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLTableElement.HTMLTableElement')
@DocsEditable
@@ -20791,6 +21110,8 @@ class TableRowElement extends _HTMLElement native "HTMLTableRowElement" {
TableCellElement insertCell(int index) => $dom_insertCell(index);
+ // To suppress missing implicit constructor warnings.
+ factory TableRowElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLTableRowElement.HTMLTableRowElement')
@DocsEditable
@@ -20837,6 +21158,8 @@ class TableSectionElement extends _HTMLElement native "HTMLTableSectionElement"
TableRowElement insertRow(int index) => $dom_insertRow(index);
+ // To suppress missing implicit constructor warnings.
+ factory TableSectionElement._() { throw new UnsupportedError("Not supported"); }
@JSName('rows')
@DomName('HTMLTableSectionElement.rows')
@@ -20958,6 +21281,8 @@ abstract class CustomBindingSyntax {
@Experimental
// https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html#template-element
class TemplateElement extends _HTMLElement native "HTMLTemplateElement" {
+ // To suppress missing implicit constructor warnings.
+ factory TemplateElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLTemplateElement.HTMLTemplateElement')
@DocsEditable
@@ -21187,6 +21512,8 @@ option[template] {
@DomName('Text')
class Text extends CharacterData native "Text" {
factory Text(String data) => document.$dom_createTextNode(data);
+ // To suppress missing implicit constructor warnings.
+ factory Text._() { throw new UnsupportedError("Not supported"); }
@DomName('Text.wholeText')
@DocsEditable
@@ -21211,6 +21538,8 @@ class Text extends CharacterData native "Text" {
@DocsEditable
@DomName('HTMLTextAreaElement')
class TextAreaElement extends _HTMLElement native "HTMLTextAreaElement" {
+ // To suppress missing implicit constructor warnings.
+ factory TextAreaElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLTextAreaElement.HTMLTextAreaElement')
@DocsEditable
@@ -21354,6 +21683,8 @@ class TextEvent extends UIEvent native "TextEvent" {
e.$dom_initTextEvent(type, canBubble, cancelable, view, data);
return e;
}
+ // To suppress missing implicit constructor warnings.
+ factory TextEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('TextEvent.data')
@DocsEditable
@@ -21372,7 +21703,7 @@ class TextEvent extends UIEvent native "TextEvent" {
@DocsEditable
@DomName('TextMetrics')
-class TextMetrics native "TextMetrics" {
+class TextMetrics extends Interceptor native "TextMetrics" {
@DomName('TextMetrics.width')
@DocsEditable
@@ -21388,6 +21719,8 @@ class TextMetrics native "TextMetrics" {
// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#texttrack
@Experimental
class TextTrack extends EventTarget native "TextTrack" {
+ // To suppress missing implicit constructor warnings.
+ factory TextTrack._() { throw new UnsupportedError("Not supported"); }
@DomName('TextTrack.cuechangeEvent')
@DocsEditable
@@ -21453,6 +21786,8 @@ class TextTrack extends EventTarget native "TextTrack" {
// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#texttrackcue
@Experimental
class TextTrackCue extends EventTarget native "TextTrackCue" {
+ // To suppress missing implicit constructor warnings.
+ factory TextTrackCue._() { throw new UnsupportedError("Not supported"); }
@DomName('TextTrackCue.enterEvent')
@DocsEditable
@@ -21629,6 +21964,8 @@ class TextTrackCueList extends Interceptor with ListMixin<TextTrackCue>, Immutab
// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#texttracklist
@Experimental
class TextTrackList extends EventTarget with ListMixin<TextTrack>, ImmutableListMixin<TextTrack> implements JavaScriptIndexingBehavior, List<TextTrack> native "TextTrackList" {
+ // To suppress missing implicit constructor warnings.
+ factory TextTrackList._() { throw new UnsupportedError("Not supported"); }
@DomName('TextTrackList.addtrackEvent')
@DocsEditable
@@ -21712,7 +22049,7 @@ class TextTrackList extends EventTarget with ListMixin<TextTrack>, ImmutableList
@DocsEditable
@DomName('TimeRanges')
@Unstable
-class TimeRanges native "TimeRanges" {
+class TimeRanges extends Interceptor native "TimeRanges" {
@DomName('TimeRanges.length')
@DocsEditable
@@ -21743,6 +22080,8 @@ typedef void TimeoutHandler();
@DocsEditable
@DomName('HTMLTitleElement')
class TitleElement extends _HTMLElement native "HTMLTitleElement" {
+ // To suppress missing implicit constructor warnings.
+ factory TitleElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLTitleElement.HTMLTitleElement')
@DocsEditable
@@ -21757,7 +22096,7 @@ class TitleElement extends _HTMLElement native "HTMLTitleElement" {
@DomName('Touch')
// http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features
@Experimental
-class Touch native "Touch" {
+class Touch extends Interceptor native "Touch" {
@JSName('clientX')
@DomName('Touch.clientX')
@@ -21870,6 +22209,8 @@ class TouchEvent extends UIEvent native "TouchEvent" {
screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey);
return e;
}
+ // To suppress missing implicit constructor warnings.
+ factory TouchEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('TouchEvent.altKey')
@DocsEditable
@@ -22003,6 +22344,8 @@ class TouchList extends Interceptor with ListMixin<Touch>, ImmutableListMixin<To
// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#the-track-element
@Experimental
class TrackElement extends _HTMLElement native "HTMLTrackElement" {
+ // To suppress missing implicit constructor warnings.
+ factory TrackElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLTrackElement.HTMLTrackElement')
@DocsEditable
@@ -22065,6 +22408,8 @@ class TrackElement extends _HTMLElement native "HTMLTrackElement" {
@DomName('TrackEvent')
@Unstable
class TrackEvent extends Event native "TrackEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory TrackEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('TrackEvent.track')
@DocsEditable
@@ -22079,6 +22424,8 @@ class TrackEvent extends Event native "TrackEvent" {
@DocsEditable
@DomName('TransitionEvent')
class TransitionEvent extends Event native "TransitionEvent,WebKitTransitionEvent" {
+ // To suppress missing implicit constructor warnings.
+ factory TransitionEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('TransitionEvent.elapsedTime')
@DocsEditable
@@ -22099,7 +22446,7 @@ class TransitionEvent extends Event native "TransitionEvent,WebKitTransitionEven
@DomName('TreeWalker')
@Unstable
-class TreeWalker native "TreeWalker" {
+class TreeWalker extends Interceptor native "TreeWalker" {
factory TreeWalker(Node root, int whatToShow) {
return document.$dom_createTreeWalker(root, whatToShow, null, false);
}
@@ -22180,6 +22527,8 @@ class UIEvent extends Event native "UIEvent" {
e.$dom_initUIEvent(type, canBubble, cancelable, view, detail);
return e;
}
+ // To suppress missing implicit constructor warnings.
+ factory UIEvent._() { throw new UnsupportedError("Not supported"); }
@JSName('charCode')
@DomName('UIEvent.charCode')
@@ -22270,6 +22619,8 @@ class UIEvent extends Event native "UIEvent" {
@DocsEditable
@DomName('HTMLUListElement')
class UListElement extends _HTMLElement native "HTMLUListElement" {
+ // To suppress missing implicit constructor warnings.
+ factory UListElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLUListElement.HTMLUListElement')
@DocsEditable
@@ -22283,6 +22634,8 @@ class UListElement extends _HTMLElement native "HTMLUListElement" {
@DocsEditable
@DomName('HTMLUnknownElement')
class UnknownElement extends _HTMLElement native "HTMLUnknownElement" {
+ // To suppress missing implicit constructor warnings.
+ factory UnknownElement._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -22290,7 +22643,7 @@ class UnknownElement extends _HTMLElement native "HTMLUnknownElement" {
@DomName('URL')
-class Url native "URL" {
+class Url extends Interceptor native "URL" {
static String createObjectUrl(blob_OR_source_OR_stream) =>
JS('String',
@@ -22309,7 +22662,7 @@ class Url native "URL" {
@DocsEditable
@DomName('ValidityState')
-class ValidityState native "ValidityState" {
+class ValidityState extends Interceptor native "ValidityState" {
@DomName('ValidityState.badInput')
@DocsEditable
@@ -22358,6 +22711,8 @@ class ValidityState native "ValidityState" {
@DomName('HTMLVideoElement')
class VideoElement extends MediaElement implements CanvasImageSource native "HTMLVideoElement" {
+ // To suppress missing implicit constructor warnings.
+ factory VideoElement._() { throw new UnsupportedError("Not supported"); }
@DomName('HTMLVideoElement.HTMLVideoElement')
@DocsEditable
@@ -22516,6 +22871,8 @@ typedef void VoidCallback();
@SupportedBrowser(SupportedBrowser.SAFARI)
@Unstable
class WebSocket extends EventTarget native "WebSocket" {
+ // To suppress missing implicit constructor warnings.
+ factory WebSocket._() { throw new UnsupportedError("Not supported"); }
@DomName('WebSocket.closeEvent')
@DocsEditable
@@ -22716,6 +23073,8 @@ class WheelEvent extends MouseEvent native "WheelEvent,MouseWheelEvent,MouseScro
return event;
}
+ // To suppress missing implicit constructor warnings.
+ factory WheelEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('WheelEvent.DOM_DELTA_LINE')
@DocsEditable
@@ -22923,15 +23282,15 @@ class Window extends EventTarget implements WindowBase native "Window,DOMWindow"
}
/**
- * Returns a Future that completes just before the window is about to
+ * Returns a Future that completes just before the window is about to
* repaint so the user can draw an animation frame.
*
* If you need to later cancel this animation, use [requestAnimationFrame]
* instead.
*
* The [Future] completes to a timestamp that represents a floating
- * point value of the number of milliseconds that have elapsed since the page
- * started to load (which is also the timestamp at this call to
+ * point value of the number of milliseconds that have elapsed since the page
+ * started to load (which is also the timestamp at this call to
* animationFrame).
*
* Note: The code that runs when the future completes should call
@@ -23132,6 +23491,8 @@ class Window extends EventTarget implements WindowBase native "Window,DOMWindow"
* [convertPointFromPageToNode] are supported on the current platform.
*/
static bool get supportsPointConversions => _DomPoint.supported;
+ // To suppress missing implicit constructor warnings.
+ factory Window._() { throw new UnsupportedError("Not supported"); }
@DomName('Window.DOMContentLoadedEvent')
@DocsEditable
@@ -23999,6 +24360,8 @@ class _BeforeUnloadEventStreamProvider implements
// http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#worker
@Experimental // stable
class Worker extends AbstractWorker native "Worker" {
+ // To suppress missing implicit constructor warnings.
+ factory Worker._() { throw new UnsupportedError("Not supported"); }
@DomName('Worker.messageEvent')
@DocsEditable
@@ -24035,7 +24398,7 @@ class Worker extends AbstractWorker native "Worker" {
@DomName('XPathEvaluator')
// http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathEvaluator
@deprecated // experimental
-class XPathEvaluator native "XPathEvaluator" {
+class XPathEvaluator extends Interceptor native "XPathEvaluator" {
@DomName('XPathEvaluator.XPathEvaluator')
@DocsEditable
@@ -24065,7 +24428,7 @@ class XPathEvaluator native "XPathEvaluator" {
@DomName('XPathException')
// http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathException
@deprecated // experimental
-class XPathException native "XPathException" {
+class XPathException extends Interceptor native "XPathException" {
@DomName('XPathException.INVALID_EXPRESSION_ERR')
@DocsEditable
@@ -24102,7 +24465,7 @@ class XPathException native "XPathException" {
@DomName('XPathExpression')
// http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathExpression
@deprecated // experimental
-class XPathExpression native "XPathExpression" {
+class XPathExpression extends Interceptor native "XPathExpression" {
@DomName('XPathExpression.evaluate')
@DocsEditable
@@ -24117,7 +24480,7 @@ class XPathExpression native "XPathExpression" {
@DomName('XPathNSResolver')
// http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathNSResolver
@deprecated // experimental
-class XPathNSResolver native "XPathNSResolver" {
+class XPathNSResolver extends Interceptor native "XPathNSResolver" {
@JSName('lookupNamespaceURI')
@DomName('XPathNSResolver.lookupNamespaceURI')
@@ -24133,7 +24496,7 @@ class XPathNSResolver native "XPathNSResolver" {
@DomName('XPathResult')
// http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult
@deprecated // experimental
-class XPathResult native "XPathResult" {
+class XPathResult extends Interceptor native "XPathResult" {
@DomName('XPathResult.ANY_TYPE')
@DocsEditable
@@ -24220,7 +24583,7 @@ class XPathResult native "XPathResult" {
@DomName('XMLSerializer')
// http://domparsing.spec.whatwg.org/#the-xmlserializer-interface
@deprecated // stable
-class XmlSerializer native "XMLSerializer" {
+class XmlSerializer extends Interceptor native "XMLSerializer" {
@DomName('XMLSerializer.XMLSerializer')
@DocsEditable
@@ -24244,7 +24607,7 @@ class XmlSerializer native "XMLSerializer" {
@SupportedBrowser(SupportedBrowser.FIREFOX)
@SupportedBrowser(SupportedBrowser.SAFARI)
@deprecated // nonstandard
-class XsltProcessor native "XSLTProcessor" {
+class XsltProcessor extends Interceptor native "XSLTProcessor" {
@DomName('XSLTProcessor.XSLTProcessor')
@DocsEditable
@@ -24296,6 +24659,8 @@ class XsltProcessor native "XSLTProcessor" {
@DocsEditable
@DomName('Attr')
class _Attr extends Node native "Attr" {
+ // To suppress missing implicit constructor warnings.
+ factory _Attr._() { throw new UnsupportedError("Not supported"); }
@DomName('Attr.isId')
@DocsEditable
@@ -24329,6 +24694,8 @@ class _Attr extends Node native "Attr" {
// http://dev.w3.org/csswg/cssom/#the-cssstyledeclaration-interface
@deprecated // deprecated
abstract class _CSSPrimitiveValue extends _CSSValue native "CSSPrimitiveValue" {
+ // To suppress missing implicit constructor warnings.
+ factory _CSSPrimitiveValue._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -24339,7 +24706,7 @@ abstract class _CSSPrimitiveValue extends _CSSValue native "CSSPrimitiveValue" {
@DomName('CSSValue')
// http://dev.w3.org/csswg/cssom/
@deprecated // deprecated
-abstract class _CSSValue native "CSSValue" {
+abstract class _CSSValue extends Interceptor native "CSSValue" {
}
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -24348,7 +24715,7 @@ abstract class _CSSValue native "CSSValue" {
@DocsEditable
@DomName('ClientRect')
-class _ClientRect implements Rect native "ClientRect" {
+class _ClientRect extends Interceptor implements Rect native "ClientRect" {
// NOTE! All code below should be common with Rect.
// TODO(blois): implement with mixins when available.
@@ -24536,7 +24903,7 @@ class _ClientRectList extends Interceptor with ListMixin<Rect>, ImmutableListMix
@DomName('Counter')
// http://dev.w3.org/csswg/cssom/
@deprecated // deprecated
-abstract class _Counter native "Counter" {
+abstract class _Counter extends Interceptor native "Counter" {
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -24609,6 +24976,8 @@ class _CssRuleList extends Interceptor with ListMixin<CssRule>, ImmutableListMix
// http://dev.w3.org/csswg/cssom/
@deprecated // deprecated
class _CssValueList extends _CSSValue with ListMixin<_CSSValue>, ImmutableListMixin<_CSSValue> implements JavaScriptIndexingBehavior, List<_CSSValue> native "CSSValueList" {
+ // To suppress missing implicit constructor warnings.
+ factory _CssValueList._() { throw new UnsupportedError("Not supported"); }
@DomName('CSSValueList.length')
@DocsEditable
@@ -24672,7 +25041,7 @@ class _CssValueList extends _CSSValue with ListMixin<_CSSValue>, ImmutableListMi
@SupportedBrowser(SupportedBrowser.CHROME)
@Experimental
// http://www.w3.org/TR/file-system-api/#the-filesystemsync-interface
-abstract class _DOMFileSystemSync native "DOMFileSystemSync" {
+abstract class _DOMFileSystemSync extends Interceptor native "DOMFileSystemSync" {
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -24686,7 +25055,7 @@ abstract class _DOMFileSystemSync native "DOMFileSystemSync" {
@Experimental
// http://www.w3.org/TR/webdatabase/#databasesync
@deprecated // deprecated
-abstract class _DatabaseSync native "DatabaseSync" {
+abstract class _DatabaseSync extends Interceptor native "DatabaseSync" {
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -24698,6 +25067,8 @@ abstract class _DatabaseSync native "DatabaseSync" {
// http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html
@Experimental
abstract class _DedicatedWorkerContext extends _WorkerContext native "DedicatedWorkerContext" {
+ // To suppress missing implicit constructor warnings.
+ factory _DedicatedWorkerContext._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -24709,6 +25080,8 @@ abstract class _DedicatedWorkerContext extends _WorkerContext native "DedicatedW
// http://www.w3.org/TR/file-system-api/#the-directoryentrysync-interface
@Experimental
abstract class _DirectoryEntrySync extends _EntrySync native "DirectoryEntrySync" {
+ // To suppress missing implicit constructor warnings.
+ factory _DirectoryEntrySync._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -24719,7 +25092,7 @@ abstract class _DirectoryEntrySync extends _EntrySync native "DirectoryEntrySync
@DomName('DirectoryReaderSync')
// http://www.w3.org/TR/file-system-api/#idl-def-DirectoryReaderSync
@Experimental
-abstract class _DirectoryReaderSync native "DirectoryReaderSync" {
+abstract class _DirectoryReaderSync extends Interceptor native "DirectoryReaderSync" {
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -24733,7 +25106,7 @@ abstract class _DirectoryReaderSync native "DirectoryReaderSync" {
@Experimental
// http://developer.apple.com/library/safari/#documentation/DataManagement/Reference/DOMWindowAdditionsReference/DOMWindowAdditions/DOMWindowAdditions.html
@Experimental // non-standard
-class _DomPoint native "WebKitPoint" {
+class _DomPoint extends Interceptor native "WebKitPoint" {
@DomName('WebKitPoint.DOMPoint')
@DocsEditable
@@ -24762,6 +25135,8 @@ class _DomPoint native "WebKitPoint" {
@DomName('Entity')
@deprecated // deprecated
class _Entity extends Node native "Entity" {
+ // To suppress missing implicit constructor warnings.
+ factory _Entity._() { throw new UnsupportedError("Not supported"); }
@DomName('Entity.notationName')
@DocsEditable
@@ -24910,7 +25285,7 @@ class _EntryArraySync extends Interceptor with ListMixin<_EntrySync>, ImmutableL
@DomName('EntrySync')
// http://www.w3.org/TR/file-system-api/#idl-def-EntrySync
@Experimental
-abstract class _EntrySync native "EntrySync" {
+abstract class _EntrySync extends Interceptor native "EntrySync" {
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -24922,6 +25297,8 @@ abstract class _EntrySync native "EntrySync" {
// http://www.w3.org/TR/file-system-api/#the-fileentrysync-interface
@Experimental
abstract class _FileEntrySync extends _EntrySync native "FileEntrySync" {
+ // To suppress missing implicit constructor warnings.
+ factory _FileEntrySync._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -24932,7 +25309,7 @@ abstract class _FileEntrySync extends _EntrySync native "FileEntrySync" {
@DomName('FileReaderSync')
// http://www.w3.org/TR/FileAPI/#FileReaderSync
@Experimental
-abstract class _FileReaderSync native "FileReaderSync" {
+abstract class _FileReaderSync extends Interceptor native "FileReaderSync" {
@DomName('FileReaderSync.FileReaderSync')
@DocsEditable
@@ -24950,7 +25327,7 @@ abstract class _FileReaderSync native "FileReaderSync" {
@DomName('FileWriterSync')
// http://www.w3.org/TR/file-writer-api/#idl-def-FileWriterSync
@Experimental
-abstract class _FileWriterSync native "FileWriterSync" {
+abstract class _FileWriterSync extends Interceptor native "FileWriterSync" {
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -25025,6 +25402,8 @@ class _GamepadList extends Interceptor with ListMixin<Gamepad>, ImmutableListMix
// http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#the-applet-element
@deprecated // deprecated
abstract class _HTMLAppletElement extends _HTMLElement native "HTMLAppletElement" {
+ // To suppress missing implicit constructor warnings.
+ factory _HTMLAppletElement._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -25036,6 +25415,8 @@ abstract class _HTMLAppletElement extends _HTMLElement native "HTMLAppletElement
// http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#basefont
@deprecated // deprecated
abstract class _HTMLBaseFontElement extends _HTMLElement native "HTMLBaseFontElement" {
+ // To suppress missing implicit constructor warnings.
+ factory _HTMLBaseFontElement._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -25047,6 +25428,8 @@ abstract class _HTMLBaseFontElement extends _HTMLElement native "HTMLBaseFontEle
// http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#dir
@deprecated // deprecated
abstract class _HTMLDirectoryElement extends _HTMLElement native "HTMLDirectoryElement" {
+ // To suppress missing implicit constructor warnings.
+ factory _HTMLDirectoryElement._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -25058,6 +25441,8 @@ abstract class _HTMLDirectoryElement extends _HTMLElement native "HTMLDirectoryE
// http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#htmlfontelement
@deprecated // deprecated
abstract class _HTMLFontElement extends _HTMLElement native "HTMLFontElement" {
+ // To suppress missing implicit constructor warnings.
+ factory _HTMLFontElement._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -25069,6 +25454,8 @@ abstract class _HTMLFontElement extends _HTMLElement native "HTMLFontElement" {
// http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#htmlframeelement
@deprecated // deprecated
abstract class _HTMLFrameElement extends _HTMLElement native "HTMLFrameElement" {
+ // To suppress missing implicit constructor warnings.
+ factory _HTMLFrameElement._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -25080,6 +25467,8 @@ abstract class _HTMLFrameElement extends _HTMLElement native "HTMLFrameElement"
// http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#frameset
@deprecated // deprecated
abstract class _HTMLFrameSetElement extends _HTMLElement native "HTMLFrameSetElement" {
+ // To suppress missing implicit constructor warnings.
+ factory _HTMLFrameSetElement._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -25091,6 +25480,8 @@ abstract class _HTMLFrameSetElement extends _HTMLElement native "HTMLFrameSetEle
// http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#the-marquee-element
@deprecated // deprecated
abstract class _HTMLMarqueeElement extends _HTMLElement native "HTMLMarqueeElement" {
+ // To suppress missing implicit constructor warnings.
+ factory _HTMLMarqueeElement._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -25191,7 +25582,7 @@ class _NamedNodeMap extends Interceptor with ListMixin<Node>, ImmutableListMixin
@DocsEditable
@DomName('PagePopupController')
@deprecated // nonstandard
-abstract class _PagePopupController native "PagePopupController" {
+abstract class _PagePopupController extends Interceptor native "PagePopupController" {
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -25202,7 +25593,7 @@ abstract class _PagePopupController native "PagePopupController" {
@DomName('RGBColor')
// http://dev.w3.org/csswg/cssom/
@deprecated // deprecated
-abstract class _RGBColor native "RGBColor" {
+abstract class _RGBColor extends Interceptor native "RGBColor" {
}
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -25222,7 +25613,7 @@ abstract class _RGBColor native "RGBColor" {
@DomName('Rect')
// http://dev.w3.org/csswg/cssom/
@deprecated // deprecated
-abstract class _Rect native "Rect" {
+abstract class _Rect extends Interceptor native "Rect" {
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -25234,6 +25625,8 @@ abstract class _Rect native "Rect" {
// http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#shared-workers-and-the-sharedworker-interface
@Experimental
abstract class _SharedWorker extends AbstractWorker native "SharedWorker" {
+ // To suppress missing implicit constructor warnings.
+ factory _SharedWorker._() { throw new UnsupportedError("Not supported"); }
@DomName('SharedWorker.SharedWorker')
@DocsEditable
@@ -25256,6 +25649,8 @@ abstract class _SharedWorker extends AbstractWorker native "SharedWorker" {
// http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#shared-workers-and-the-sharedworkerglobalscope-interface
@Experimental // nonstandard
abstract class _SharedWorkerContext extends _WorkerContext native "SharedWorkerContext" {
+ // To suppress missing implicit constructor warnings.
+ factory _SharedWorkerContext._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -25458,6 +25853,8 @@ class _StyleSheetList extends Interceptor with ListMixin<StyleSheet>, ImmutableL
// http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#WorkerGlobalScope-partial
@Experimental // stable
abstract class _WorkerContext extends EventTarget native "WorkerContext" {
+ // To suppress missing implicit constructor warnings.
+ factory _WorkerContext._() { throw new UnsupportedError("Not supported"); }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -25468,7 +25865,7 @@ abstract class _WorkerContext extends EventTarget native "WorkerContext" {
@DomName('WorkerLocation')
// http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#workerlocation
@Experimental
-abstract class _WorkerLocation native "WorkerLocation" {
+abstract class _WorkerLocation extends Interceptor native "WorkerLocation" {
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -25479,7 +25876,7 @@ abstract class _WorkerLocation native "WorkerLocation" {
@DomName('WorkerNavigator')
// http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#workernavigator
@Experimental
-abstract class _WorkerNavigator native "WorkerNavigator" {
+abstract class _WorkerNavigator extends Interceptor native "WorkerNavigator" {
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698