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

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

Issue 27429002: Fixing mirrors on Window, Document and Element (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 CssRect get contentEdge => new _ContentCssListRect(_elementList); 302 CssRect get contentEdge => new _ContentCssListRect(_elementList);
303 303
304 CssRect get paddingEdge => _elementList.first.paddingEdge; 304 CssRect get paddingEdge => _elementList.first.paddingEdge;
305 305
306 CssRect get borderEdge => _elementList.first.borderEdge; 306 CssRect get borderEdge => _elementList.first.borderEdge;
307 307
308 CssRect get marginEdge => _elementList.first.marginEdge; 308 CssRect get marginEdge => _elementList.first.marginEdge;
309 $!ELEMENT_STREAM_GETTERS 309 $!ELEMENT_STREAM_GETTERS
310 } 310 }
311 311
312 @DocsEditable 312 @DocsEditable()
313 $(ANNOTATIONS)abstract class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 313 $(ANNOTATIONS)abstract class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
314 314
315 /** 315 /**
316 * Creates an HTML element from a valid fragment of HTML. 316 * Creates an HTML element from a valid fragment of HTML.
317 * 317 *
318 * var element = new Element.html('<div class="foo">content</div>'); 318 * var element = new Element.html('<div class="foo">content</div>');
319 * 319 *
320 * The HTML fragment should contain only one single root element, any 320 * The HTML fragment should contain only one single root element, any
321 * leading or trailing text nodes will be removed. 321 * leading or trailing text nodes will be removed.
322 * 322 *
(...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after
1398 const ScrollAlignment._internal(this._value); 1398 const ScrollAlignment._internal(this._value);
1399 toString() => 'ScrollAlignment.$_value'; 1399 toString() => 'ScrollAlignment.$_value';
1400 1400
1401 /// Attempt to align the element to the top of the scrollable area. 1401 /// Attempt to align the element to the top of the scrollable area.
1402 static const TOP = const ScrollAlignment._internal('TOP'); 1402 static const TOP = const ScrollAlignment._internal('TOP');
1403 /// Attempt to center the element in the scrollable area. 1403 /// Attempt to center the element in the scrollable area.
1404 static const CENTER = const ScrollAlignment._internal('CENTER'); 1404 static const CENTER = const ScrollAlignment._internal('CENTER');
1405 /// Attempt to align the element to the bottom of the scrollable area. 1405 /// Attempt to align the element to the bottom of the scrollable area.
1406 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 1406 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
1407 } 1407 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_Document.darttemplate ('k') | tools/dom/templates/html/impl/impl_Window.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698