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

Side by Side Diff: tools/dom/docs/docs.json

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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "dart.dom.html": { 2 "dart.dom.html": {
3 "CanvasGradient": { 3 "CanvasGradient": {
4 "comment": [ 4 "comment": [
5 "/**", 5 "/**",
6 " * An opaque canvas object representing a gradient.", 6 " * An opaque canvas object representing a gradient.",
7 " *", 7 " *",
8 " * Created by calling [createLinearGradient] or [createRadialGradient] on a", 8 " * Created by calling [createLinearGradient] or [createRadialGradient] on a",
9 " * [CanvasRenderingContext2D] object.", 9 " * [CanvasRenderingContext2D] object.",
10 " *", 10 " *",
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 " *", 250 " *",
251 " * If the type requested is not 'image/png', and the returned value is", 251 " * If the type requested is not 'image/png', and the returned value is",
252 " * 'data:image/png', then the requested type is not supported.", 252 " * 'data:image/png', then the requested type is not supported.",
253 " *", 253 " *",
254 " * Example usage:", 254 " * Example usage:",
255 " *", 255 " *",
256 " * CanvasElement canvas = new CanvasElement();", 256 " * CanvasElement canvas = new CanvasElement();",
257 " * var ctx = canvas.context2D", 257 " * var ctx = canvas.context2D",
258 " * ..fillStyle = \"rgb(200,0,0)\"", 258 " * ..fillStyle = \"rgb(200,0,0)\"",
259 " * ..fillRect(10, 10, 55, 50);", 259 " * ..fillRect(10, 10, 55, 50);",
260 " * var dataUrl = canvas.toDataURL(\"image/jpeg\", 0.95);", 260 " * var dataUrl = canvas.toDataUrl(\"image/jpeg\", 0.95);",
261 " * // The Data Uri would look similar to", 261 " * // The Data Uri would look similar to",
262 " * // 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA", 262 " * // 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA",
263 " * // AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNB AAO", 263 " * // AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNB AAO",
264 " * // 9TXL0Y4OHwAAAABJRU5ErkJggg=='", 264 " * // 9TXL0Y4OHwAAAABJRU5ErkJggg=='",
265 " * //Create a new image element from the data URI.", 265 " * //Create a new image element from the data URI.",
266 " * var img = new ImageElement();", 266 " * var img = new ImageElement();",
267 " * img.src = dataUrl;", 267 " * img.src = dataUrl;",
268 " * document.body.children.add(img);", 268 " * document.body.children.add(img);",
269 " *", 269 " *",
270 " * See also:", 270 " * See also:",
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 " *", 615 " *",
616 " * [oldVersion] should match the database's current [version] exact ly.", 616 " * [oldVersion] should match the database's current [version] exact ly.",
617 " *", 617 " *",
618 " * * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom -database-changeversion) from W3C.", 618 " * * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom -database-changeversion) from W3C.",
619 " */" 619 " */"
620 ] 620 ]
621 } 621 }
622 } 622 }
623 } 623 }
624 } 624 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698