| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 void setFillColor(in float grayLevel, in [Optional] float alpha); | 161 void setFillColor(in float grayLevel, in [Optional] float alpha); |
| 162 void setFillColor(in float r, in float g, in float b, in float a); | 162 void setFillColor(in float r, in float g, in float b, in float a); |
| 163 void setFillColor(in float c, in float m, in float y, in float k, in flo
at a); | 163 void setFillColor(in float c, in float m, in float y, in float k, in flo
at a); |
| 164 | 164 |
| 165 void strokeRect(in [Optional=DefaultIsUndefined] float x, | 165 void strokeRect(in [Optional=DefaultIsUndefined] float x, |
| 166 in [Optional=DefaultIsUndefined] float y, | 166 in [Optional=DefaultIsUndefined] float y, |
| 167 in [Optional=DefaultIsUndefined] float width, | 167 in [Optional=DefaultIsUndefined] float width, |
| 168 in [Optional=DefaultIsUndefined] float height, | 168 in [Optional=DefaultIsUndefined] float height, |
| 169 in [Optional] float lineWidth); | 169 in [Optional] float lineWidth); |
| 170 | 170 |
| 171 void drawImage(in HTMLImageElement image, in float x, in float y) | 171 void drawImage(in HTMLImageElement? image, in float x, in float y) |
| 172 raises (DOMException); | 172 raises (DOMException); |
| 173 void drawImage(in HTMLImageElement image, in float x, in float y, in flo
at width, in float height) | 173 void drawImage(in HTMLImageElement? image, in float x, in float y, in fl
oat width, in float height) |
| 174 raises (DOMException); | 174 raises (DOMException); |
| 175 void drawImage(in HTMLImageElement image, in float sx, in float sy, in f
loat sw, in float sh, in float dx, in float dy, in float dw, in float dh) | 175 void drawImage(in HTMLImageElement? image, in float sx, in float sy, in
float sw, in float sh, in float dx, in float dy, in float dw, in float dh) |
| 176 raises (DOMException); | 176 raises (DOMException); |
| 177 void drawImage(in HTMLCanvasElement canvas, in float x, in float y) | 177 void drawImage(in HTMLCanvasElement? canvas, in float x, in float y) |
| 178 raises (DOMException); | 178 raises (DOMException); |
| 179 void drawImage(in HTMLCanvasElement canvas, in float x, in float y, in f
loat width, in float height) | 179 void drawImage(in HTMLCanvasElement? canvas, in float x, in float y, in
float width, in float height) |
| 180 raises (DOMException); | 180 raises (DOMException); |
| 181 void drawImage(in HTMLCanvasElement canvas, in float sx, in float sy, in
float sw, in float sh, in float dx, in float dy, in float dw, in float dh) | 181 void drawImage(in HTMLCanvasElement? canvas, in float sx, in float sy, i
n float sw, in float sh, in float dx, in float dy, in float dw, in float dh) |
| 182 raises (DOMException); | 182 raises (DOMException); |
| 183 #if defined(ENABLE_VIDEO) && ENABLE_VIDEO | 183 #if defined(ENABLE_VIDEO) && ENABLE_VIDEO |
| 184 void drawImage(in HTMLVideoElement video, in float x, in float y) | 184 void drawImage(in HTMLVideoElement? video, in float x, in float y) |
| 185 raises (DOMException); | 185 raises (DOMException); |
| 186 void drawImage(in HTMLVideoElement video, in float x, in float y, in flo
at width, in float height) | 186 void drawImage(in HTMLVideoElement? video, in float x, in float y, in fl
oat width, in float height) |
| 187 raises (DOMException); | 187 raises (DOMException); |
| 188 void drawImage(in HTMLVideoElement video, in float sx, in float sy, in f
loat sw, in float sh, in float dx, in float dy, in float dw, in float dh) | 188 void drawImage(in HTMLVideoElement? video, in float sx, in float sy, in
float sw, in float sh, in float dx, in float dy, in float dw, in float dh) |
| 189 raises (DOMException); | 189 raises (DOMException); |
| 190 #endif | 190 #endif |
| 191 | 191 |
| 192 void drawImageFromRect(in HTMLImageElement image, | 192 void drawImageFromRect(in HTMLImageElement image, |
| 193 in [Optional] float sx, in [Optional] float sy, i
n [Optional] float sw, in [Optional] float sh, | 193 in [Optional] float sx, in [Optional] float sy, i
n [Optional] float sw, in [Optional] float sh, |
| 194 in [Optional] float dx, in [Optional] float dy, i
n [Optional] float dw, in [Optional] float dh, | 194 in [Optional] float dx, in [Optional] float dy, i
n [Optional] float dw, in [Optional] float dh, |
| 195 in [Optional] DOMString compositeOperation); | 195 in [Optional] DOMString compositeOperation); |
| 196 | 196 |
| 197 void setShadow(in float width, in float height, in float blur, in [Optio
nal] DOMString color, in [Optional] float alpha); | 197 void setShadow(in float width, in float height, in float blur, in [Optio
nal] DOMString color, in [Optional] float alpha); |
| 198 void setShadow(in float width, in float height, in float blur, in float
grayLevel, in [Optional] float alpha); | 198 void setShadow(in float width, in float height, in float blur, in float
grayLevel, in [Optional] float alpha); |
| 199 void setShadow(in float width, in float height, in float blur, in float
r, in float g, in float b, in float a); | 199 void setShadow(in float width, in float height, in float blur, in float
r, in float g, in float b, in float a); |
| 200 void setShadow(in float width, in float height, in float blur, in float
c, in float m, in float y, in float k, in float a); | 200 void setShadow(in float width, in float height, in float blur, in float
c, in float m, in float y, in float k, in float a); |
| 201 | 201 |
| 202 void putImageData(in ImageData imagedata, in float dx, in float dy) | 202 void putImageData(in ImageData? imagedata, in float dx, in float dy) |
| 203 raises(DOMException); | 203 raises(DOMException); |
| 204 void putImageData(in ImageData imagedata, in float dx, in float dy, in f
loat dirtyX, in float dirtyY, in float dirtyWidth, in float dirtyHeight) | 204 void putImageData(in ImageData? imagedata, in float dx, in float dy, in
float dirtyX, in float dirtyY, in float dirtyWidth, in float dirtyHeight) |
| 205 raises(DOMException); | 205 raises(DOMException); |
| 206 | 206 |
| 207 void webkitPutImageDataHD(in ImageData imagedata, in float dx, in float
dy) | 207 void webkitPutImageDataHD(in ImageData? imagedata, in float dx, in float
dy) |
| 208 raises(DOMException); | 208 raises(DOMException); |
| 209 void webkitPutImageDataHD(in ImageData imagedata, in float dx, in float
dy, in float dirtyX, in float dirtyY, in float dirtyWidth, in float dirtyHeight) | 209 void webkitPutImageDataHD(in ImageData? imagedata, in float dx, in float
dy, in float dirtyX, in float dirtyY, in float dirtyWidth, in float dirtyHeight
) |
| 210 raises(DOMException); | 210 raises(DOMException); |
| 211 | 211 |
| 212 CanvasPattern createPattern(in HTMLCanvasElement canvas, in [TreatNullAs
=NullString] DOMString repetitionType) | 212 CanvasPattern createPattern(in HTMLCanvasElement? canvas, in [TreatNullA
s=NullString] DOMString repetitionType) |
| 213 raises (DOMException); | 213 raises (DOMException); |
| 214 CanvasPattern createPattern(in HTMLImageElement image, in [TreatNullAs=N
ullString] DOMString repetitionType) | 214 CanvasPattern createPattern(in HTMLImageElement? image, in [TreatNullAs=
NullString] DOMString repetitionType) |
| 215 raises (DOMException); | 215 raises (DOMException); |
| 216 ImageData createImageData(in ImageData imagedata) | 216 ImageData createImageData(in ImageData? imagedata) |
| 217 raises (DOMException); | 217 raises (DOMException); |
| 218 ImageData createImageData(in float sw, in float sh) | 218 ImageData createImageData(in float sw, in float sh) |
| 219 raises (DOMException); | 219 raises (DOMException); |
| 220 | 220 |
| 221 attribute [Custom] custom strokeStyle; | 221 attribute [Custom] custom strokeStyle; |
| 222 attribute [Custom] custom fillStyle; | 222 attribute [Custom] custom fillStyle; |
| 223 | 223 |
| 224 // pixel manipulation | 224 // pixel manipulation |
| 225 ImageData getImageData(in [Optional=DefaultIsUndefined] float sx, in [Op
tional=DefaultIsUndefined] float sy, | 225 ImageData getImageData(in [Optional=DefaultIsUndefined] float sx, in [Op
tional=DefaultIsUndefined] float sy, |
| 226 in [Optional=DefaultIsUndefined] float sw, in [Op
tional=DefaultIsUndefined] float sh) | 226 in [Optional=DefaultIsUndefined] float sw, in [Op
tional=DefaultIsUndefined] float sh) |
| 227 raises(DOMException); | 227 raises(DOMException); |
| 228 | 228 |
| 229 ImageData webkitGetImageDataHD(in [Optional=DefaultIsUndefined] float sx
, in [Optional=DefaultIsUndefined] float sy, | 229 ImageData webkitGetImageDataHD(in [Optional=DefaultIsUndefined] float sx
, in [Optional=DefaultIsUndefined] float sy, |
| 230 in [Optional=DefaultIsUndefined] float sw
, in [Optional=DefaultIsUndefined] float sh) | 230 in [Optional=DefaultIsUndefined] float sw
, in [Optional=DefaultIsUndefined] float sh) |
| 231 raises(DOMException); | 231 raises(DOMException); |
| 232 | 232 |
| 233 readonly attribute float webkitBackingStorePixelRatio; | 233 readonly attribute float webkitBackingStorePixelRatio; |
| 234 | 234 |
| 235 attribute boolean webkitImageSmoothingEnabled; | 235 attribute boolean webkitImageSmoothingEnabled; |
| 236 }; | 236 }; |
| 237 | 237 |
| 238 } | 238 } |
| 239 | 239 |
| OLD | NEW |