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

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

Issue 12090035: Split the comment strings in docs extraction on newlines. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merged master. Created 7 years, 10 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 | tools/dom/docs/lib/docs.dart » ('j') | tools/dom/docs/lib/docs.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "html": { 2 "html": {
3 "CanvasGradient": { 3 "CanvasGradient": {
4 "comment": [ 4 "comment": [
5 "/**\n * An opaque canvas object representing a gradient.\n *\n * Create d by calling [createLinearGradient] or [createRadialGradient] on a\n * [CanvasRe nderingContext2D] object.\n *\n * Example usage:\n *\n * var canvas = new Ca nvasElement(width: 600, height: 600);\n * var ctx = canvas.context2d;\n * ctx.clearRect(0, 0, 600, 600);\n * ctx.save();\n * // Create radial gr adient.\n * CanvasGradient gradient = ctx.createRadialGradient(0, 0, 0, 0, 0 , 600);\n * gradient.addColorStop(0, '#000');\n * gradient.addColorStop( 1, 'rgb(255, 255, 255)');\n * // Assign gradients to fill.\n * ctx.fillS tyle = gradient;\n * // Draw a rectangle with a gradient fill.\n * ctx.f illRect(0, 0, 600, 600);\n * ctx.save();\n * document.body.children.add( canvas);\n *\n * See also:\n *\n * * [CanvasGradient](https://developer.mozilla. org/en-US/docs/DOM/CanvasGradient) from MDN.\n * * [CanvasGradient](http://www.w hatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#canvasgr adient) from whatwg.\n * * [CanvasGradient](http://www.w3.org/TR/2010/WD-2dconte xt-20100304/#canvasgradient) from W3C.\n */" 5 "/**",
6 " * An opaque canvas object representing a gradient.",
7 " *",
8 " * Created by calling [createLinearGradient] or [createRadialGradient] on a",
9 " * [CanvasRenderingContext2D] object.",
10 " *",
11 " * Example usage:",
12 " *",
13 " * var canvas = new CanvasElement(width: 600, height: 600);",
14 " * var ctx = canvas.context2d;",
15 " * ctx.clearRect(0, 0, 600, 600);",
16 " * ctx.save();",
17 " * // Create radial gradient.",
18 " * CanvasGradient gradient = ctx.createRadialGradient(0, 0, 0, 0, 0 , 600);",
19 " * gradient.addColorStop(0, '#000');",
20 " * gradient.addColorStop(1, 'rgb(255, 255, 255)');",
21 " * // Assign gradients to fill.",
22 " * ctx.fillStyle = gradient;",
23 " * // Draw a rectangle with a gradient fill.",
24 " * ctx.fillRect(0, 0, 600, 600);",
25 " * ctx.save();",
26 " * document.body.children.add(canvas);",
27 " *",
28 " * See also:",
29 " *",
30 " * * [CanvasGradient](https://developer.mozilla.org/en-US/docs/DOM/Canv asGradient) from MDN.",
31 " * * [CanvasGradient](http://www.whatwg.org/specs/web-apps/current-work /multipage/the-canvas-element.html#canvasgradient) from whatwg.",
32 " * * [CanvasGradient](http://www.w3.org/TR/2010/WD-2dcontext-20100304/# canvasgradient) from W3C.",
33 " */"
6 ], 34 ],
7 "members": { 35 "members": {
8 "addColorStop": [ 36 "addColorStop": [
9 "/**\n * Adds a color stop to this gradient at the offset.\n *\n * The [offset] can range between 0.0 and 1.0.\n *\n * See also:\n *\n * * [Multiple Color Stops](https://developer.mozilla.org/en-US/docs/CSS/linear-gr adient#Gradient_with_multiple_color_stops) from MDN.\n */" 37 "/**",
38 " * Adds a color stop to this gradient at the offset.",
39 " *",
40 " * The [offset] can range between 0.0 and 1.0.",
41 " *",
42 " * See also:",
43 " *",
44 " * * [Multiple Color Stops](https://developer.mozilla.org/en-US/doc s/CSS/linear-gradient#Gradient_with_multiple_color_stops) from MDN.",
45 " */"
10 ] 46 ]
11 } 47 }
12 }, 48 },
13 "CanvasPattern": { 49 "CanvasPattern": {
14 "comment": [ 50 "comment": [
15 "/**\n * An opaque object representing a pattern of image, canvas, or vi deo.\n *\n * Created by calling [createPattern] on a [CanvasRenderingContext2D] object.\n *\n * Example usage:\n *\n * var canvas = new CanvasElement(width: 600, height: 600);\n * var ctx = canvas.context2d;\n * var img = new Im ageElement();\n * // Image src needs to be loaded before pattern is applied. \n * img.onLoad.listen((event) {\n * // When the image is loaded, crea te a pattern\n * // from the ImageElement.\n * CanvasPattern pattern = ctx.createPattern(img, 'repeat');\n * ctx.rect(0, 0, canvas.width, canv as.height);\n * ctx.fillStyle = pattern;\n * ctx.fill();\n * }); \n * img.src = \"images/foo.jpg\";\n * document.body.children.add(canvas );\n *\n * See also:\n * * [CanvasPattern](https://developer.mozilla.org/en-US/d ocs/DOM/CanvasPattern) from MDN.\n * * [CanvasPattern](http://www.whatwg.org/spe cs/web-apps/current-work/multipage/the-canvas-element.html#canvaspattern) from w hatwg.\n * * [CanvasPattern](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#ca nvaspattern) from W3C.\n */" 51 "/**",
52 " * An opaque object representing a pattern of image, canvas, or video." ,
53 " *",
54 " * Created by calling [createPattern] on a [CanvasRenderingContext2D] o bject.",
55 " *",
56 " * Example usage:",
57 " *",
58 " * var canvas = new CanvasElement(width: 600, height: 600);",
59 " * var ctx = canvas.context2d;",
60 " * var img = new ImageElement();",
61 " * // Image src needs to be loaded before pattern is applied.",
62 " * img.onLoad.listen((event) {",
63 " * // When the image is loaded, create a pattern",
64 " * // from the ImageElement.",
65 " * CanvasPattern pattern = ctx.createPattern(img, 'repeat');",
66 " * ctx.rect(0, 0, canvas.width, canvas.height);",
67 " * ctx.fillStyle = pattern;",
68 " * ctx.fill();",
69 " * });",
70 " * img.src = \"images/foo.jpg\";",
71 " * document.body.children.add(canvas);",
72 " *",
73 " * See also:",
74 " * * [CanvasPattern](https://developer.mozilla.org/en-US/docs/DOM/Canva sPattern) from MDN.",
75 " * * [CanvasPattern](http://www.whatwg.org/specs/web-apps/current-work/ multipage/the-canvas-element.html#canvaspattern) from whatwg.",
76 " * * [CanvasPattern](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#c anvaspattern) from W3C.",
77 " */"
16 ] 78 ]
17 }, 79 },
18 "CanvasRenderingContext": { 80 "CanvasRenderingContext": {
19 "comment": [ 81 "comment": [
20 "/**\n * A rendering context for a canvas element.\n *\n * This context is extended by [CanvasRenderingContext2D] and\n * [WebGLRenderingContext].\n */" 82 "/**",
83 " * A rendering context for a canvas element.",
84 " *",
85 " * This context is extended by [CanvasRenderingContext2D] and",
86 " * [WebGLRenderingContext].",
87 " */"
21 ], 88 ],
22 "members": { 89 "members": {
23 "canvas": [ 90 "canvas": [
24 "/// Reference to the canvas element to which this context belongs." 91 "/// Reference to the canvas element to which this context belongs."
25 ] 92 ]
26 } 93 }
27 }, 94 },
28 "Document": { 95 "Document": {
29 "members": { 96 "members": {
30 "body": [ 97 "body": [
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 "/// Moved to [HtmlDocument]." 158 "/// Moved to [HtmlDocument]."
92 ] 159 ]
93 } 160 }
94 }, 161 },
95 "HTMLCanvasElement": { 162 "HTMLCanvasElement": {
96 "members": { 163 "members": {
97 "height": [ 164 "height": [
98 "/// The height of this canvas element in CSS pixels." 165 "/// The height of this canvas element in CSS pixels."
99 ], 166 ],
100 "toDataURL": [ 167 "toDataURL": [
101 "/**\n * Returns a data URI containing a representation of the image in the\n * format specified by type (defaults to 'image/png').\n *\n * Da ta Uri format is as follow `data:[<MIME-type>][;charset=<encoding>][;base64],<da ta>`\n *\n * Optional parameter [quality] in the range of 0.0 and 1.0 can be used when requesting [type]\n * 'image/jpeg' or 'image/webp'. If [quality] is not passed the default\n * value is used. Note: the default value varies by b rowser.\n *\n * If the height or width of this canvas element is 0, then 'da ta:' is returned,\n * representing no data.\n *\n * If the type requested is not 'image/png', and the returned value is\n * 'data:image/png', then the r equested type is not supported.\n *\n * Example usage:\n *\n * Canva sElement canvas = new CanvasElement();\n * var ctx = canvas.context2d\n * ..fillStyle = \"rgb(200,0,0)\"\n * ..fillRect(10, 10, 55, 50);\n * var dataUrl = canvas.toDataURL(\"image/jpeg\", 0.95);\n * // The Data Uri would look similar to\n * // 'data:image/png;base64,iVBORw0KGgoAAAANS UhEUgAAAAUA\n * // AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxglj NBAAO\n * // 9TXL0Y4OHwAAAABJRU5ErkJggg=='\n * //Create a new image element from the data URI.\n * var img = new ImageElement();\n * img .src = dataUrl;\n * document.body.children.add(img);\n *\n * See also: \n *\n * * [Data URI Scheme](http://en.wikipedia.org/wiki/Data_URI_scheme) f rom Wikipedia.\n *\n * * [HTMLCanvasElement](https://developer.mozilla.org/e n-US/docs/DOM/HTMLCanvasElement) from MDN.\n *\n * * [toDataUrl](http://dev. w3.org/html5/spec/the-canvas-element.html#dom-canvas-todataurl) from W3C.\n */ " 168 "/**",
169 " * Returns a data URI containing a representation of the image in t he",
170 " * format specified by type (defaults to 'image/png').",
171 " *",
172 " * Data Uri format is as follow `data:[<MIME-type>][;charset=<encod ing>][;base64],<data>`",
173 " *",
174 " * Optional parameter [quality] in the range of 0.0 and 1.0 can be used when requesting [type]",
175 " * 'image/jpeg' or 'image/webp'. If [quality] is not passed the def ault",
176 " * value is used. Note: the default value varies by browser.",
177 " *",
178 " * If the height or width of this canvas element is 0, then 'data:' is returned,",
179 " * representing no data.",
180 " *",
181 " * If the type requested is not 'image/png', and the returned value is",
182 " * 'data:image/png', then the requested type is not supported.",
183 " *",
184 " * Example usage:",
185 " *",
186 " * CanvasElement canvas = new CanvasElement();",
187 " * var ctx = canvas.context2d",
188 " * ..fillStyle = \"rgb(200,0,0)\"",
189 " * ..fillRect(10, 10, 55, 50);",
190 " * var dataUrl = canvas.toDataURL(\"image/jpeg\", 0.95);",
191 " * // The Data Uri would look similar to",
192 " * // 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA",
193 " * // AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNB AAO",
194 " * // 9TXL0Y4OHwAAAABJRU5ErkJggg=='",
195 " * //Create a new image element from the data URI.",
196 " * var img = new ImageElement();",
197 " * img.src = dataUrl;",
198 " * document.body.children.add(img);",
199 " *",
200 " * See also:",
201 " *",
202 " * * [Data URI Scheme](http://en.wikipedia.org/wiki/Data_URI_scheme ) from Wikipedia.",
203 " *",
204 " * * [HTMLCanvasElement](https://developer.mozilla.org/en-US/docs/D OM/HTMLCanvasElement) from MDN.",
205 " *",
206 " * * [toDataUrl](http://dev.w3.org/html5/spec/the-canvas-element.ht ml#dom-canvas-todataurl) from W3C.",
207 " */"
102 ], 208 ],
103 "width": [ 209 "width": [
104 "/// The width of this canvas element in CSS pixels." 210 "/// The width of this canvas element in CSS pixels."
105 ] 211 ]
106 } 212 }
107 } 213 }
108 } 214 }
109 } 215 }
OLDNEW
« no previous file with comments | « no previous file | tools/dom/docs/lib/docs.dart » ('j') | tools/dom/docs/lib/docs.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698