| OLD | NEW |
| 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 implements NodeListWrapper { | 8 implements NodeListWrapper { |
| 9 // Raw Element. | 9 // Raw Element. |
| 10 final Element _element; | 10 final Element _element; |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 * created. It can only be invoked by subclasses of Element from | 354 * created. It can only be invoked by subclasses of Element from |
| 355 * that classes created constructor. | 355 * that classes created constructor. |
| 356 * | 356 * |
| 357 * class CustomElement extends Element { | 357 * class CustomElement extends Element { |
| 358 * factory CustomElement() => new Element.tag('x-custom'); | 358 * factory CustomElement() => new Element.tag('x-custom'); |
| 359 * | 359 * |
| 360 * CustomElement.created() : super.created() { | 360 * CustomElement.created() : super.created() { |
| 361 * // Perform any element initialization. | 361 * // Perform any element initialization. |
| 362 * } | 362 * } |
| 363 * } | 363 * } |
| 364 * document.register('x-custom', CustomElement); | 364 * document.registerElement('x-custom', CustomElement); |
| 365 */ | 365 */ |
| 366 Element.created() : super._created() { | 366 Element.created() : super._created() { |
| 367 // Validate that this is a custom element & perform any additional | 367 // Validate that this is a custom element & perform any additional |
| 368 // initialization. | 368 // initialization. |
| 369 _initializeCustomElement(this); | 369 _initializeCustomElement(this); |
| 370 } | 370 } |
| 371 | 371 |
| 372 /** | 372 /** |
| 373 * Creates the HTML element specified by the tag name. | 373 * Creates the HTML element specified by the tag name. |
| 374 * | 374 * |
| (...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1363 const ScrollAlignment._internal(this._value); | 1363 const ScrollAlignment._internal(this._value); |
| 1364 toString() => 'ScrollAlignment.$_value'; | 1364 toString() => 'ScrollAlignment.$_value'; |
| 1365 | 1365 |
| 1366 /// Attempt to align the element to the top of the scrollable area. | 1366 /// Attempt to align the element to the top of the scrollable area. |
| 1367 static const TOP = const ScrollAlignment._internal('TOP'); | 1367 static const TOP = const ScrollAlignment._internal('TOP'); |
| 1368 /// Attempt to center the element in the scrollable area. | 1368 /// Attempt to center the element in the scrollable area. |
| 1369 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1369 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 1370 /// Attempt to align the element to the bottom of the scrollable area. | 1370 /// Attempt to align the element to the bottom of the scrollable area. |
| 1371 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1371 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 1372 } | 1372 } |
| OLD | NEW |