OLD | NEW |
---|---|
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
73 void closePath(); | 73 void closePath(); |
74 void moveTo(float x, float y); | 74 void moveTo(float x, float y); |
75 void lineTo(float x, float y); | 75 void lineTo(float x, float y); |
76 void quadraticCurveTo(float cpx, float cpy, float x, float y); | 76 void quadraticCurveTo(float cpx, float cpy, float x, float y); |
77 void bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y); | 77 void bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y); |
78 [RaisesException] void arcTo(float x1, float y1, float x2, float y2, float r adius); | 78 [RaisesException] void arcTo(float x1, float y1, float x2, float y2, float r adius); |
79 void rect(float x, float y, float width, float height); | 79 void rect(float x, float y, float width, float height); |
80 [RaisesException] void arc(float x, float y, float radius, float startAngle, float endAngle, [Default=Undefined] optional boolean anticlockwise); | 80 [RaisesException] void arc(float x, float y, float radius, float startAngle, float endAngle, [Default=Undefined] optional boolean anticlockwise); |
81 [RaisesException] void ellipse(float x, float y, float radiusX, float radius Y, float rotation, float startAngle, float endAngle, boolean anticlockwise); | 81 [RaisesException] void ellipse(float x, float y, float radiusX, float radius Y, float rotation, float startAngle, float endAngle, boolean anticlockwise); |
82 | 82 |
83 void fill(Path? path, optional CanvasWindingRule winding); | |
jcgregorio
2014/01/23 18:17:14
The part that I'm unsure about is that if I need t
Stephen White
2014/01/23 19:17:06
If so, that sounds like a bug in the RuntimeEnable
eseidel
2014/01/23 20:24:01
RuntimeEnabled= is a bindings generation feature.
Nils Barth (inactive)
2014/01/29 06:59:17
Thanks for raising this Eric, and thanks to Joe an
jcgregorio
2014/01/29 17:51:49
Thanks for the update and good news about the rewr
jcgregorio
2014/01/30 20:41:57
Updated the .idl to have RuntimeEnabled=Experiment
Nils Barth (inactive)
2014/01/31 00:42:38
Thanks Joe - LGTM for IDL!
| |
83 void fill(optional CanvasWindingRule winding); | 84 void fill(optional CanvasWindingRule winding); |
84 void stroke(); | 85 void stroke(); |
86 void stroke(Path path); | |
87 void clip(Path? path, optional CanvasWindingRule winding); | |
dshwang
2014/01/23 21:17:17
why "Path? path", instead of "Path path"?
The spe
jcgregorio
2014/01/29 17:51:49
Done.
| |
85 void clip(optional CanvasWindingRule winding); | 88 void clip(optional CanvasWindingRule winding); |
86 boolean isPointInPath(float x, float y, optional CanvasWindingRule winding); | 89 boolean isPointInPath(float x, float y, optional CanvasWindingRule winding); |
87 boolean isPointInStroke(float x, float y); | 90 boolean isPointInStroke(float x, float y); |
88 | 91 |
89 // text | 92 // text |
90 attribute DOMString font; | 93 attribute DOMString font; |
91 attribute DOMString textAlign; | 94 attribute DOMString textAlign; |
92 attribute DOMString textBaseline; | 95 attribute DOMString textBaseline; |
93 | 96 |
94 TextMetrics measureText(DOMString text); | 97 TextMetrics measureText(DOMString text); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
167 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem ent element); | 170 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem ent element); |
168 | 171 |
169 readonly attribute float webkitBackingStorePixelRatio; | 172 readonly attribute float webkitBackingStorePixelRatio; |
170 | 173 |
171 [ImplementedAs=imageSmoothingEnabled] attribute boolean webkitImageSmoothing Enabled; | 174 [ImplementedAs=imageSmoothingEnabled] attribute boolean webkitImageSmoothing Enabled; |
172 attribute boolean imageSmoothingEnabled; | 175 attribute boolean imageSmoothingEnabled; |
173 | 176 |
174 Canvas2DContextAttributes getContextAttributes(); | 177 Canvas2DContextAttributes getContextAttributes(); |
175 }; | 178 }; |
176 | 179 |
OLD | NEW |