diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
commit | 1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch) | |
tree | 4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/html/CanvasRenderingContext2D.idl | |
parent | 9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff) | |
download | external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2 |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/html/CanvasRenderingContext2D.idl')
-rw-r--r-- | WebCore/html/CanvasRenderingContext2D.idl | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/WebCore/html/CanvasRenderingContext2D.idl b/WebCore/html/CanvasRenderingContext2D.idl index 3d566d4..29c9a7a 100644 --- a/WebCore/html/CanvasRenderingContext2D.idl +++ b/WebCore/html/CanvasRenderingContext2D.idl @@ -26,6 +26,7 @@ module html { interface [ + GenerateConstructor, InterfaceUUID=98fb48ae-7216-489c-862b-8e1217fc4443, ImplementationUUID=ab4f0781-152f-450e-9546-5b3987491a54 ] CanvasRenderingContext2D { @@ -45,8 +46,10 @@ module html { attribute float globalAlpha; attribute [ConvertNullToNullString] DOMString globalCompositeOperation; - CanvasGradient createLinearGradient(in float x0, in float y0, in float x1, in float y1); - CanvasGradient createRadialGradient(in float x0, in float y0, in float r0, in float x1, in float y1, in float r1); + CanvasGradient createLinearGradient(in float x0, in float y0, in float x1, in float y1) + raises (DOMException); + CanvasGradient createRadialGradient(in float x0, in float y0, in float r0, in float x1, in float y1, in float r1) + raises (DOMException); attribute float lineWidth; attribute [ConvertNullToNullString] DOMString lineCap; @@ -58,10 +61,8 @@ module html { attribute float shadowBlur; attribute [ConvertNullToNullString] DOMString shadowColor; - void clearRect(in float x, in float y, in float width, in float height) - raises (DOMException); - void fillRect(in float x, in float y, in float width, in float height) - raises (DOMException); + void clearRect(in float x, in float y, in float width, in float height); + void fillRect(in float x, in float y, in float width, in float height); void beginPath(); void closePath(); @@ -71,8 +72,7 @@ module html { void bezierCurveTo(in float cp1x, in float cp1y, in float cp2x, in float cp2y, in float x, in float y); void arcTo(in float x1, in float y1, in float x2, in float y2, in float radius) raises (DOMException); - void rect(in float x, in float y, in float width, in float height) - raises (DOMException); + void rect(in float x, in float y, in float width, in float height); void arc(in float x, in float y, in float radius, in float startAngle, in float endAngle, in boolean anticlockwise) raises (DOMException); void fill(); @@ -80,6 +80,14 @@ module html { void clip(); boolean isPointInPath(in float x, in float y); + // text + attribute DOMString font; + attribute DOMString textAlign; + attribute DOMString textBaseline; + [Custom] void fillText(/* 4 */); + [Custom] void strokeText(/* 4 */); + TextMetrics measureText(in DOMString text); + // other void setAlpha(in float alpha); @@ -101,7 +109,13 @@ module html { [Custom] void createPattern(/* 2 */); attribute [Custom] custom strokeStyle; - attribute [Custom] custom fillStyle; + attribute [Custom] custom fillStyle; + + // pixel manipulation + ImageData createImageData(in float sw, in float sh); + ImageData getImageData(in float sx, in float sy, in float sw, in float sh) + raises(DOMException); + [Custom] void putImageData(/* in ImageData imagedata, in float dx, in float dy [, in float dirtyX, in float dirtyY, in float dirtyWidth, in float dirtyHeight] */); }; } |