Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(862)

Side by Side Diff: lib/dom/dart2js/dom_dart2js.dart

Issue 10827399: Add an optional argument to HTMLCanvasElement.toDataURL. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | lib/dom/dom.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #library('dart:dom_deprecated'); 1 #library('dart:dom_deprecated');
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 10
(...skipping 2803 matching lines...) Expand 10 before | Expand all | Expand 10 after
2814 } 2814 }
2815 2815
2816 class _HTMLCanvasElementJs extends _HTMLElementJs implements HTMLCanvasElement n ative "*HTMLCanvasElement" { 2816 class _HTMLCanvasElementJs extends _HTMLElementJs implements HTMLCanvasElement n ative "*HTMLCanvasElement" {
2817 2817
2818 int height; 2818 int height;
2819 2819
2820 int width; 2820 int width;
2821 2821
2822 Object getContext(String contextId) native; 2822 Object getContext(String contextId) native;
2823 2823
2824 String toDataURL(String type) native; 2824 String toDataURL(String type, [num quality]) native;
2825 } 2825 }
2826 2826
2827 class _HTMLCollectionJs extends _DOMTypeJs implements HTMLCollection native "*HT MLCollection" { 2827 class _HTMLCollectionJs extends _DOMTypeJs implements HTMLCollection native "*HT MLCollection" {
2828 2828
2829 final int length; 2829 final int length;
2830 2830
2831 _NodeJs operator[](int index) native "return this[index];"; 2831 _NodeJs operator[](int index) native "return this[index];";
2832 2832
2833 void operator[]=(int index, _NodeJs value) { 2833 void operator[]=(int index, _NodeJs value) {
2834 throw new UnsupportedOperationException("Cannot assign element of immutable List."); 2834 throw new UnsupportedOperationException("Cannot assign element of immutable List.");
(...skipping 12697 matching lines...) Expand 10 before | Expand all | Expand 10 after
15532 // WARNING: Do not edit - generated code. 15532 // WARNING: Do not edit - generated code.
15533 15533
15534 interface HTMLCanvasElement extends HTMLElement { 15534 interface HTMLCanvasElement extends HTMLElement {
15535 15535
15536 int height; 15536 int height;
15537 15537
15538 int width; 15538 int width;
15539 15539
15540 Object getContext(String contextId); 15540 Object getContext(String contextId);
15541 15541
15542 String toDataURL(String type); 15542 String toDataURL(String type, [num quality]);
15543 } 15543 }
15544 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15544 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15545 // for details. All rights reserved. Use of this source code is governed by a 15545 // for details. All rights reserved. Use of this source code is governed by a
15546 // BSD-style license that can be found in the LICENSE file. 15546 // BSD-style license that can be found in the LICENSE file.
15547 15547
15548 // WARNING: Do not edit - generated code. 15548 // WARNING: Do not edit - generated code.
15549 15549
15550 interface HTMLCollection extends List<Node> { 15550 interface HTMLCollection extends List<Node> {
15551 15551
15552 final int length; 15552 final int length;
(...skipping 9926 matching lines...) Expand 10 before | Expand all | Expand 10 after
25479 if (length < 0) throw new IllegalArgumentException('length'); 25479 if (length < 0) throw new IllegalArgumentException('length');
25480 if (start < 0) throw new IndexOutOfRangeException(start); 25480 if (start < 0) throw new IndexOutOfRangeException(start);
25481 int end = start + length; 25481 int end = start + length;
25482 if (end > a.length) throw new IndexOutOfRangeException(end); 25482 if (end > a.length) throw new IndexOutOfRangeException(end);
25483 for (int i = start; i < end; i++) { 25483 for (int i = start; i < end; i++) {
25484 accumulator.add(a[i]); 25484 accumulator.add(a[i]);
25485 } 25485 }
25486 return accumulator; 25486 return accumulator;
25487 } 25487 }
25488 } 25488 }
OLDNEW
« no previous file with comments | « no previous file | lib/dom/dom.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698