OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 [ |
| 6 NoInterfaceObject |
| 7 ] interface CanvasPathMethods { |
| 8 |
| 9 void closePath(); |
| 10 void moveTo(float x, float y); |
| 11 void lineTo(float x, float y); |
| 12 void quadraticCurveTo(float cpx, float cpy, float x, float y); |
| 13 void bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x,
float y); |
| 14 [RaisesException] void arcTo(float x1, float y1, float x2, float y2, float r
adius); |
| 15 void rect(float x, float y, float width, float height); |
| 16 [RaisesException] void arc(float x, float y, float radius, float startAngle,
float endAngle, [Default=Undefined] optional boolean anticlockwise); |
| 17 [RaisesException] void ellipse(float x, float y, float radiusX, float radius
Y, float rotation, float startAngle, float endAngle, [Default=Undefined] optiona
l boolean anticlockwise); |
| 18 }; |
OLD | NEW |