| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class _CanvasRenderingContext2DWrappingImplementation extends _CanvasRenderingCo
ntextWrappingImplementation implements CanvasRenderingContext2D { | 7 class _CanvasRenderingContext2DWrappingImplementation extends _CanvasRenderingCo
ntextWrappingImplementation implements CanvasRenderingContext2D { |
| 8 _CanvasRenderingContext2DWrappingImplementation() : super() {} | 8 _CanvasRenderingContext2DWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__CanvasRenderingContext2DWrappingImplementation() native { | 10 static create__CanvasRenderingContext2DWrappingImplementation() native { |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 throw "Incorrect number or type of arguments"; | 192 throw "Incorrect number or type of arguments"; |
| 193 } | 193 } |
| 194 static CanvasPattern _createPattern(receiver, canvas_OR_image, repetitionType)
native; | 194 static CanvasPattern _createPattern(receiver, canvas_OR_image, repetitionType)
native; |
| 195 static CanvasPattern _createPattern_2(receiver, canvas_OR_image, repetitionTyp
e) native; | 195 static CanvasPattern _createPattern_2(receiver, canvas_OR_image, repetitionTyp
e) native; |
| 196 | 196 |
| 197 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1) { | 197 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1) { |
| 198 return _createRadialGradient(this, x0, y0, r0, x1, y1, r1); | 198 return _createRadialGradient(this, x0, y0, r0, x1, y1, r1); |
| 199 } | 199 } |
| 200 static CanvasGradient _createRadialGradient(receiver, x0, y0, r0, x1, y1, r1)
native; | 200 static CanvasGradient _createRadialGradient(receiver, x0, y0, r0, x1, y1, r1)
native; |
| 201 | 201 |
| 202 void drawImage(var canvas_OR_image, num sx_OR_x, num sy_OR_y, [num sw_OR_width
= null, num height_OR_sh = null, num dx = null, num dy = null, num dw = null, n
um dh = null]) { | 202 void drawImage(var canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw
_OR_width = null, num height_OR_sh = null, num dx = null, num dy = null, num dw
= null, num dh = null]) { |
| 203 if (canvas_OR_image is HTMLImageElement) { | 203 if (canvas_OR_image_OR_video is HTMLImageElement) { |
| 204 if (sw_OR_width === null) { | 204 if (sw_OR_width === null) { |
| 205 if (height_OR_sh === null) { | 205 if (height_OR_sh === null) { |
| 206 if (dx === null) { | 206 if (dx === null) { |
| 207 if (dy === null) { | 207 if (dy === null) { |
| 208 if (dw === null) { | 208 if (dw === null) { |
| 209 if (dh === null) { | 209 if (dh === null) { |
| 210 _drawImage(this, canvas_OR_image, sx_OR_x, sy_OR_y); | 210 _drawImage(this, canvas_OR_image_OR_video, sx_OR_x, sy_OR_y); |
| 211 return; | 211 return; |
| 212 } | 212 } |
| 213 } | 213 } |
| 214 } | 214 } |
| 215 } | 215 } |
| 216 } | 216 } |
| 217 } else { | 217 } else { |
| 218 if (dx === null) { | 218 if (dx === null) { |
| 219 if (dy === null) { | 219 if (dy === null) { |
| 220 if (dw === null) { | 220 if (dw === null) { |
| 221 if (dh === null) { | 221 if (dh === null) { |
| 222 _drawImage_2(this, canvas_OR_image, sx_OR_x, sy_OR_y, sw_OR_widt
h, height_OR_sh); | 222 _drawImage_2(this, canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, s
w_OR_width, height_OR_sh); |
| 223 return; | 223 return; |
| 224 } | 224 } |
| 225 } | 225 } |
| 226 } | 226 } |
| 227 } else { | 227 } else { |
| 228 _drawImage_3(this, canvas_OR_image, sx_OR_x, sy_OR_y, sw_OR_width, hei
ght_OR_sh, dx, dy, dw, dh); | 228 _drawImage_3(this, canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_w
idth, height_OR_sh, dx, dy, dw, dh); |
| 229 return; | 229 return; |
| 230 } | 230 } |
| 231 } | 231 } |
| 232 } else { | 232 } else { |
| 233 if (canvas_OR_image is HTMLCanvasElement) { | 233 if (canvas_OR_image_OR_video is HTMLCanvasElement) { |
| 234 if (sw_OR_width === null) { | 234 if (sw_OR_width === null) { |
| 235 if (height_OR_sh === null) { | 235 if (height_OR_sh === null) { |
| 236 if (dx === null) { | 236 if (dx === null) { |
| 237 if (dy === null) { | 237 if (dy === null) { |
| 238 if (dw === null) { | 238 if (dw === null) { |
| 239 if (dh === null) { | 239 if (dh === null) { |
| 240 _drawImage_4(this, canvas_OR_image, sx_OR_x, sy_OR_y); | 240 _drawImage_4(this, canvas_OR_image_OR_video, sx_OR_x, sy_OR_
y); |
| 241 return; | 241 return; |
| 242 } | 242 } |
| 243 } | 243 } |
| 244 } | 244 } |
| 245 } | 245 } |
| 246 } | 246 } |
| 247 } else { | 247 } else { |
| 248 if (dx === null) { | 248 if (dx === null) { |
| 249 if (dy === null) { | 249 if (dy === null) { |
| 250 if (dw === null) { | 250 if (dw === null) { |
| 251 if (dh === null) { | 251 if (dh === null) { |
| 252 _drawImage_5(this, canvas_OR_image, sx_OR_x, sy_OR_y, sw_OR_wi
dth, height_OR_sh); | 252 _drawImage_5(this, canvas_OR_image_OR_video, sx_OR_x, sy_OR_y,
sw_OR_width, height_OR_sh); |
| 253 return; | 253 return; |
| 254 } | 254 } |
| 255 } | 255 } |
| 256 } | 256 } |
| 257 } else { | 257 } else { |
| 258 _drawImage_6(this, canvas_OR_image, sx_OR_x, sy_OR_y, sw_OR_width, h
eight_OR_sh, dx, dy, dw, dh); | 258 _drawImage_6(this, canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR
_width, height_OR_sh, dx, dy, dw, dh); |
| 259 return; | 259 return; |
| 260 } | 260 } |
| 261 } | 261 } |
| 262 } else { |
| 263 if (canvas_OR_image_OR_video is HTMLVideoElement) { |
| 264 if (sw_OR_width === null) { |
| 265 if (height_OR_sh === null) { |
| 266 if (dx === null) { |
| 267 if (dy === null) { |
| 268 if (dw === null) { |
| 269 if (dh === null) { |
| 270 _drawImage_7(this, canvas_OR_image_OR_video, sx_OR_x, sy_O
R_y); |
| 271 return; |
| 272 } |
| 273 } |
| 274 } |
| 275 } |
| 276 } |
| 277 } else { |
| 278 if (dx === null) { |
| 279 if (dy === null) { |
| 280 if (dw === null) { |
| 281 if (dh === null) { |
| 282 _drawImage_8(this, canvas_OR_image_OR_video, sx_OR_x, sy_OR_
y, sw_OR_width, height_OR_sh); |
| 283 return; |
| 284 } |
| 285 } |
| 286 } |
| 287 } else { |
| 288 _drawImage_9(this, canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_
OR_width, height_OR_sh, dx, dy, dw, dh); |
| 289 return; |
| 290 } |
| 291 } |
| 292 } |
| 262 } | 293 } |
| 263 } | 294 } |
| 264 throw "Incorrect number or type of arguments"; | 295 throw "Incorrect number or type of arguments"; |
| 265 } | 296 } |
| 266 static void _drawImage(receiver, canvas_OR_image, sx_OR_x, sy_OR_y) native; | 297 static void _drawImage(receiver, canvas_OR_image_OR_video, sx_OR_x, sy_OR_y) n
ative; |
| 267 static void _drawImage_2(receiver, canvas_OR_image, sx_OR_x, sy_OR_y, sw_OR_wi
dth, height_OR_sh) native; | 298 static void _drawImage_2(receiver, canvas_OR_image_OR_video, sx_OR_x, sy_OR_y,
sw_OR_width, height_OR_sh) native; |
| 268 static void _drawImage_3(receiver, canvas_OR_image, sx_OR_x, sy_OR_y, sw_OR_wi
dth, height_OR_sh, dx, dy, dw, dh) native; | 299 static void _drawImage_3(receiver, canvas_OR_image_OR_video, sx_OR_x, sy_OR_y,
sw_OR_width, height_OR_sh, dx, dy, dw, dh) native; |
| 269 static void _drawImage_4(receiver, canvas_OR_image, sx_OR_x, sy_OR_y) native; | 300 static void _drawImage_4(receiver, canvas_OR_image_OR_video, sx_OR_x, sy_OR_y)
native; |
| 270 static void _drawImage_5(receiver, canvas_OR_image, sx_OR_x, sy_OR_y, sw_OR_wi
dth, height_OR_sh) native; | 301 static void _drawImage_5(receiver, canvas_OR_image_OR_video, sx_OR_x, sy_OR_y,
sw_OR_width, height_OR_sh) native; |
| 271 static void _drawImage_6(receiver, canvas_OR_image, sx_OR_x, sy_OR_y, sw_OR_wi
dth, height_OR_sh, dx, dy, dw, dh) native; | 302 static void _drawImage_6(receiver, canvas_OR_image_OR_video, sx_OR_x, sy_OR_y,
sw_OR_width, height_OR_sh, dx, dy, dw, dh) native; |
| 303 static void _drawImage_7(receiver, canvas_OR_image_OR_video, sx_OR_x, sy_OR_y)
native; |
| 304 static void _drawImage_8(receiver, canvas_OR_image_OR_video, sx_OR_x, sy_OR_y,
sw_OR_width, height_OR_sh) native; |
| 305 static void _drawImage_9(receiver, canvas_OR_image_OR_video, sx_OR_x, sy_OR_y,
sw_OR_width, height_OR_sh, dx, dy, dw, dh) native; |
| 272 | 306 |
| 273 void drawImageFromRect(HTMLImageElement image, [num sx = null, num sy = null,
num sw = null, num sh = null, num dx = null, num dy = null, num dw = null, num d
h = null, String compositeOperation = null]) { | 307 void drawImageFromRect(HTMLImageElement image, [num sx = null, num sy = null,
num sw = null, num sh = null, num dx = null, num dy = null, num dw = null, num d
h = null, String compositeOperation = null]) { |
| 274 if (sx === null) { | 308 if (sx === null) { |
| 275 if (sy === null) { | 309 if (sy === null) { |
| 276 if (sw === null) { | 310 if (sw === null) { |
| 277 if (sh === null) { | 311 if (sh === null) { |
| 278 if (dx === null) { | 312 if (dx === null) { |
| 279 if (dy === null) { | 313 if (dy === null) { |
| 280 if (dw === null) { | 314 if (dw === null) { |
| 281 if (dh === null) { | 315 if (dh === null) { |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 static void _transform(receiver, m11, m12, m21, m22, dx, dy) native; | 819 static void _transform(receiver, m11, m12, m21, m22, dx, dy) native; |
| 786 | 820 |
| 787 void translate(num tx, num ty) { | 821 void translate(num tx, num ty) { |
| 788 _translate(this, tx, ty); | 822 _translate(this, tx, ty); |
| 789 return; | 823 return; |
| 790 } | 824 } |
| 791 static void _translate(receiver, tx, ty) native; | 825 static void _translate(receiver, tx, ty) native; |
| 792 | 826 |
| 793 String get typeName() { return "CanvasRenderingContext2D"; } | 827 String get typeName() { return "CanvasRenderingContext2D"; } |
| 794 } | 828 } |
| OLD | NEW |