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

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

Issue 11421102: Added DivElement documentation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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/docs/html_docs.json » ('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 html; 1 library html;
2 2
3 import 'dart:isolate'; 3 import 'dart:isolate';
4 import 'dart:json'; 4 import 'dart:json';
5 import 'dart:svg' as svg; 5 import 'dart:svg' as svg;
6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7 // for details. All rights reserved. Use of this source code is governed by a 7 // for details. All rights reserved. Use of this source code is governed by a
8 // BSD-style license that can be found in the LICENSE file. 8 // BSD-style license that can be found in the LICENSE file.
9 9
10 // DO NOT EDIT 10 // DO NOT EDIT
(...skipping 6423 matching lines...) Expand 10 before | Expand all | Expand 10 after
6434 6434
6435 /// @domName DirectoryReaderSync.readEntries; @docsEditable true 6435 /// @domName DirectoryReaderSync.readEntries; @docsEditable true
6436 @Returns('_EntryArraySync') @Creates('_EntryArraySync') 6436 @Returns('_EntryArraySync') @Creates('_EntryArraySync')
6437 List<EntrySync> readEntries() native; 6437 List<EntrySync> readEntries() native;
6438 } 6438 }
6439 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6439 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6440 // for details. All rights reserved. Use of this source code is governed by a 6440 // for details. All rights reserved. Use of this source code is governed by a
6441 // BSD-style license that can be found in the LICENSE file. 6441 // BSD-style license that can be found in the LICENSE file.
6442 6442
6443 6443
6444 /**
6445 * Represents an HTML <div> element.
6446 *
6447 * The [DivElement] is a generic container for content and does not have any
6448 * special significance. It is functionally similar to [SpanElement].
6449 *
6450 * The [DivElement] is a block-level element, as opposed to [SpanElement],
6451 * which is an inline-level element.
6452 *
6453 * Example usage:
6454 *
6455 * DivElement div = new DivElement();
6456 * div.text = 'Here's my new DivElem
6457 * document.body.elements.add(elem);
6458 *
6459 * See also:
6460 *
6461 * * [HTML <div> element](http://www.w3.org/TR/html-markup/div.html) from W3C.
6462 * * [Block-level element](http://www.w3.org/TR/CSS2/visuren.html#block-boxes) f rom W3C.
6463 * * [Inline-level element](http://www.w3.org/TR/CSS2/visuren.html#inline-boxes) from W3C.
6464 */
6444 /// @domName HTMLDivElement; @docsEditable true 6465 /// @domName HTMLDivElement; @docsEditable true
6445 class DivElement extends Element implements Element native "*HTMLDivElement" { 6466 class DivElement extends Element implements Element native "*HTMLDivElement" {
6446 6467
6447 factory DivElement() => document.$dom_createElement("div"); 6468 factory DivElement() => document.$dom_createElement("div");
6448 } 6469 }
6449 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6470 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6450 // for details. All rights reserved. Use of this source code is governed by a 6471 // for details. All rights reserved. Use of this source code is governed by a
6451 // BSD-style license that can be found in the LICENSE file. 6472 // BSD-style license that can be found in the LICENSE file.
6452 6473
6453 6474
(...skipping 18596 matching lines...) Expand 10 before | Expand all | Expand 10 after
25050 if (length < 0) throw new ArgumentError('length'); 25071 if (length < 0) throw new ArgumentError('length');
25051 if (start < 0) throw new RangeError.value(start); 25072 if (start < 0) throw new RangeError.value(start);
25052 int end = start + length; 25073 int end = start + length;
25053 if (end > a.length) throw new RangeError.value(end); 25074 if (end > a.length) throw new RangeError.value(end);
25054 for (int i = start; i < end; i++) { 25075 for (int i = start; i < end; i++) {
25055 accumulator.add(a[i]); 25076 accumulator.add(a[i]);
25056 } 25077 }
25057 return accumulator; 25078 return accumulator;
25058 } 25079 }
25059 } 25080 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/docs/html_docs.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698