| 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 d4afe0f7632afb69eb12c27a408745ef626f6031..4757fedfecb90409d8d0996ee984aabc5482a87c 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -1686,64 +1686,6 @@ class CanvasGradient extends Interceptor {
|
|
|
|
|
| @DocsEditable()
|
| -@DomName('CanvasPathMethods')
|
| -@Experimental() // untriaged
|
| -@Native("CanvasPathMethods")
|
| -class CanvasPathMethods extends Interceptor {
|
| - // To suppress missing implicit constructor warnings.
|
| - factory CanvasPathMethods._() { throw new UnsupportedError("Not supported"); }
|
| -
|
| - @DomName('CanvasPathMethods.arc')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise) native;
|
| -
|
| - @DomName('CanvasPathMethods.arcTo')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - void arcTo(num x1, num y1, num x2, num y2, num radius) native;
|
| -
|
| - @DomName('CanvasPathMethods.bezierCurveTo')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) native;
|
| -
|
| - @DomName('CanvasPathMethods.closePath')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - void closePath() native;
|
| -
|
| - @DomName('CanvasPathMethods.ellipse')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - void ellipse(num x, num y, num radiusX, num radiusY, num rotation, num startAngle, num endAngle, bool anticlockwise) native;
|
| -
|
| - @DomName('CanvasPathMethods.lineTo')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - void lineTo(num x, num y) native;
|
| -
|
| - @DomName('CanvasPathMethods.moveTo')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - void moveTo(num x, num y) native;
|
| -
|
| - @DomName('CanvasPathMethods.quadraticCurveTo')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - void quadraticCurveTo(num cpx, num cpy, num x, num y) native;
|
| -
|
| - @DomName('CanvasPathMethods.rect')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - void rect(num x, num y, num width, num height) 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()
|
| /**
|
| * An opaque object representing a pattern of image, canvas, or video.
|
| *
|
| @@ -1782,9 +1724,13 @@ class CanvasPattern extends Interceptor {
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
| +abstract class CanvasRenderingContext {
|
| + CanvasElement get canvas;
|
| +}
|
| +
|
| @DomName('CanvasRenderingContext2D')
|
| @Native("CanvasRenderingContext2D")
|
| -class CanvasRenderingContext2D extends CanvasPathMethods {
|
| +class CanvasRenderingContext2D extends Interceptor implements CanvasRenderingContext {
|
| // To suppress missing implicit constructor warnings.
|
| factory CanvasRenderingContext2D._() { throw new UnsupportedError("Not supported"); }
|
|
|
| @@ -20799,7 +20745,7 @@ abstract class ParentNode extends Interceptor {
|
| @DomName('Path2D')
|
| @Experimental() // untriaged
|
| @Native("Path2D")
|
| -class Path2D extends CanvasPathMethods {
|
| +class Path2D extends Interceptor implements _CanvasPathMethods {
|
| // To suppress missing implicit constructor warnings.
|
| factory Path2D._() { throw new UnsupportedError("Not supported"); }
|
|
|
| @@ -30391,6 +30337,18 @@ abstract class _CSSValue extends Interceptor {
|
| // To suppress missing implicit constructor warnings.
|
| factory _CSSValue._() { 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
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +
|
| +@DocsEditable()
|
| +@DomName('CanvasPathMethods')
|
| +@Experimental() // untriaged
|
| +abstract class _CanvasPathMethods extends Interceptor {
|
| + // To suppress missing implicit constructor warnings.
|
| + factory _CanvasPathMethods._() { throw new UnsupportedError("Not supported"); }
|
| +}
|
| // 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.
|
|
|