Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Side by Side Diff: Source/core/html/canvas/CanvasPathMethods.idl

Issue 191923002: CanvasPathMethods should be shared with CRC2D and Path2D (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698