Skip to content

Commit 20dc749

Browse files
committed
Suppress Scale interface - unused.
[email protected] Review-Url: https://codereview.chromium.org/2901213006 .
1 parent 1c8b59d commit 20dc749

File tree

5 files changed

+5
-130
lines changed

5 files changed

+5
-130
lines changed

sdk/lib/_blink/dartium/_blink_dartium.dart

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,6 @@ dynamic resolver(String s) {
661661
if (s == "SVGViewSpec") return BlinkSVGViewSpec.instance;
662662
if (s == "SVGZoomAndPan") return BlinkSVGZoomAndPan.instance;
663663
if (s == "SVGZoomEvent") return BlinkSVGZoomEvent.instance;
664-
if (s == "Scale") return BlinkScale.instance;
665664
if (s == "Screen") return BlinkScreen.instance;
666665
if (s == "ScreenOrientation") return BlinkScreenOrientation.instance;
667666
if (s == "ScriptProcessorNode") return BlinkScriptProcessorNode.instance;
@@ -22815,32 +22814,6 @@ class BlinkSVGZoomEvent extends BlinkUIEvent {
2281522814
mthis /* SVGZoomEvent */, "zoomRectScreen");
2281622815
}
2281722816

22818-
class BlinkScale extends BlinkTransformComponent {
22819-
static final instance = new BlinkScale();
22820-
22821-
constructorCallback_0_() =>
22822-
Blink_JsNative_DomException.callConstructor0("Scale");
22823-
22824-
constructorCallback_1_(__arg_0) =>
22825-
Blink_JsNative_DomException.callConstructor("Scale", [__arg_0]);
22826-
22827-
constructorCallback_2_(__arg_0, __arg_1) =>
22828-
Blink_JsNative_DomException.callConstructor("Scale", [__arg_0, __arg_1]);
22829-
22830-
constructorCallback_3_(__arg_0, __arg_1, __arg_2) =>
22831-
Blink_JsNative_DomException
22832-
.callConstructor("Scale", [__arg_0, __arg_1, __arg_2]);
22833-
22834-
x_Getter_(mthis) =>
22835-
Blink_JsNative_DomException.getProperty(mthis /* Scale */, "x");
22836-
22837-
y_Getter_(mthis) =>
22838-
Blink_JsNative_DomException.getProperty(mthis /* Scale */, "y");
22839-
22840-
z_Getter_(mthis) =>
22841-
Blink_JsNative_DomException.getProperty(mthis /* Scale */, "z");
22842-
}
22843-
2284422817
class BlinkScreen {
2284522818
static final instance = new BlinkScreen();
2284622819

sdk/lib/html/dart2js/html_dart2js.dart

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -30507,49 +30507,6 @@ class RtcStatsResponse extends Interceptor {
3050730507
@DocsEditable()
3050830508
List<RtcStatsReport> result() native;
3050930509
}
30510-
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
30511-
// for details. All rights reserved. Use of this source code is governed by a
30512-
// BSD-style license that can be found in the LICENSE file.
30513-
30514-
@DocsEditable()
30515-
@DomName('Scale')
30516-
@Experimental() // untriaged
30517-
@Native("Scale")
30518-
class Scale extends TransformComponent {
30519-
// To suppress missing implicit constructor warnings.
30520-
factory Scale._() {
30521-
throw new UnsupportedError("Not supported");
30522-
}
30523-
30524-
@DomName('Scale.Scale')
30525-
@DocsEditable()
30526-
factory Scale(num x, num y, [num z]) {
30527-
if ((y is num) && (x is num) && z == null) {
30528-
return Scale._create_1(x, y);
30529-
}
30530-
if ((z is num) && (y is num) && (x is num)) {
30531-
return Scale._create_2(x, y, z);
30532-
}
30533-
throw new ArgumentError("Incorrect number or type of arguments");
30534-
}
30535-
static Scale _create_1(x, y) => JS('Scale', 'new Scale(#,#)', x, y);
30536-
static Scale _create_2(x, y, z) => JS('Scale', 'new Scale(#,#,#)', x, y, z);
30537-
30538-
@DomName('Scale.x')
30539-
@DocsEditable()
30540-
@Experimental() // untriaged
30541-
final double x;
30542-
30543-
@DomName('Scale.y')
30544-
@DocsEditable()
30545-
@Experimental() // untriaged
30546-
final double y;
30547-
30548-
@DomName('Scale.z')
30549-
@DocsEditable()
30550-
@Experimental() // untriaged
30551-
final double z;
30552-
}
3055330510
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3055430511
// for details. All rights reserved. Use of this source code is governed by a
3055530512
// BSD-style license that can be found in the LICENSE file.

sdk/lib/html/dartium/html_dartium.dart

Lines changed: 2 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,6 @@ final htmlBlinkMap = {
516516
'ResourceProgressEvent': () => _ResourceProgressEvent.instanceRuntimeType,
517517
'Response': () => _Response.instanceRuntimeType,
518518
'Rotation': () => Rotation.instanceRuntimeType,
519-
'Scale': () => Scale.instanceRuntimeType,
520519
'Screen': () => Screen.instanceRuntimeType,
521520
'ScreenOrientation': () => ScreenOrientation.instanceRuntimeType,
522521
'ScrollState': () => ScrollState.instanceRuntimeType,
@@ -35057,54 +35056,6 @@ class RtcStatsResponse extends DartHtmlDomObject {
3505735056
List<RtcStatsReport> result() =>
3505835057
_blink.BlinkRTCStatsResponse.instance.result_Callback_0_(this);
3505935058
}
35060-
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
35061-
// for details. All rights reserved. Use of this source code is governed by a
35062-
// BSD-style license that can be found in the LICENSE file.
35063-
35064-
// WARNING: Do not edit - generated code.
35065-
35066-
@DocsEditable()
35067-
@DomName('Scale')
35068-
@Experimental() // untriaged
35069-
class Scale extends TransformComponent {
35070-
// To suppress missing implicit constructor warnings.
35071-
factory Scale._() {
35072-
throw new UnsupportedError("Not supported");
35073-
}
35074-
35075-
@DomName('Scale.Scale')
35076-
@DocsEditable()
35077-
factory Scale(num x, num y, [num z]) {
35078-
if ((y is num) && (x is num) && z == null) {
35079-
return _blink.BlinkScale.instance.constructorCallback_2_(x, y);
35080-
}
35081-
if ((z is num) && (y is num) && (x is num)) {
35082-
return _blink.BlinkScale.instance.constructorCallback_3_(x, y, z);
35083-
}
35084-
throw new ArgumentError("Incorrect number or type of arguments");
35085-
}
35086-
35087-
@Deprecated("Internal Use Only")
35088-
external static Type get instanceRuntimeType;
35089-
35090-
@Deprecated("Internal Use Only")
35091-
Scale.internal_() : super.internal_();
35092-
35093-
@DomName('Scale.x')
35094-
@DocsEditable()
35095-
@Experimental() // untriaged
35096-
num get x => _blink.BlinkScale.instance.x_Getter_(this);
35097-
35098-
@DomName('Scale.y')
35099-
@DocsEditable()
35100-
@Experimental() // untriaged
35101-
num get y => _blink.BlinkScale.instance.y_Getter_(this);
35102-
35103-
@DomName('Scale.z')
35104-
@DocsEditable()
35105-
@Experimental() // untriaged
35106-
num get z => _blink.BlinkScale.instance.z_Getter_(this);
35107-
}
3510835059
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3510935060
// for details. All rights reserved. Use of this source code is governed by a
3511035061
// BSD-style license that can be found in the LICENSE file.
@@ -41326,11 +41277,11 @@ class Url extends DartHtmlDomObject implements UrlUtils {
4132641277
return _blink.BlinkURL.instance
4132741278
.createObjectURL_Callback_1_(blob_OR_source_OR_stream);
4132841279
}
41329-
if ((blob_OR_source_OR_stream is MediaSource)) {
41280+
if ((blob_OR_source_OR_stream is MediaStream)) {
4133041281
return _blink.BlinkURL.instance
4133141282
.createObjectURL_Callback_1_(blob_OR_source_OR_stream);
4133241283
}
41333-
if ((blob_OR_source_OR_stream is MediaStream)) {
41284+
if ((blob_OR_source_OR_stream is MediaSource)) {
4133441285
return _blink.BlinkURL.instance
4133541286
.createObjectURL_Callback_1_(blob_OR_source_OR_stream);
4133641287
}

sdk/lib/js/dartium/cached_patches.dart

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2827,15 +2827,6 @@ class RtcStatsResponseImpl extends RtcStatsResponse implements js_library.JSObje
28272827
get runtimeType => RtcStatsResponse;
28282828
toString() => super.toString();
28292829
}
2830-
@patch class Scale {
2831-
static Type get instanceRuntimeType => ScaleImpl;
2832-
2833-
}
2834-
class ScaleImpl extends Scale implements js_library.JSObjectInterfacesDom {
2835-
ScaleImpl.internal_() : super.internal_();
2836-
get runtimeType => Scale;
2837-
toString() => super.toString();
2838-
}
28392830
@patch class Screen {
28402831
static Type get instanceRuntimeType => ScreenImpl;
28412832

tools/dom/idl/dart/dart.idl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,9 @@ interface DragEvent {};
468468
[DartSuppress]
469469
interface InputEvent {};
470470

471+
[DartSuppress]
472+
interface Scale {};
473+
471474
Element implements GlobalEventHandlers;
472475

473476

0 commit comments

Comments
 (0)