[dart:html] Make Native web classes extend JavaScriptObject

Now that JavaScriptObject is the new parent class of the old
JavaScriptObject (now called LegacyJavaScriptObject), web classes
should extend it instead.

Change-Id: I94613177bd073e131bff70d8e00e4e6ae8e8949f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216275
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Riley Porter <rileyporter@google.com>
Commit-Queue: Srujan Gaddam <srujzs@google.com>
This commit is contained in:
Srujan Gaddam
2021-12-10 18:36:00 +00:00
committed by Commit Bot
parent 4c924bb669
commit 6f4f2f5f12
13 changed files with 378 additions and 375 deletions
File diff suppressed because it is too large Load Diff
@@ -75,7 +75,7 @@ import 'dart:_native_typed_data';
import 'dart:typed_data';
import 'dart:_js_helper' show Creates, Returns, JSName, Native;
import 'dart:_foreign_helper' show JS;
import 'dart:_interceptors' show Interceptor, JSExtendableArray;
import 'dart:_interceptors' show JavaScriptObject, JSExtendableArray;
import 'dart:_js_helper' show convertDartClosureToJS;
// 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
@@ -205,7 +205,7 @@ const _annotation_Returns_IDBKey = const Returns(_idbKey);
@Unstable()
@Native("IDBCursor")
class Cursor extends Interceptor {
class Cursor extends JavaScriptObject {
Future delete() {
try {
return _completeRequest(_delete());
@@ -448,7 +448,7 @@ typedef void ObserverCallback(ObserverChanges changes);
@SupportedBrowser(SupportedBrowser.IE, '10')
@Unstable()
@Native("IDBFactory")
class IdbFactory extends Interceptor {
class IdbFactory extends JavaScriptObject {
/**
* Checks to see if Indexed DB is supported on the current platform.
*/
@@ -554,7 +554,7 @@ Future<T> _completeRequest<T>(Request request) {
@Unstable()
@Native("IDBIndex")
class Index extends Interceptor {
class Index extends JavaScriptObject {
Future<int> count([key_OR_range]) {
try {
var request = _count(key_OR_range);
@@ -696,7 +696,7 @@ class Index extends Interceptor {
@Unstable()
@Native("IDBKeyRange")
class KeyRange extends Interceptor {
class KeyRange extends JavaScriptObject {
factory KeyRange.only(/*Key*/ value) =>
_KeyRangeFactoryProvider.createKeyRange_only(value);
@@ -747,7 +747,7 @@ class KeyRange extends Interceptor {
@Unstable()
@Native("IDBObjectStore")
class ObjectStore extends Interceptor {
class ObjectStore extends JavaScriptObject {
Future add(value, [key]) {
try {
var request;
@@ -1012,7 +1012,7 @@ class ObjectStore extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("IDBObservation")
class Observation extends Interceptor {
class Observation extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Observation._() {
throw new UnsupportedError("Not supported");
@@ -1029,7 +1029,7 @@ class Observation extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("IDBObserver")
class Observer extends Interceptor {
class Observer extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Observer._() {
throw new UnsupportedError("Not supported");
@@ -1058,7 +1058,7 @@ class Observer extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("IDBObserverChanges")
class ObserverChanges extends Interceptor {
class ObserverChanges extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory ObserverChanges._() {
throw new UnsupportedError("Not supported");
+32 -32
View File
@@ -17,7 +17,7 @@ import 'dart:html';
import 'dart:html_common';
import 'dart:_js_helper' show Creates, Returns, JSName, Native;
import 'dart:_foreign_helper' show JS;
import 'dart:_interceptors' show Interceptor;
import 'dart:_interceptors' show JavaScriptObject;
// DO NOT EDIT - unless you are editing documentation as per:
// https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
// Auto-generated dart:svg library.
@@ -66,7 +66,7 @@ class AElement extends GraphicsElement implements UriReference {
@Unstable()
@Native("SVGAngle")
class Angle extends Interceptor {
class Angle extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Angle._() {
throw new UnsupportedError("Not supported");
@@ -196,7 +196,7 @@ class AnimateTransformElement extends AnimationElement {
@Unstable()
@Native("SVGAnimatedAngle")
class AnimatedAngle extends Interceptor {
class AnimatedAngle extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory AnimatedAngle._() {
throw new UnsupportedError("Not supported");
@@ -212,7 +212,7 @@ class AnimatedAngle extends Interceptor {
@Unstable()
@Native("SVGAnimatedBoolean")
class AnimatedBoolean extends Interceptor {
class AnimatedBoolean extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory AnimatedBoolean._() {
throw new UnsupportedError("Not supported");
@@ -230,7 +230,7 @@ class AnimatedBoolean extends Interceptor {
@Unstable()
@Native("SVGAnimatedEnumeration")
class AnimatedEnumeration extends Interceptor {
class AnimatedEnumeration extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory AnimatedEnumeration._() {
throw new UnsupportedError("Not supported");
@@ -248,7 +248,7 @@ class AnimatedEnumeration extends Interceptor {
@Unstable()
@Native("SVGAnimatedInteger")
class AnimatedInteger extends Interceptor {
class AnimatedInteger extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory AnimatedInteger._() {
throw new UnsupportedError("Not supported");
@@ -266,7 +266,7 @@ class AnimatedInteger extends Interceptor {
@Unstable()
@Native("SVGAnimatedLength")
class AnimatedLength extends Interceptor {
class AnimatedLength extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory AnimatedLength._() {
throw new UnsupportedError("Not supported");
@@ -282,7 +282,7 @@ class AnimatedLength extends Interceptor {
@Unstable()
@Native("SVGAnimatedLengthList")
class AnimatedLengthList extends Interceptor {
class AnimatedLengthList extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory AnimatedLengthList._() {
throw new UnsupportedError("Not supported");
@@ -298,7 +298,7 @@ class AnimatedLengthList extends Interceptor {
@Unstable()
@Native("SVGAnimatedNumber")
class AnimatedNumber extends Interceptor {
class AnimatedNumber extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory AnimatedNumber._() {
throw new UnsupportedError("Not supported");
@@ -316,7 +316,7 @@ class AnimatedNumber extends Interceptor {
@Unstable()
@Native("SVGAnimatedNumberList")
class AnimatedNumberList extends Interceptor {
class AnimatedNumberList extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory AnimatedNumberList._() {
throw new UnsupportedError("Not supported");
@@ -332,7 +332,7 @@ class AnimatedNumberList extends Interceptor {
@Unstable()
@Native("SVGAnimatedPreserveAspectRatio")
class AnimatedPreserveAspectRatio extends Interceptor {
class AnimatedPreserveAspectRatio extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory AnimatedPreserveAspectRatio._() {
throw new UnsupportedError("Not supported");
@@ -348,7 +348,7 @@ class AnimatedPreserveAspectRatio extends Interceptor {
@Unstable()
@Native("SVGAnimatedRect")
class AnimatedRect extends Interceptor {
class AnimatedRect extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory AnimatedRect._() {
throw new UnsupportedError("Not supported");
@@ -364,7 +364,7 @@ class AnimatedRect extends Interceptor {
@Unstable()
@Native("SVGAnimatedString")
class AnimatedString extends Interceptor {
class AnimatedString extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory AnimatedString._() {
throw new UnsupportedError("Not supported");
@@ -382,7 +382,7 @@ class AnimatedString extends Interceptor {
@Unstable()
@Native("SVGAnimatedTransformList")
class AnimatedTransformList extends Interceptor {
class AnimatedTransformList extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory AnimatedTransformList._() {
throw new UnsupportedError("Not supported");
@@ -1785,7 +1785,7 @@ class FilterElement extends SvgElement implements UriReference {
// BSD-style license that can be found in the LICENSE file.
@Unstable()
abstract class FilterPrimitiveStandardAttributes extends Interceptor {
abstract class FilterPrimitiveStandardAttributes extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory FilterPrimitiveStandardAttributes._() {
throw new UnsupportedError("Not supported");
@@ -1806,7 +1806,7 @@ abstract class FilterPrimitiveStandardAttributes extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Unstable()
abstract class FitToViewBox extends Interceptor {
abstract class FitToViewBox extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory FitToViewBox._() {
throw new UnsupportedError("Not supported");
@@ -1986,7 +1986,7 @@ class ImageElement extends GraphicsElement implements UriReference {
@Unstable()
@Native("SVGLength")
class Length extends Interceptor {
class Length extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Length._() {
throw new UnsupportedError("Not supported");
@@ -2038,7 +2038,7 @@ class Length extends Interceptor {
@Unstable()
@Native("SVGLengthList")
class LengthList extends Interceptor
class LengthList extends JavaScriptObject
with ListMixin<Length>, ImmutableListMixin<Length>
implements List<Length> {
// To suppress missing implicit constructor warnings.
@@ -2271,7 +2271,7 @@ class MaskElement extends SvgElement implements Tests {
@Unstable()
@Native("SVGMatrix")
class Matrix extends Interceptor {
class Matrix extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Matrix._() {
throw new UnsupportedError("Not supported");
@@ -2347,7 +2347,7 @@ class MetadataElement extends SvgElement {
@Unstable()
@Native("SVGNumber")
class Number extends Interceptor {
class Number extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Number._() {
throw new UnsupportedError("Not supported");
@@ -2363,7 +2363,7 @@ class Number extends Interceptor {
@Unstable()
@Native("SVGNumberList")
class NumberList extends Interceptor
class NumberList extends JavaScriptObject
with ListMixin<Number>, ImmutableListMixin<Number>
implements List<Number> {
// To suppress missing implicit constructor warnings.
@@ -2514,7 +2514,7 @@ class PatternElement extends SvgElement
@Unstable()
@Native("SVGPoint")
class Point extends Interceptor {
class Point extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Point._() {
throw new UnsupportedError("Not supported");
@@ -2536,7 +2536,7 @@ class Point extends Interceptor {
@Unstable()
@Native("SVGPointList")
class PointList extends Interceptor {
class PointList extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory PointList._() {
throw new UnsupportedError("Not supported");
@@ -2620,7 +2620,7 @@ class PolylineElement extends GeometryElement {
@Unstable()
@Native("SVGPreserveAspectRatio")
class PreserveAspectRatio extends Interceptor {
class PreserveAspectRatio extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory PreserveAspectRatio._() {
throw new UnsupportedError("Not supported");
@@ -2702,7 +2702,7 @@ class RadialGradientElement extends _GradientElement {
@Unstable()
@Native("SVGRect")
class Rect extends Interceptor {
class Rect extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Rect._() {
throw new UnsupportedError("Not supported");
@@ -2846,7 +2846,7 @@ class StopElement extends SvgElement {
@Unstable()
@Native("SVGStringList")
class StringList extends Interceptor
class StringList extends JavaScriptObject
with ListMixin<String>, ImmutableListMixin<String>
implements List<String> {
// To suppress missing implicit constructor warnings.
@@ -3619,7 +3619,7 @@ class TSpanElement extends TextPositioningElement {
// BSD-style license that can be found in the LICENSE file.
@Unstable()
abstract class Tests extends Interceptor {
abstract class Tests extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Tests._() {
throw new UnsupportedError("Not supported");
@@ -3791,7 +3791,7 @@ class TitleElement extends SvgElement {
@Unstable()
@Native("SVGTransform")
class Transform extends Interceptor {
class Transform extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Transform._() {
throw new UnsupportedError("Not supported");
@@ -3835,7 +3835,7 @@ class Transform extends Interceptor {
@Unstable()
@Native("SVGTransformList")
class TransformList extends Interceptor
class TransformList extends JavaScriptObject
with ListMixin<Transform>, ImmutableListMixin<Transform>
implements List<Transform> {
// To suppress missing implicit constructor warnings.
@@ -3917,7 +3917,7 @@ class TransformList extends Interceptor
@Unstable()
@Native("SVGUnitTypes")
class UnitTypes extends Interceptor {
class UnitTypes extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory UnitTypes._() {
throw new UnsupportedError("Not supported");
@@ -3934,7 +3934,7 @@ class UnitTypes extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Unstable()
abstract class UriReference extends Interceptor {
abstract class UriReference extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory UriReference._() {
throw new UnsupportedError("Not supported");
@@ -4013,7 +4013,7 @@ class ViewElement extends SvgElement implements FitToViewBox, ZoomAndPan {
// BSD-style license that can be found in the LICENSE file.
@Unstable()
abstract class ZoomAndPan extends Interceptor {
abstract class ZoomAndPan extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory ZoomAndPan._() {
throw new UnsupportedError("Not supported");
@@ -13,7 +13,7 @@ import 'dart:html_common';
import 'dart:_native_typed_data';
import 'dart:typed_data';
import 'dart:_foreign_helper' show JS;
import 'dart:_interceptors' show Interceptor;
import 'dart:_interceptors' show JavaScriptObject;
// DO NOT EDIT - unless you are editing documentation as per:
// https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
// Auto-generated dart:audio library.
@@ -81,7 +81,7 @@ class AnalyserNode extends AudioNode {
// BSD-style license that can be found in the LICENSE file.
@Native("AudioBuffer")
class AudioBuffer extends Interceptor {
class AudioBuffer extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory AudioBuffer._() {
throw new UnsupportedError("Not supported");
@@ -268,7 +268,7 @@ class AudioDestinationNode extends AudioNode {
// BSD-style license that can be found in the LICENSE file.
@Native("AudioListener")
class AudioListener extends Interceptor {
class AudioListener extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory AudioListener._() {
throw new UnsupportedError("Not supported");
@@ -343,7 +343,7 @@ class AudioNode extends EventTarget {
// BSD-style license that can be found in the LICENSE file.
@Native("AudioParam")
class AudioParam extends Interceptor {
class AudioParam extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory AudioParam._() {
throw new UnsupportedError("Not supported");
@@ -379,7 +379,7 @@ class AudioParam extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("AudioParamMap")
class AudioParamMap extends Interceptor with MapMixin<String, dynamic> {
class AudioParamMap extends JavaScriptObject with MapMixin<String, dynamic> {
// To suppress missing implicit constructor warnings.
factory AudioParamMap._() {
throw new UnsupportedError("Not supported");
@@ -495,7 +495,7 @@ class AudioScheduledSourceNode extends AudioNode {
// BSD-style license that can be found in the LICENSE file.
@Native("AudioTrack")
class AudioTrack extends Interceptor {
class AudioTrack extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory AudioTrack._() {
throw new UnsupportedError("Not supported");
@@ -589,7 +589,7 @@ class AudioWorkletNode extends AudioNode {
// BSD-style license that can be found in the LICENSE file.
@Native("AudioWorkletProcessor")
class AudioWorkletProcessor extends Interceptor {
class AudioWorkletProcessor extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory AudioWorkletProcessor._() {
throw new UnsupportedError("Not supported");
@@ -1196,7 +1196,7 @@ class PannerNode extends AudioNode {
// BSD-style license that can be found in the LICENSE file.
@Native("PeriodicWave")
class PeriodicWave extends Interceptor {
class PeriodicWave extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory PeriodicWave._() {
throw new UnsupportedError("Not supported");
+54 -53
View File
@@ -15,7 +15,7 @@ import 'dart:typed_data';
import 'dart:_js_helper'
show Creates, JSName, Native, Returns, convertDartClosureToJS;
import 'dart:_foreign_helper' show JS;
import 'dart:_interceptors' show Interceptor, JSExtendableArray;
import 'dart:_interceptors' show JavaScriptObject, JSExtendableArray;
// DO NOT EDIT - unless you are editing documentation as per:
// https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
// Auto-generated dart:web_gl library.
@@ -26,7 +26,7 @@ import 'dart:_interceptors' show Interceptor, JSExtendableArray;
@Unstable()
@Native("WebGLActiveInfo")
class ActiveInfo extends Interceptor {
class ActiveInfo extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory ActiveInfo._() {
throw new UnsupportedError("Not supported");
@@ -43,7 +43,7 @@ class ActiveInfo extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("ANGLEInstancedArrays,ANGLE_instanced_arrays")
class AngleInstancedArrays extends Interceptor {
class AngleInstancedArrays extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory AngleInstancedArrays._() {
throw new UnsupportedError("Not supported");
@@ -68,7 +68,7 @@ class AngleInstancedArrays extends Interceptor {
@Unstable()
@Native("WebGLBuffer")
class Buffer extends Interceptor {
class Buffer extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Buffer._() {
throw new UnsupportedError("Not supported");
@@ -79,7 +79,7 @@ class Buffer extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLCanvas")
class Canvas extends Interceptor {
class Canvas extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Canvas._() {
throw new UnsupportedError("Not supported");
@@ -97,7 +97,7 @@ class Canvas extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLColorBufferFloat")
class ColorBufferFloat extends Interceptor {
class ColorBufferFloat extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory ColorBufferFloat._() {
throw new UnsupportedError("Not supported");
@@ -108,7 +108,7 @@ class ColorBufferFloat extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLCompressedTextureASTC")
class CompressedTextureAstc extends Interceptor {
class CompressedTextureAstc extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory CompressedTextureAstc._() {
throw new UnsupportedError("Not supported");
@@ -175,7 +175,7 @@ class CompressedTextureAstc extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLCompressedTextureATC,WEBGL_compressed_texture_atc")
class CompressedTextureAtc extends Interceptor {
class CompressedTextureAtc extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory CompressedTextureAtc._() {
throw new UnsupportedError("Not supported");
@@ -192,7 +192,7 @@ class CompressedTextureAtc extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLCompressedTextureETC1,WEBGL_compressed_texture_etc1")
class CompressedTextureETC1 extends Interceptor {
class CompressedTextureETC1 extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory CompressedTextureETC1._() {
throw new UnsupportedError("Not supported");
@@ -205,7 +205,7 @@ class CompressedTextureETC1 extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLCompressedTextureETC")
class CompressedTextureEtc extends Interceptor {
class CompressedTextureEtc extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory CompressedTextureEtc._() {
throw new UnsupportedError("Not supported");
@@ -236,7 +236,7 @@ class CompressedTextureEtc extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLCompressedTexturePVRTC,WEBGL_compressed_texture_pvrtc")
class CompressedTexturePvrtc extends Interceptor {
class CompressedTexturePvrtc extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory CompressedTexturePvrtc._() {
throw new UnsupportedError("Not supported");
@@ -255,7 +255,7 @@ class CompressedTexturePvrtc extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLCompressedTextureS3TC,WEBGL_compressed_texture_s3tc")
class CompressedTextureS3TC extends Interceptor {
class CompressedTextureS3TC extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory CompressedTextureS3TC._() {
throw new UnsupportedError("Not supported");
@@ -274,7 +274,7 @@ class CompressedTextureS3TC extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLCompressedTextureS3TCsRGB")
class CompressedTextureS3TCsRgb extends Interceptor {
class CompressedTextureS3TCsRgb extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory CompressedTextureS3TCsRgb._() {
throw new UnsupportedError("Not supported");
@@ -319,7 +319,7 @@ class ContextEvent extends Event {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLDebugRendererInfo,WEBGL_debug_renderer_info")
class DebugRendererInfo extends Interceptor {
class DebugRendererInfo extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory DebugRendererInfo._() {
throw new UnsupportedError("Not supported");
@@ -334,7 +334,7 @@ class DebugRendererInfo extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLDebugShaders,WEBGL_debug_shaders")
class DebugShaders extends Interceptor {
class DebugShaders extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory DebugShaders._() {
throw new UnsupportedError("Not supported");
@@ -347,7 +347,7 @@ class DebugShaders extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLDepthTexture,WEBGL_depth_texture")
class DepthTexture extends Interceptor {
class DepthTexture extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory DepthTexture._() {
throw new UnsupportedError("Not supported");
@@ -360,7 +360,7 @@ class DepthTexture extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLDrawBuffers,WEBGL_draw_buffers")
class DrawBuffers extends Interceptor {
class DrawBuffers extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory DrawBuffers._() {
throw new UnsupportedError("Not supported");
@@ -374,7 +374,7 @@ class DrawBuffers extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("EXTsRGB,EXT_sRGB")
class EXTsRgb extends Interceptor {
class EXTsRgb extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory EXTsRgb._() {
throw new UnsupportedError("Not supported");
@@ -393,7 +393,7 @@ class EXTsRgb extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("EXTBlendMinMax,EXT_blend_minmax")
class ExtBlendMinMax extends Interceptor {
class ExtBlendMinMax extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory ExtBlendMinMax._() {
throw new UnsupportedError("Not supported");
@@ -408,7 +408,7 @@ class ExtBlendMinMax extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("EXTColorBufferFloat")
class ExtColorBufferFloat extends Interceptor {
class ExtColorBufferFloat extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory ExtColorBufferFloat._() {
throw new UnsupportedError("Not supported");
@@ -419,7 +419,7 @@ class ExtColorBufferFloat extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("EXTColorBufferHalfFloat")
class ExtColorBufferHalfFloat extends Interceptor {
class ExtColorBufferHalfFloat extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory ExtColorBufferHalfFloat._() {
throw new UnsupportedError("Not supported");
@@ -430,7 +430,7 @@ class ExtColorBufferHalfFloat extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("EXTDisjointTimerQuery")
class ExtDisjointTimerQuery extends Interceptor {
class ExtDisjointTimerQuery extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory ExtDisjointTimerQuery._() {
throw new UnsupportedError("Not supported");
@@ -479,7 +479,7 @@ class ExtDisjointTimerQuery extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("EXTDisjointTimerQueryWebGL2")
class ExtDisjointTimerQueryWebGL2 extends Interceptor {
class ExtDisjointTimerQueryWebGL2 extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory ExtDisjointTimerQueryWebGL2._() {
throw new UnsupportedError("Not supported");
@@ -501,7 +501,7 @@ class ExtDisjointTimerQueryWebGL2 extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("EXTFragDepth,EXT_frag_depth")
class ExtFragDepth extends Interceptor {
class ExtFragDepth extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory ExtFragDepth._() {
throw new UnsupportedError("Not supported");
@@ -512,7 +512,7 @@ class ExtFragDepth extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("EXTShaderTextureLOD,EXT_shader_texture_lod")
class ExtShaderTextureLod extends Interceptor {
class ExtShaderTextureLod extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory ExtShaderTextureLod._() {
throw new UnsupportedError("Not supported");
@@ -523,7 +523,7 @@ class ExtShaderTextureLod extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("EXTTextureFilterAnisotropic,EXT_texture_filter_anisotropic")
class ExtTextureFilterAnisotropic extends Interceptor {
class ExtTextureFilterAnisotropic extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory ExtTextureFilterAnisotropic._() {
throw new UnsupportedError("Not supported");
@@ -539,7 +539,7 @@ class ExtTextureFilterAnisotropic extends Interceptor {
@Unstable()
@Native("WebGLFramebuffer")
class Framebuffer extends Interceptor {
class Framebuffer extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Framebuffer._() {
throw new UnsupportedError("Not supported");
@@ -550,7 +550,7 @@ class Framebuffer extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLGetBufferSubDataAsync")
class GetBufferSubDataAsync extends Interceptor {
class GetBufferSubDataAsync extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory GetBufferSubDataAsync._() {
throw new UnsupportedError("Not supported");
@@ -566,7 +566,7 @@ class GetBufferSubDataAsync extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLLoseContext,WebGLExtensionLoseContext,WEBGL_lose_context")
class LoseContext extends Interceptor {
class LoseContext extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory LoseContext._() {
throw new UnsupportedError("Not supported");
@@ -581,7 +581,7 @@ class LoseContext extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("OESElementIndexUint,OES_element_index_uint")
class OesElementIndexUint extends Interceptor {
class OesElementIndexUint extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory OesElementIndexUint._() {
throw new UnsupportedError("Not supported");
@@ -592,7 +592,7 @@ class OesElementIndexUint extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("OESStandardDerivatives,OES_standard_derivatives")
class OesStandardDerivatives extends Interceptor {
class OesStandardDerivatives extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory OesStandardDerivatives._() {
throw new UnsupportedError("Not supported");
@@ -605,7 +605,7 @@ class OesStandardDerivatives extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("OESTextureFloat,OES_texture_float")
class OesTextureFloat extends Interceptor {
class OesTextureFloat extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory OesTextureFloat._() {
throw new UnsupportedError("Not supported");
@@ -616,7 +616,7 @@ class OesTextureFloat extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("OESTextureFloatLinear,OES_texture_float_linear")
class OesTextureFloatLinear extends Interceptor {
class OesTextureFloatLinear extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory OesTextureFloatLinear._() {
throw new UnsupportedError("Not supported");
@@ -627,7 +627,7 @@ class OesTextureFloatLinear extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("OESTextureHalfFloat,OES_texture_half_float")
class OesTextureHalfFloat extends Interceptor {
class OesTextureHalfFloat extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory OesTextureHalfFloat._() {
throw new UnsupportedError("Not supported");
@@ -640,7 +640,7 @@ class OesTextureHalfFloat extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("OESTextureHalfFloatLinear,OES_texture_half_float_linear")
class OesTextureHalfFloatLinear extends Interceptor {
class OesTextureHalfFloatLinear extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory OesTextureHalfFloatLinear._() {
throw new UnsupportedError("Not supported");
@@ -651,7 +651,7 @@ class OesTextureHalfFloatLinear extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("OESVertexArrayObject,OES_vertex_array_object")
class OesVertexArrayObject extends Interceptor {
class OesVertexArrayObject extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory OesVertexArrayObject._() {
throw new UnsupportedError("Not supported");
@@ -677,7 +677,7 @@ class OesVertexArrayObject extends Interceptor {
@Unstable()
@Native("WebGLProgram")
class Program extends Interceptor {
class Program extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Program._() {
throw new UnsupportedError("Not supported");
@@ -688,7 +688,7 @@ class Program extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLQuery")
class Query extends Interceptor {
class Query extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Query._() {
throw new UnsupportedError("Not supported");
@@ -700,7 +700,7 @@ class Query extends Interceptor {
@Unstable()
@Native("WebGLRenderbuffer")
class Renderbuffer extends Interceptor {
class Renderbuffer extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Renderbuffer._() {
throw new UnsupportedError("Not supported");
@@ -714,7 +714,8 @@ class Renderbuffer extends Interceptor {
@SupportedBrowser(SupportedBrowser.FIREFOX)
@Unstable()
@Native("WebGLRenderingContext")
class RenderingContext extends Interceptor implements CanvasRenderingContext {
class RenderingContext extends JavaScriptObject
implements CanvasRenderingContext {
// To suppress missing implicit constructor warnings.
factory RenderingContext._() {
throw new UnsupportedError("Not supported");
@@ -1356,7 +1357,7 @@ class RenderingContext extends Interceptor implements CanvasRenderingContext {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGL2RenderingContext")
class RenderingContext2 extends Interceptor
class RenderingContext2 extends JavaScriptObject
implements _WebGL2RenderingContextBase, _WebGLRenderingContextBase {
// To suppress missing implicit constructor warnings.
factory RenderingContext2._() {
@@ -2834,7 +2835,7 @@ class RenderingContext2 extends Interceptor
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLSampler")
class Sampler extends Interceptor {
class Sampler extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Sampler._() {
throw new UnsupportedError("Not supported");
@@ -2845,7 +2846,7 @@ class Sampler extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLShader")
class Shader extends Interceptor {
class Shader extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Shader._() {
throw new UnsupportedError("Not supported");
@@ -2856,7 +2857,7 @@ class Shader extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLShaderPrecisionFormat")
class ShaderPrecisionFormat extends Interceptor {
class ShaderPrecisionFormat extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory ShaderPrecisionFormat._() {
throw new UnsupportedError("Not supported");
@@ -2873,7 +2874,7 @@ class ShaderPrecisionFormat extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLSync")
class Sync extends Interceptor {
class Sync extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Sync._() {
throw new UnsupportedError("Not supported");
@@ -2884,7 +2885,7 @@ class Sync extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLTexture")
class Texture extends Interceptor {
class Texture extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory Texture._() {
throw new UnsupportedError("Not supported");
@@ -2903,7 +2904,7 @@ class Texture extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLTimerQueryEXT")
class TimerQueryExt extends Interceptor {
class TimerQueryExt extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory TimerQueryExt._() {
throw new UnsupportedError("Not supported");
@@ -2914,7 +2915,7 @@ class TimerQueryExt extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLTransformFeedback")
class TransformFeedback extends Interceptor {
class TransformFeedback extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory TransformFeedback._() {
throw new UnsupportedError("Not supported");
@@ -2925,7 +2926,7 @@ class TransformFeedback extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLUniformLocation")
class UniformLocation extends Interceptor {
class UniformLocation extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory UniformLocation._() {
throw new UnsupportedError("Not supported");
@@ -2936,7 +2937,7 @@ class UniformLocation extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLVertexArrayObject")
class VertexArrayObject extends Interceptor {
class VertexArrayObject extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory VertexArrayObject._() {
throw new UnsupportedError("Not supported");
@@ -2947,7 +2948,7 @@ class VertexArrayObject extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGLVertexArrayObjectOES")
class VertexArrayObjectOes extends Interceptor {
class VertexArrayObjectOes extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory VertexArrayObjectOes._() {
throw new UnsupportedError("Not supported");
@@ -4161,7 +4162,7 @@ abstract class WebGL {
// BSD-style license that can be found in the LICENSE file.
@Native("WebGL2RenderingContextBase")
abstract class _WebGL2RenderingContextBase extends Interceptor
abstract class _WebGL2RenderingContextBase extends JavaScriptObject
implements _WebGLRenderingContextBase {
// To suppress missing implicit constructor warnings.
factory _WebGL2RenderingContextBase._() {
@@ -4174,7 +4175,7 @@ abstract class _WebGL2RenderingContextBase extends Interceptor
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
abstract class _WebGLRenderingContextBase extends Interceptor {
abstract class _WebGLRenderingContextBase extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory _WebGLRenderingContextBase._() {
throw new UnsupportedError("Not supported");
+6 -6
View File
@@ -19,7 +19,7 @@ import 'dart:_internal' show FixedLengthListMixin;
import 'dart:html';
import 'dart:html_common';
import 'dart:_foreign_helper' show JS;
import 'dart:_interceptors' show Interceptor;
import 'dart:_interceptors' show JavaScriptObject;
// DO NOT EDIT - unless you are editing documentation as per:
// https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
// Auto-generated dart:audio library.
@@ -72,7 +72,7 @@ typedef void SqlTransactionErrorCallback(SqlError error);
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Native("Database")
class SqlDatabase extends Interceptor {
class SqlDatabase extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory SqlDatabase._() {
throw new UnsupportedError("Not supported");
@@ -165,7 +165,7 @@ class SqlDatabase extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("SQLError")
class SqlError extends Interceptor {
class SqlError extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory SqlError._() {
throw new UnsupportedError("Not supported");
@@ -196,7 +196,7 @@ class SqlError extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("SQLResultSet")
class SqlResultSet extends Interceptor {
class SqlResultSet extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory SqlResultSet._() {
throw new UnsupportedError("Not supported");
@@ -213,7 +213,7 @@ class SqlResultSet extends Interceptor {
// BSD-style license that can be found in the LICENSE file.
@Native("SQLResultSetRowList")
class SqlResultSetRowList extends Interceptor
class SqlResultSetRowList extends JavaScriptObject
with ListMixin<Map>, ImmutableListMixin<Map>
implements List<Map> {
// To suppress missing implicit constructor warnings.
@@ -282,7 +282,7 @@ class SqlResultSetRowList extends Interceptor
// http://www.w3.org/TR/webdatabase/#sqltransaction
@deprecated // deprecated
@Native("SQLTransaction")
class SqlTransaction extends Interceptor {
class SqlTransaction extends JavaScriptObject {
// To suppress missing implicit constructor warnings.
factory SqlTransaction._() {
throw new UnsupportedError("Not supported");
+2 -2
View File
@@ -732,7 +732,7 @@ class HtmlDartInterfaceGenerator(object):
if mixins:
mixins_str = ' with ' + ', '.join(mixins)
if not base_class:
base_class = 'Interceptor'
base_class = 'JavaScriptObject'
elif (base_class == 'NativeFieldWrapperClass2' and
self._options.dart_js_interop and
not (isinstance(self._backend, Dart2JSBackend))):
@@ -1831,7 +1831,7 @@ class Dart2JSBackend(HtmlDartGenerator):
pass
def RootClassName(self):
return 'Interceptor'
return 'JavaScriptObject'
def OmitOperationOverrides(self):
return True
@@ -45,7 +45,7 @@ import 'dart:_js_helper' show
findDispatchTagForInterceptorClass, setNativeSubclassDispatchRecord,
makeLeafDispatchRecord, registerGlobalObject, applyExtension;
import 'dart:_interceptors' show
Interceptor, JavaScriptFunction, JSExtendableArray, JSUInt31,
JavaScriptObject, JavaScriptFunction, JSExtendableArray, JSUInt31,
findInterceptorConstructorForType,
findConstructorForNativeSubclassType,
getNativeInterceptor,
@@ -83,7 +83,7 @@ import 'dart:_native_typed_data';
import 'dart:typed_data';
import 'dart:_js_helper' show Creates, Returns, JSName, Native;
import 'dart:_foreign_helper' show JS;
import 'dart:_interceptors' show Interceptor, JSExtendableArray;
import 'dart:_interceptors' show JavaScriptObject, JSExtendableArray;
import 'dart:_js_helper' show convertDartClosureToJS;
@@ -21,7 +21,7 @@ import 'dart:html';
import 'dart:html_common';
import 'dart:_js_helper' show Creates, Returns, JSName, Native;
import 'dart:_foreign_helper' show JS;
import 'dart:_interceptors' show Interceptor;
import 'dart:_interceptors' show JavaScriptObject;
part '$AUXILIARY_DIR/shared_SVGFactoryProviders.dart';
@@ -20,6 +20,6 @@ import 'dart:_js_helper' show
Creates, JavaScriptIndexingBehavior, JSName, Native, Returns,
convertDartClosureToJS;
import 'dart:_foreign_helper' show JS;
import 'dart:_interceptors' show Interceptor;
import 'dart:_interceptors' show JavaScriptObject;
$!GENERATED_DART_FILES
@@ -18,6 +18,6 @@ import 'dart:_native_typed_data';
import 'dart:typed_data';
import 'dart:_js_helper' show Creates, JSName, Native, Returns, convertDartClosureToJS;
import 'dart:_foreign_helper' show JS;
import 'dart:_interceptors' show Interceptor, JSExtendableArray;
import 'dart:_interceptors' show JavaScriptObject, JSExtendableArray;
$!GENERATED_DART_FILES
@@ -26,6 +26,6 @@ import 'dart:html_common';
import 'dart:_js_helper' show applyExtension, convertDartClosureToJS, Creates,
JSName, Native, JavaScriptIndexingBehavior, Returns;
import 'dart:_foreign_helper' show JS;
import 'dart:_interceptors' show Interceptor;
import 'dart:_interceptors' show JavaScriptObject;
$!GENERATED_DART_FILES