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

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

Issue 23591046: Making Document, Element and Window documentable via @DocsEditable (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 CssRect get contentEdge => new _ContentCssListRect(_elementList); 294 CssRect get contentEdge => new _ContentCssListRect(_elementList);
295 295
296 CssRect get paddingEdge => _elementList.first.paddingEdge; 296 CssRect get paddingEdge => _elementList.first.paddingEdge;
297 297
298 CssRect get borderEdge => _elementList.first.borderEdge; 298 CssRect get borderEdge => _elementList.first.borderEdge;
299 299
300 CssRect get marginEdge => _elementList.first.marginEdge; 300 CssRect get marginEdge => _elementList.first.marginEdge;
301 $!ELEMENT_STREAM_GETTERS 301 $!ELEMENT_STREAM_GETTERS
302 } 302 }
303 303
304 /** 304 @DocsEditable
305 * An abstract class, which all HTML elements extend.
306 */
307 $(ANNOTATIONS)abstract class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 305 $(ANNOTATIONS)abstract class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
308 306
309 /** 307 /**
310 * Creates an HTML element from a valid fragment of HTML. 308 * Creates an HTML element from a valid fragment of HTML.
311 * 309 *
312 * var element = new Element.html('<div class="foo">content</div>'); 310 * var element = new Element.html('<div class="foo">content</div>');
313 * 311 *
314 * The HTML fragment should contain only one single root element, any 312 * The HTML fragment should contain only one single root element, any
315 * leading or trailing text nodes will be removed. 313 * leading or trailing text nodes will be removed.
316 * 314 *
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 const ScrollAlignment._internal(this._value); 1353 const ScrollAlignment._internal(this._value);
1356 toString() => 'ScrollAlignment.$_value'; 1354 toString() => 'ScrollAlignment.$_value';
1357 1355
1358 /// Attempt to align the element to the top of the scrollable area. 1356 /// Attempt to align the element to the top of the scrollable area.
1359 static const TOP = const ScrollAlignment._internal('TOP'); 1357 static const TOP = const ScrollAlignment._internal('TOP');
1360 /// Attempt to center the element in the scrollable area. 1358 /// Attempt to center the element in the scrollable area.
1361 static const CENTER = const ScrollAlignment._internal('CENTER'); 1359 static const CENTER = const ScrollAlignment._internal('CENTER');
1362 /// Attempt to align the element to the bottom of the scrollable area. 1360 /// Attempt to align the element to the bottom of the scrollable area.
1363 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 1361 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
1364 } 1362 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698