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

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

Issue 23576013: Fixing Element.shadowRoot to work with webkitShadowRoot (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
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 932
933 $if DART2JS 933 $if DART2JS
934 @DomName('Element.createShadowRoot') 934 @DomName('Element.createShadowRoot')
935 @SupportedBrowser(SupportedBrowser.CHROME, '25') 935 @SupportedBrowser(SupportedBrowser.CHROME, '25')
936 @Experimental() 936 @Experimental()
937 ShadowRoot createShadowRoot() { 937 ShadowRoot createShadowRoot() {
938 return JS('ShadowRoot', 938 return JS('ShadowRoot',
939 '(#.createShadowRoot || #.webkitCreateShadowRoot).call(#)', 939 '(#.createShadowRoot || #.webkitCreateShadowRoot).call(#)',
940 this, this, this); 940 this, this, this);
941 } 941 }
942
943 @DomName('Element.shadowRoot')
944 @SupportedBrowser(SupportedBrowser.CHROME, '25')
945 @Experimental()
946 ShadowRoot get shadowRoot =>
947 JS('ShadowRoot', '#.shadowRoot || #.webkitShadowRoot', this, this);
942 $endif 948 $endif
943 949
944 950
945 /** 951 /**
946 * Gets the template this node refers to. 952 * Gets the template this node refers to.
947 * This is only supported if [isTemplate] is true. 953 * This is only supported if [isTemplate] is true.
948 */ 954 */
949 @Experimental() 955 @Experimental()
950 Element get ref { 956 Element get ref {
951 _ensureTemplate(); 957 _ensureTemplate();
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
1333 const ScrollAlignment._internal(this._value); 1339 const ScrollAlignment._internal(this._value);
1334 toString() => 'ScrollAlignment.$_value'; 1340 toString() => 'ScrollAlignment.$_value';
1335 1341
1336 /// Attempt to align the element to the top of the scrollable area. 1342 /// Attempt to align the element to the top of the scrollable area.
1337 static const TOP = const ScrollAlignment._internal('TOP'); 1343 static const TOP = const ScrollAlignment._internal('TOP');
1338 /// Attempt to center the element in the scrollable area. 1344 /// Attempt to center the element in the scrollable area.
1339 static const CENTER = const ScrollAlignment._internal('CENTER'); 1345 static const CENTER = const ScrollAlignment._internal('CENTER');
1340 /// Attempt to align the element to the bottom of the scrollable area. 1346 /// Attempt to align the element to the bottom of the scrollable area.
1341 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 1347 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
1342 } 1348 }
OLDNEW
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698