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

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

Issue 24125002: Fixing Element.shadowRoot JS type annotation (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 | « sdk/lib/html/dart2js/html_dart2js.dart ('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 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 942
943 @DomName('Element.shadowRoot') 943 @DomName('Element.shadowRoot')
944 @SupportedBrowser(SupportedBrowser.CHROME, '25') 944 @SupportedBrowser(SupportedBrowser.CHROME, '25')
945 @Experimental() 945 @Experimental()
946 ShadowRoot get shadowRoot => 946 ShadowRoot get shadowRoot =>
947 JS('ShadowRoot', '#.shadowRoot || #.webkitShadowRoot', this, this); 947 JS('ShadowRoot|Null', '#.shadowRoot || #.webkitShadowRoot', this, this);
948 $endif 948 $endif
949 949
950 950
951 /** 951 /**
952 * Gets the template this node refers to. 952 * Gets the template this node refers to.
953 * This is only supported if [isTemplate] is true. 953 * This is only supported if [isTemplate] is true.
954 */ 954 */
955 @Experimental() 955 @Experimental()
956 Element get ref { 956 Element get ref {
957 _ensureTemplate(); 957 _ensureTemplate();
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 const ScrollAlignment._internal(this._value); 1355 const ScrollAlignment._internal(this._value);
1356 toString() => 'ScrollAlignment.$_value'; 1356 toString() => 'ScrollAlignment.$_value';
1357 1357
1358 /// Attempt to align the element to the top of the scrollable area. 1358 /// Attempt to align the element to the top of the scrollable area.
1359 static const TOP = const ScrollAlignment._internal('TOP'); 1359 static const TOP = const ScrollAlignment._internal('TOP');
1360 /// Attempt to center the element in the scrollable area. 1360 /// Attempt to center the element in the scrollable area.
1361 static const CENTER = const ScrollAlignment._internal('CENTER'); 1361 static const CENTER = const ScrollAlignment._internal('CENTER');
1362 /// Attempt to align the element to the bottom of the scrollable area. 1362 /// Attempt to align the element to the bottom of the scrollable area.
1363 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 1363 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
1364 } 1364 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698