Suppress Scale interface - unused.

TBR=alanknight@google.com

Review-Url: https://codereview.chromium.org/2901213006 .
This commit is contained in:
Terry Lucas 2017-05-25 12:54:31 -07:00
parent 1c8b59dc31
commit 20dc749844
5 changed files with 5 additions and 130 deletions

View file

@ -661,7 +661,6 @@ dynamic resolver(String s) {
if (s == "SVGViewSpec") return BlinkSVGViewSpec.instance;
if (s == "SVGZoomAndPan") return BlinkSVGZoomAndPan.instance;
if (s == "SVGZoomEvent") return BlinkSVGZoomEvent.instance;
if (s == "Scale") return BlinkScale.instance;
if (s == "Screen") return BlinkScreen.instance;
if (s == "ScreenOrientation") return BlinkScreenOrientation.instance;
if (s == "ScriptProcessorNode") return BlinkScriptProcessorNode.instance;
@ -22815,32 +22814,6 @@ class BlinkSVGZoomEvent extends BlinkUIEvent {
mthis /* SVGZoomEvent */, "zoomRectScreen");
}
class BlinkScale extends BlinkTransformComponent {
static final instance = new BlinkScale();
constructorCallback_0_() =>
Blink_JsNative_DomException.callConstructor0("Scale");
constructorCallback_1_(__arg_0) =>
Blink_JsNative_DomException.callConstructor("Scale", [__arg_0]);
constructorCallback_2_(__arg_0, __arg_1) =>
Blink_JsNative_DomException.callConstructor("Scale", [__arg_0, __arg_1]);
constructorCallback_3_(__arg_0, __arg_1, __arg_2) =>
Blink_JsNative_DomException
.callConstructor("Scale", [__arg_0, __arg_1, __arg_2]);
x_Getter_(mthis) =>
Blink_JsNative_DomException.getProperty(mthis /* Scale */, "x");
y_Getter_(mthis) =>
Blink_JsNative_DomException.getProperty(mthis /* Scale */, "y");
z_Getter_(mthis) =>
Blink_JsNative_DomException.getProperty(mthis /* Scale */, "z");
}
class BlinkScreen {
static final instance = new BlinkScreen();

View file

@ -30507,49 +30507,6 @@ class RtcStatsResponse extends Interceptor {
@DocsEditable()
List<RtcStatsReport> result() native;
}
// 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
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
@DomName('Scale')
@Experimental() // untriaged
@Native("Scale")
class Scale extends TransformComponent {
// To suppress missing implicit constructor warnings.
factory Scale._() {
throw new UnsupportedError("Not supported");
}
@DomName('Scale.Scale')
@DocsEditable()
factory Scale(num x, num y, [num z]) {
if ((y is num) && (x is num) && z == null) {
return Scale._create_1(x, y);
}
if ((z is num) && (y is num) && (x is num)) {
return Scale._create_2(x, y, z);
}
throw new ArgumentError("Incorrect number or type of arguments");
}
static Scale _create_1(x, y) => JS('Scale', 'new Scale(#,#)', x, y);
static Scale _create_2(x, y, z) => JS('Scale', 'new Scale(#,#,#)', x, y, z);
@DomName('Scale.x')
@DocsEditable()
@Experimental() // untriaged
final double x;
@DomName('Scale.y')
@DocsEditable()
@Experimental() // untriaged
final double y;
@DomName('Scale.z')
@DocsEditable()
@Experimental() // untriaged
final double z;
}
// 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
// BSD-style license that can be found in the LICENSE file.

View file

@ -516,7 +516,6 @@ final htmlBlinkMap = {
'ResourceProgressEvent': () => _ResourceProgressEvent.instanceRuntimeType,
'Response': () => _Response.instanceRuntimeType,
'Rotation': () => Rotation.instanceRuntimeType,
'Scale': () => Scale.instanceRuntimeType,
'Screen': () => Screen.instanceRuntimeType,
'ScreenOrientation': () => ScreenOrientation.instanceRuntimeType,
'ScrollState': () => ScrollState.instanceRuntimeType,
@ -35057,54 +35056,6 @@ class RtcStatsResponse extends DartHtmlDomObject {
List<RtcStatsReport> result() =>
_blink.BlinkRTCStatsResponse.instance.result_Callback_0_(this);
}
// 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
// BSD-style license that can be found in the LICENSE file.
// WARNING: Do not edit - generated code.
@DocsEditable()
@DomName('Scale')
@Experimental() // untriaged
class Scale extends TransformComponent {
// To suppress missing implicit constructor warnings.
factory Scale._() {
throw new UnsupportedError("Not supported");
}
@DomName('Scale.Scale')
@DocsEditable()
factory Scale(num x, num y, [num z]) {
if ((y is num) && (x is num) && z == null) {
return _blink.BlinkScale.instance.constructorCallback_2_(x, y);
}
if ((z is num) && (y is num) && (x is num)) {
return _blink.BlinkScale.instance.constructorCallback_3_(x, y, z);
}
throw new ArgumentError("Incorrect number or type of arguments");
}
@Deprecated("Internal Use Only")
external static Type get instanceRuntimeType;
@Deprecated("Internal Use Only")
Scale.internal_() : super.internal_();
@DomName('Scale.x')
@DocsEditable()
@Experimental() // untriaged
num get x => _blink.BlinkScale.instance.x_Getter_(this);
@DomName('Scale.y')
@DocsEditable()
@Experimental() // untriaged
num get y => _blink.BlinkScale.instance.y_Getter_(this);
@DomName('Scale.z')
@DocsEditable()
@Experimental() // untriaged
num get z => _blink.BlinkScale.instance.z_Getter_(this);
}
// 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
// BSD-style license that can be found in the LICENSE file.
@ -41326,11 +41277,11 @@ class Url extends DartHtmlDomObject implements UrlUtils {
return _blink.BlinkURL.instance
.createObjectURL_Callback_1_(blob_OR_source_OR_stream);
}
if ((blob_OR_source_OR_stream is MediaSource)) {
if ((blob_OR_source_OR_stream is MediaStream)) {
return _blink.BlinkURL.instance
.createObjectURL_Callback_1_(blob_OR_source_OR_stream);
}
if ((blob_OR_source_OR_stream is MediaStream)) {
if ((blob_OR_source_OR_stream is MediaSource)) {
return _blink.BlinkURL.instance
.createObjectURL_Callback_1_(blob_OR_source_OR_stream);
}

View file

@ -2827,15 +2827,6 @@ class RtcStatsResponseImpl extends RtcStatsResponse implements js_library.JSObje
get runtimeType => RtcStatsResponse;
toString() => super.toString();
}
@patch class Scale {
static Type get instanceRuntimeType => ScaleImpl;
}
class ScaleImpl extends Scale implements js_library.JSObjectInterfacesDom {
ScaleImpl.internal_() : super.internal_();
get runtimeType => Scale;
toString() => super.toString();
}
@patch class Screen {
static Type get instanceRuntimeType => ScreenImpl;

View file

@ -468,6 +468,9 @@ interface DragEvent {};
[DartSuppress]
interface InputEvent {};
[DartSuppress]
interface Scale {};
Element implements GlobalEventHandlers;