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

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 17789002: Fix typo in documentation of CanvasElement.toDataUrl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Dartium. Created 7 years, 6 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 | sdk/lib/html/dartium/html_dartium.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 /// The Dart HTML library. 1 /// The Dart HTML library.
2 library dart.dom.html; 2 library dart.dom.html;
3 3
4 import 'dart:async'; 4 import 'dart:async';
5 import 'dart:collection'; 5 import 'dart:collection';
6 import 'dart:_collection-dev' hide Symbol; 6 import 'dart:_collection-dev' hide Symbol;
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:indexed_db'; 8 import 'dart:indexed_db';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:json' as json; 10 import 'dart:json' as json;
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 * 848 *
849 * If the type requested is not 'image/png', and the returned value is 849 * If the type requested is not 'image/png', and the returned value is
850 * 'data:image/png', then the requested type is not supported. 850 * 'data:image/png', then the requested type is not supported.
851 * 851 *
852 * Example usage: 852 * Example usage:
853 * 853 *
854 * CanvasElement canvas = new CanvasElement(); 854 * CanvasElement canvas = new CanvasElement();
855 * var ctx = canvas.context2D 855 * var ctx = canvas.context2D
856 * ..fillStyle = "rgb(200,0,0)" 856 * ..fillStyle = "rgb(200,0,0)"
857 * ..fillRect(10, 10, 55, 50); 857 * ..fillRect(10, 10, 55, 50);
858 * var dataUrl = canvas.toDataURL("image/jpeg", 0.95); 858 * var dataUrl = canvas.toDataUrl("image/jpeg", 0.95);
859 * // The Data Uri would look similar to 859 * // The Data Uri would look similar to
860 * // 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA 860 * // 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA
861 * // AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO 861 * // AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
862 * // 9TXL0Y4OHwAAAABJRU5ErkJggg==' 862 * // 9TXL0Y4OHwAAAABJRU5ErkJggg=='
863 * //Create a new image element from the data URI. 863 * //Create a new image element from the data URI.
864 * var img = new ImageElement(); 864 * var img = new ImageElement();
865 * img.src = dataUrl; 865 * img.src = dataUrl;
866 * document.body.children.add(img); 866 * document.body.children.add(img);
867 * 867 *
868 * See also: 868 * See also:
(...skipping 28736 matching lines...) Expand 10 before | Expand all | Expand 10 after
29605 _position = nextPosition; 29605 _position = nextPosition;
29606 return true; 29606 return true;
29607 } 29607 }
29608 _current = null; 29608 _current = null;
29609 _position = _array.length; 29609 _position = _array.length;
29610 return false; 29610 return false;
29611 } 29611 }
29612 29612
29613 T get current => _current; 29613 T get current => _current;
29614 } 29614 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698