| OLD | NEW |
| 1 #library('dom'); | 1 #library('dom'); |
| 2 | 2 |
| 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 4 // for details. All rights reserved. Use of this source code is governed by a | 4 // for details. All rights reserved. Use of this source code is governed by a |
| 5 // BSD-style license that can be found in the LICENSE file. | 5 // BSD-style license that can be found in the LICENSE file. |
| 6 | 6 |
| 7 // DO NOT EDIT | 7 // DO NOT EDIT |
| 8 // Auto-generated Dart DOM library. | 8 // Auto-generated Dart DOM library. |
| 9 | 9 |
| 10 #native("frog_dom.js"); | 10 #native("frog_dom.js"); |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 | 285 |
| 286 HTMLCanvasElement canvas; | 286 HTMLCanvasElement canvas; |
| 287 | 287 |
| 288 var dartObjectLocalStorage; | 288 var dartObjectLocalStorage; |
| 289 | 289 |
| 290 String get typeName() native; | 290 String get typeName() native; |
| 291 } | 291 } |
| 292 | 292 |
| 293 class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend
eringContext2D" { | 293 class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend
eringContext2D" { |
| 294 | 294 |
| 295 // TODO(vsm): Auto-generate these two fields. |
| 296 var fillStyle; |
| 297 var strokeStyle; |
| 298 |
| 295 String font; | 299 String font; |
| 296 | 300 |
| 297 num globalAlpha; | 301 num globalAlpha; |
| 298 | 302 |
| 299 String globalCompositeOperation; | 303 String globalCompositeOperation; |
| 300 | 304 |
| 301 String lineCap; | 305 String lineCap; |
| 302 | 306 |
| 303 String lineJoin; | 307 String lineJoin; |
| 304 | 308 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 void save() native; | 379 void save() native; |
| 376 | 380 |
| 377 void scale(num sx, num sy) native; | 381 void scale(num sx, num sy) native; |
| 378 | 382 |
| 379 void setAlpha(num alpha) native; | 383 void setAlpha(num alpha) native; |
| 380 | 384 |
| 381 void setCompositeOperation(String compositeOperation) native; | 385 void setCompositeOperation(String compositeOperation) native; |
| 382 | 386 |
| 383 void setFillColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m = nul
l, num b_OR_y = null, num a_OR_k = null, num a = null]) native; | 387 void setFillColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m = nul
l, num b_OR_y = null, num a_OR_k = null, num a = null]) native; |
| 384 | 388 |
| 385 void setFillStyle(var color_OR_gradient_OR_pattern) native; | 389 // TODO(vsm): Auto-generate this method. |
| 390 void setFillStyle(var color_OR_gradient_OR_pattern) { |
| 391 this.fillStyle = color_OR_gradient_OR_pattern; |
| 392 } |
| 386 | 393 |
| 387 void setLineCap(String cap) native; | 394 void setLineCap(String cap) native; |
| 388 | 395 |
| 389 void setLineJoin(String join) native; | 396 void setLineJoin(String join) native; |
| 390 | 397 |
| 391 void setLineWidth(num width) native; | 398 void setLineWidth(num width) native; |
| 392 | 399 |
| 393 void setMiterLimit(num limit) native; | 400 void setMiterLimit(num limit) native; |
| 394 | 401 |
| 395 void setShadow(num width, num height, num blur, [var c_OR_color_OR_grayLevel_O
R_r = null, num alpha_OR_g_OR_m = null, num b_OR_y = null, num a_OR_k = null, nu
m a = null]) native; | 402 void setShadow(num width, num height, num blur, [var c_OR_color_OR_grayLevel_O
R_r = null, num alpha_OR_g_OR_m = null, num b_OR_y = null, num a_OR_k = null, nu
m a = null]) native; |
| 396 | 403 |
| 397 void setStrokeColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m = n
ull, num b_OR_y = null, num a_OR_k = null, num a = null]) native; | 404 void setStrokeColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m = n
ull, num b_OR_y = null, num a_OR_k = null, num a = null]) native; |
| 398 | 405 |
| 399 void setStrokeStyle(var color_OR_gradient_OR_pattern) native; | 406 // TODO(vsm): Auto-generate this method. |
| 407 void setStrokeStyle(var color_OR_gradient_OR_pattern) { |
| 408 this.strokeStyle = color_OR_gradient_OR_pattern; |
| 409 } |
| 400 | 410 |
| 401 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native; | 411 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native; |
| 402 | 412 |
| 403 void stroke() native; | 413 void stroke() native; |
| 404 | 414 |
| 405 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) n
ative; | 415 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) n
ative; |
| 406 | 416 |
| 407 void strokeText(String text, num x, num y, [num maxWidth = null]) native; | 417 void strokeText(String text, num x, num y, [num maxWidth = null]) native; |
| 408 | 418 |
| 409 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; | 419 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; |
| (...skipping 6085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6495 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 6505 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 6496 // for details. All rights reserved. Use of this source code is governed by a | 6506 // for details. All rights reserved. Use of this source code is governed by a |
| 6497 // BSD-style license that can be found in the LICENSE file. | 6507 // BSD-style license that can be found in the LICENSE file. |
| 6498 | 6508 |
| 6499 typedef bool RequestAnimationFrameCallback(int time); | 6509 typedef bool RequestAnimationFrameCallback(int time); |
| 6500 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 6510 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 6501 // for details. All rights reserved. Use of this source code is governed by a | 6511 // for details. All rights reserved. Use of this source code is governed by a |
| 6502 // BSD-style license that can be found in the LICENSE file. | 6512 // BSD-style license that can be found in the LICENSE file. |
| 6503 | 6513 |
| 6504 typedef void TimeoutHandler(); | 6514 typedef void TimeoutHandler(); |
| OLD | NEW |