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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 void clearRect(float x, float y, float width, float height); | 63 void clearRect(float x, float y, float width, float height); |
64 void fillRect(float x, float y, float width, float height); | 64 void fillRect(float x, float y, float width, float height); |
65 | 65 |
66 void beginPath(); | 66 void beginPath(); |
67 | 67 |
68 attribute Path2D currentPath; | 68 attribute Path2D currentPath; |
69 | 69 |
70 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339
000 gets fixed. | 70 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339
000 gets fixed. |
71 void fill(); | 71 void fill(); |
72 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void fill(Path2
D? path); | 72 [RuntimeEnabled=Path2D, RaisesException] void fill(Path2D? path); |
73 void fill(CanvasWindingRule winding); | 73 void fill(CanvasWindingRule winding); |
74 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void fill(Path2
D? path, CanvasWindingRule winding); | 74 [RuntimeEnabled=Path2D, RaisesException] void fill(Path2D? path, CanvasWindi
ngRule winding); |
75 void stroke(); | 75 void stroke(); |
76 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void stroke(Pat
h2D? path); | 76 [RuntimeEnabled=Path2D, RaisesException] void stroke(Path2D? path); |
77 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339
000 gets fixed. | 77 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339
000 gets fixed. |
78 void clip(); | 78 void clip(); |
79 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void clip(Path2
D? path); | 79 [RuntimeEnabled=Path2D, RaisesException] void clip(Path2D? path); |
80 void clip(CanvasWindingRule winding); | 80 void clip(CanvasWindingRule winding); |
81 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void clip(Path2
D? path, CanvasWindingRule winding); | 81 [RuntimeEnabled=Path2D, RaisesException] void clip(Path2D? path, CanvasWindi
ngRule winding); |
82 | 82 |
83 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339
000 gets fixed. | 83 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339
000 gets fixed. |
84 boolean isPointInPath(float x, float y); | 84 boolean isPointInPath(float x, float y); |
85 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint
InPath(Path2D? path, float x, float y); | 85 [RuntimeEnabled=Path2D, RaisesException] boolean isPointInPath(Path2D? path,
float x, float y); |
86 boolean isPointInPath(float x, float y, CanvasWindingRule winding); | 86 boolean isPointInPath(float x, float y, CanvasWindingRule winding); |
87 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint
InPath(Path2D? path, float x, float y, CanvasWindingRule winding); | 87 [RuntimeEnabled=Path2D, RaisesException] boolean isPointInPath(Path2D? path,
float x, float y, CanvasWindingRule winding); |
88 | |
89 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339
000 gets fixed. | |
90 boolean isPointInStroke(float x, float y); | 88 boolean isPointInStroke(float x, float y); |
91 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint
InStroke(Path2D? path, float x, float y); | 89 [RuntimeEnabled=Path2D, RaisesException] boolean isPointInStroke(Path2D? pat
h, float x, float y); |
92 | 90 |
93 [RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView(); | 91 [RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView(); |
94 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void scrollPath
IntoView(Path2D? path); | 92 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void scrollPath
IntoView(Path2D? path); |
95 | 93 |
96 // text | 94 // text |
97 attribute DOMString font; | 95 attribute DOMString font; |
98 attribute DOMString textAlign; | 96 attribute DOMString textAlign; |
99 attribute DOMString textBaseline; | 97 attribute DOMString textBaseline; |
100 | 98 |
101 TextMetrics measureText(DOMString text); | 99 TextMetrics measureText(DOMString text); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 [RuntimeEnabled=ExperimentalCanvasFeatures] void drawFocusIfNeeded(Element e
lement); | 171 [RuntimeEnabled=ExperimentalCanvasFeatures] void drawFocusIfNeeded(Element e
lement); |
174 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem
ent element); | 172 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem
ent element); |
175 | 173 |
176 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable
d] attribute boolean webkitImageSmoothingEnabled; | 174 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable
d] attribute boolean webkitImageSmoothingEnabled; |
177 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing
Enabled; | 175 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing
Enabled; |
178 | 176 |
179 Canvas2DContextAttributes getContextAttributes(); | 177 Canvas2DContextAttributes getContextAttributes(); |
180 }; | 178 }; |
181 | 179 |
182 CanvasRenderingContext2D implements CanvasPathMethods; | 180 CanvasRenderingContext2D implements CanvasPathMethods; |
OLD | NEW |