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

Side by Side Diff: tools/dom/templates/html/impl/impl_Element.darttemplate

Issue 16336022: Fixing a number of Dart2JS compiler warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 class _ChildrenElementList extends ListBase<Element> { 7 class _ChildrenElementList extends ListBase<Element> {
8 // Raw Element. 8 // Raw Element.
9 final Element _element; 9 final Element _element;
10 final HtmlCollection _childElements; 10 final HtmlCollection _childElements;
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 * document.body.insertAdjacentHtml('afterBegin', html); 586 * document.body.insertAdjacentHtml('afterBegin', html);
587 * var createdElement = document.body.children[0]; 587 * var createdElement = document.body.children[0];
588 * print(createdElement.classes[0]); // Prints 'something' 588 * print(createdElement.classes[0]); // Prints 'something'
589 * 589 *
590 * See also: 590 * See also:
591 * 591 *
592 * * [insertAdjacentText] 592 * * [insertAdjacentText]
593 * * [insertAdjacentElement] 593 * * [insertAdjacentElement]
594 */ 594 */
595 void insertAdjacentHtml(String where, String html) { 595 void insertAdjacentHtml(String where, String html) {
596 if (JS('bool', '!!#.insertAdjacentHtml', this)) { 596 if (JS('bool', '!!#.insertAdjacentHTML', this)) {
597 _insertAdjacentHtml(where, html); 597 _insertAdjacentHtml(where, html);
598 } else { 598 } else {
599 _insertAdjacentNode(where, new DocumentFragment.html(html)); 599 _insertAdjacentNode(where, new DocumentFragment.html(html));
600 } 600 }
601 } 601 }
602 602
603 @JSName('insertAdjacentHTML') 603 @JSName('insertAdjacentHTML')
604 void _insertAdjacentHTML(String where, String text) native; 604 void _insertAdjacentHtml(String where, String text) native;
605 605
606 /** 606 /**
607 * Inserts [element] into the DOM at the specified location. 607 * Inserts [element] into the DOM at the specified location.
608 * 608 *
609 * To see the possible values for [where], read the doc for 609 * To see the possible values for [where], read the doc for
610 * [insertAdjacentHtml]. 610 * [insertAdjacentHtml].
611 * 611 *
612 * See also: 612 * See also:
613 * 613 *
614 * * [insertAdjacentHtml] 614 * * [insertAdjacentHtml]
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 const ScrollAlignment._internal(this._value); 1064 const ScrollAlignment._internal(this._value);
1065 toString() => 'ScrollAlignment.$_value'; 1065 toString() => 'ScrollAlignment.$_value';
1066 1066
1067 /// Attempt to align the element to the top of the scrollable area. 1067 /// Attempt to align the element to the top of the scrollable area.
1068 static const TOP = const ScrollAlignment._internal('TOP'); 1068 static const TOP = const ScrollAlignment._internal('TOP');
1069 /// Attempt to center the element in the scrollable area. 1069 /// Attempt to center the element in the scrollable area.
1070 static const CENTER = const ScrollAlignment._internal('CENTER'); 1070 static const CENTER = const ScrollAlignment._internal('CENTER');
1071 /// Attempt to align the element to the bottom of the scrollable area. 1071 /// Attempt to align the element to the bottom of the scrollable area.
1072 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 1072 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
1073 } 1073 }
OLDNEW
« no previous file with comments | « tools/dom/src/dart2js_Conversions.dart ('k') | tools/dom/templates/html/impl/impl_Window.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698