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

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

Issue 12093101: Add even more documentation back to HTML. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/generator.py » ('j') | 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 " * * [HTMLCanvasElement](https://developer.mozilla.org/en-US/docs/D OM/HTMLCanvasElement) from MDN.", 204 " * * [HTMLCanvasElement](https://developer.mozilla.org/en-US/docs/D OM/HTMLCanvasElement) from MDN.",
205 " *", 205 " *",
206 " * * [toDataUrl](http://dev.w3.org/html5/spec/the-canvas-element.ht ml#dom-canvas-todataurl) from W3C.", 206 " * * [toDataUrl](http://dev.w3.org/html5/spec/the-canvas-element.ht ml#dom-canvas-todataurl) from W3C.",
207 " */" 207 " */"
208 ], 208 ],
209 "width": [ 209 "width": [
210 "/// The width of this canvas element in CSS pixels." 210 "/// The width of this canvas element in CSS pixels."
211 ] 211 ]
212 } 212 }
213 }, 213 },
214 "HTMLDivElement": {
215 "comment": [
216 "/**",
217 " * Represents an HTML <div> element.",
218 " *",
219 " * The [DivElement] is a generic container for content and does not hav e any",
220 " * special significance. It is functionally similar to [SpanElement].",
221 " *",
222 " * The [DivElement] is a block-level element, as opposed to [SpanElemen t],",
223 " * which is an inline-level element.",
224 " *",
225 " * Example usage:",
226 " *",
227 " * DivElement div = new DivElement();",
228 " * div.text = 'Here's my new DivElem",
229 " * document.body.elements.add(elem);",
230 " *",
231 " * See also:",
232 " *",
233 " * * [HTML <div> element](http://www.w3.org/TR/html-markup/div.html) fr om W3C.",
234 " * * [Block-level element](http://www.w3.org/TR/CSS2/visuren.html#block -boxes) from W3C.",
235 " * * [Inline-level element](http://www.w3.org/TR/CSS2/visuren.html#inli ne-boxes) from W3C.",
236 " */"
237 ]
238 },
214 "XMLHttpRequest": { 239 "XMLHttpRequest": {
215 "members": { 240 "members": {
241 "abort": [
242 "/**",
243 " * Stop the current request.",
244 " *",
245 " * The request can only be stopped if readyState is `HEADERS_RECIEV ED` or",
246 " * `LOADING`. If this method is not in the process of being sent, t he method",
247 " * has no effect.",
248 " */"
249 ],
250 "getAllResponseHeaders": [
251 "/**",
252 " * Retrieve all the response headers from a request.",
253 " *",
254 " * `null` if no headers have been received. For multipart requests, ",
255 " * `getAllResponseHeaders` will return the response headers for the current",
256 " * part of the request.",
257 " *",
258 " * See also [HTTP response headers](http://en.wikipedia.org/wiki/Li st_of_HTTP_header_fields#Responses)",
259 " * for a list of common response headers.",
260 " */"
261 ],
262 "getResponseHeader": [
263 "/**",
264 " * Return the response header named `header`, or `null` if not foun d.",
265 " *",
266 " * See also [HTTP response headers](http://en.wikipedia.org/wiki/Li st_of_HTTP_header_fields#Responses)",
267 " * for a list of common response headers.",
268 " */"
269 ],
270 "open": [
271 "/**",
272 " * Specify the desired `url`, and `method` to use in making the req uest.",
273 " *",
274 " * By default the request is done asyncronously, with no user or pa ssword",
275 " * authentication information. If `async` is false, the request wil l be send",
276 " * synchronously.",
277 " *",
278 " * Calling `open` again on a currently active request is equivalent to",
279 " * calling `abort`.",
280 " */"
281 ],
282 "overrideMimeType": [
283 "/**",
284 " * Specify a particular MIME type (such as `text/xml`) desired for the",
285 " * response.",
286 " *",
287 " * This value must be set before the request has been sent. See als o the list",
288 " * of [common MIME types](http://en.wikipedia.org/wiki/Internet_med ia_type#List_of_common_media_types)",
289 " */"
290 ],
291 "response": [
292 "/**",
293 " * The data received as a reponse from the request.",
294 " *",
295 " * The data could be in the",
296 " * form of a [String], [ArrayBuffer], [Document], [Blob], or json ( also a",
297 " * [String]). `null` indicates request failure.",
298 " */"
299 ],
300 "responseText": [
301 "/**",
302 " * The response in string form or `null on failure.",
303 " */"
304 ],
305 "responseType": [
306 "/**",
307 " * [String] telling the server the desired response format.",
308 " *",
309 " * Default is `String`.",
310 " * Other options are one of 'arraybuffer', 'blob', 'document', 'jso n',",
311 " * 'text'. Some newer browsers will throw NS_ERROR_DOM_INVALID_ACCE SS_ERR if",
312 " * `responseType` is set while performing a synchronous request.",
313 " *",
314 " * See also: [MDN responseType](https://developer.mozilla.org/en-US /docs/DOM/XMLHttpRequest#responseType)",
315 " */"
316 ],
317 "send": [
318 "/**",
319 " * Send the request with any given `data`.",
320 " *",
321 " * See also:",
322 " * [send() docs](https://developer.mozilla.org/en-US/docs/DOM/XMLHt tpRequest#send())",
323 " * from MDN.",
324 " */"
325 ],
326 "status": [
327 "/**",
328 " * The http result code from the request (200, 404, etc).",
329 " * See also: [Http Status Codes](http://en.wikipedia.org/wiki/List_ of_HTTP_status_codes)",
330 " */"
331 ],
332 "statusText": [
333 "/**",
334 " * The request response string (such as \\\"200 OK\\\").",
335 " * See also: [Http Status Codes](http://en.wikipedia.org/wiki/List_ of_HTTP_status_codes)",
336 " */"
337 ],
338 "upload": [
339 "/**",
340 " * [EventTarget] that can hold listeners to track the progress of t he request.",
341 " * The events fired will be members of [HttpRequestUploadEvents].",
342 " */"
343 ],
344 "withCredentials": [
345 "/**",
346 " * True if cross-site requests should use credentials such as cooki es",
347 " * or authorization headers; false otherwise.",
348 " *",
349 " * This value is ignored for same-site requests.",
350 " */"
351 ],
216 "XMLHttpRequest": [ 352 "XMLHttpRequest": [
217 "/**", 353 "/**",
218 " * General constructor for any type of request (GET, POST, etc).", 354 " * General constructor for any type of request (GET, POST, etc).",
219 " *", 355 " *",
220 " * This call is used in conjunction with [open]:", 356 " * This call is used in conjunction with [open]:",
221 " *", 357 " *",
222 " * var request = new HttpRequest();", 358 " * var request = new HttpRequest();",
223 " * request.open('GET', 'http://dartlang.org')", 359 " * request.open('GET', 'http://dartlang.org')",
224 " * request.on.load.add((event) => print('Request complete'));", 360 " * request.on.load.add((event) => print('Request complete'));",
225 " *", 361 " *",
226 " * is the (more verbose) equivalent of", 362 " * is the (more verbose) equivalent of",
227 " *", 363 " *",
228 " * var request = new HttpRequest.get('http://dartlang.org', (ev ent) => print('Request complete'));", 364 " * var request = new HttpRequest.get('http://dartlang.org', (ev ent) => print('Request complete'));",
229 " */" 365 " */"
230 ] 366 ]
231 } 367 }
232 } 368 }
233 } 369 }
234 } 370 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698