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

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

Issue 14298022: Add support for new canvas ellipse method. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make canvas-ellipse-360-winding.html for virtual/gpu pass. Created 7 years, 3 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
« no previous file with comments | « Source/core/html/canvas/CanvasPathMethods.cpp ('k') | Source/core/platform/graphics/Path.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // FIXME: These methods should be shared with CanvasRenderingContext2D in th e CanvasPathMethods interface. 70 // FIXME: These methods should be shared with CanvasRenderingContext2D in th e CanvasPathMethods interface.
71 void closePath(); 71 void closePath();
72 void moveTo(float x, float y); 72 void moveTo(float x, float y);
73 void lineTo(float x, float y); 73 void lineTo(float x, float y);
74 void quadraticCurveTo(float cpx, float cpy, float x, float y); 74 void quadraticCurveTo(float cpx, float cpy, float x, float y);
75 void bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y); 75 void bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y);
76 [RaisesException] void arcTo(float x1, float y1, float x2, float y2, float r adius); 76 [RaisesException] void arcTo(float x1, float y1, float x2, float y2, float r adius);
77 void rect(float x, float y, float width, float height); 77 void rect(float x, float y, float width, float height);
78 [RaisesException] void arc(float x, float y, float radius, float startAngle, float endAngle, [Default=Undefined] optional boolean anticlockwise); 78 [RaisesException] void arc(float x, float y, float radius, float startAngle, float endAngle, [Default=Undefined] optional boolean anticlockwise);
79 [RaisesException] void ellipse(float x, float y, float radiusX, float radius Y, float rotation, float startAngle, float endAngle, boolean anticlockwise);
79 80
80 void fill(optional CanvasWindingRule winding); 81 void fill(optional CanvasWindingRule winding);
81 void stroke(); 82 void stroke();
82 void clip(optional CanvasWindingRule winding); 83 void clip(optional CanvasWindingRule winding);
83 boolean isPointInPath(float x, float y, optional CanvasWindingRule winding); 84 boolean isPointInPath(float x, float y, optional CanvasWindingRule winding);
84 boolean isPointInStroke(float x, float y); 85 boolean isPointInStroke(float x, float y);
85 86
86 // text 87 // text
87 attribute DOMString font; 88 attribute DOMString font;
88 attribute DOMString textAlign; 89 attribute DOMString textAlign;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 [EnabledAtRuntime=experimentalCanvasFeatures] boolean drawCustomFocusRing(El ement element); 165 [EnabledAtRuntime=experimentalCanvasFeatures] boolean drawCustomFocusRing(El ement element);
165 166
166 readonly attribute float webkitBackingStorePixelRatio; 167 readonly attribute float webkitBackingStorePixelRatio;
167 168
168 [ImplementedAs=imageSmoothingEnabled] attribute boolean webkitImageSmoothing Enabled; 169 [ImplementedAs=imageSmoothingEnabled] attribute boolean webkitImageSmoothing Enabled;
169 attribute boolean imageSmoothingEnabled; 170 attribute boolean imageSmoothingEnabled;
170 171
171 [EnabledAtRuntime=experimentalCanvasFeatures] Canvas2DContextAttributes getC ontextAttributes(); 172 [EnabledAtRuntime=experimentalCanvasFeatures] Canvas2DContextAttributes getC ontextAttributes();
172 }; 173 };
173 174
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasPathMethods.cpp ('k') | Source/core/platform/graphics/Path.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698