Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 library html; | 1 library html; |
| 2 | 2 |
| 3 import 'dart:collection'; | 3 import 'dart:collection'; |
| 4 import 'dart:html_common'; | 4 import 'dart:html_common'; |
| 5 import 'dart:indexed_db'; | 5 import 'dart:indexed_db'; |
| 6 import 'dart:isolate'; | 6 import 'dart:isolate'; |
| 7 import 'dart:json'; | 7 import 'dart:json'; |
| 8 import 'dart:svg' as svg; | 8 import 'dart:svg' as svg; |
| 9 import 'dart:web_audio' as web_audio; | 9 import 'dart:web_audio' as web_audio; |
| 10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| (...skipping 7903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7914 | 7914 |
| 7915 /// @domName Element.setAttribute; @docsEditable true | 7915 /// @domName Element.setAttribute; @docsEditable true |
| 7916 @JSName('setAttribute') | 7916 @JSName('setAttribute') |
| 7917 void $dom_setAttribute(String name, String value) native; | 7917 void $dom_setAttribute(String name, String value) native; |
| 7918 | 7918 |
| 7919 /// @domName Element.setAttributeNS; @docsEditable true | 7919 /// @domName Element.setAttributeNS; @docsEditable true |
| 7920 @JSName('setAttributeNS') | 7920 @JSName('setAttributeNS') |
| 7921 void $dom_setAttributeNS(String namespaceURI, String qualifiedName, String val ue) native; | 7921 void $dom_setAttributeNS(String namespaceURI, String qualifiedName, String val ue) native; |
| 7922 | 7922 |
| 7923 /// @domName Element.webkitCreateShadowRoot; @docsEditable true | 7923 /// @domName Element.webkitCreateShadowRoot; @docsEditable true |
| 7924 ShadowRoot webkitCreateShadowRoot() native; | 7924 @JSName('webkitCreateShadowRoot') |
| 7925 @SupportedBrowser(SupportedBrowser.CHROME, '25') @Experimental() | |
|
Emily Fortuna
2013/01/02 18:54:04
no line break on this one, but the others are fine
blois
2013/01/02 21:28:41
Similar issue that came up in an earlier CL- it's
| |
| 7926 ShadowRoot createShadowRoot() native; | |
| 7925 | 7927 |
| 7926 /// @domName Element.webkitMatchesSelector; @docsEditable true | 7928 /// @domName Element.webkitMatchesSelector; @docsEditable true |
| 7927 @JSName('webkitMatchesSelector') | 7929 @JSName('webkitMatchesSelector') |
| 7928 bool matchesSelector(String selectors) native; | 7930 bool matchesSelector(String selectors) native; |
| 7929 | 7931 |
| 7930 /// @domName Element.webkitRequestFullScreen; @docsEditable true | 7932 /// @domName Element.webkitRequestFullScreen; @docsEditable true |
| 7931 void webkitRequestFullScreen(int flags) native; | 7933 void webkitRequestFullScreen(int flags) native; |
| 7932 | 7934 |
| 7933 /// @domName Element.webkitRequestFullscreen; @docsEditable true | 7935 /// @domName Element.webkitRequestFullscreen; @docsEditable true |
| 7934 void webkitRequestFullscreen() native; | 7936 void webkitRequestFullscreen() native; |
| (...skipping 7983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 15918 return [this.options[this.selectedIndex]]; | 15920 return [this.options[this.selectedIndex]]; |
| 15919 } | 15921 } |
| 15920 } | 15922 } |
| 15921 } | 15923 } |
| 15922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15924 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15923 // for details. All rights reserved. Use of this source code is governed by a | 15925 // for details. All rights reserved. Use of this source code is governed by a |
| 15924 // BSD-style license that can be found in the LICENSE file. | 15926 // BSD-style license that can be found in the LICENSE file. |
| 15925 | 15927 |
| 15926 | 15928 |
| 15927 /// @domName HTMLShadowElement; @docsEditable true | 15929 /// @domName HTMLShadowElement; @docsEditable true |
| 15930 @SupportedBrowser(SupportedBrowser.CHROME, '25') | |
| 15931 @Experimental() | |
| 15928 class ShadowElement extends Element native "*HTMLShadowElement" { | 15932 class ShadowElement extends Element native "*HTMLShadowElement" { |
| 15929 | 15933 |
| 15934 /** | |
| 15935 * Checks if this type is supported on the current platform | |
| 15936 */ | |
| 15937 static bool get supported => Element.isTagSupported('shadow'); | |
| 15938 | |
| 15930 /// @domName HTMLShadowElement.olderShadowRoot; @docsEditable true | 15939 /// @domName HTMLShadowElement.olderShadowRoot; @docsEditable true |
| 15931 final ShadowRoot olderShadowRoot; | 15940 final ShadowRoot olderShadowRoot; |
| 15932 | 15941 |
| 15933 /// @domName HTMLShadowElement.resetStyleInheritance; @docsEditable true | 15942 /// @domName HTMLShadowElement.resetStyleInheritance; @docsEditable true |
| 15934 bool resetStyleInheritance; | 15943 bool resetStyleInheritance; |
| 15935 } | 15944 } |
| 15936 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15945 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15937 // for details. All rights reserved. Use of this source code is governed by a | 15946 // for details. All rights reserved. Use of this source code is governed by a |
| 15938 // BSD-style license that can be found in the LICENSE file. | 15947 // BSD-style license that can be found in the LICENSE file. |
| 15939 | 15948 |
| 15940 // WARNING: Do not edit - generated code. | 15949 // WARNING: Do not edit - generated code. |
| 15941 | 15950 |
| 15942 | 15951 |
| 15943 /// @domName ShadowRoot | 15952 /// @domName ShadowRoot |
| 15953 @SupportedBrowser(SupportedBrowser.CHROME, '25') | |
| 15954 @Experimental() | |
| 15944 class ShadowRoot extends DocumentFragment native "*ShadowRoot" { | 15955 class ShadowRoot extends DocumentFragment native "*ShadowRoot" { |
| 15945 | 15956 |
| 15946 /// @domName ShadowRoot.activeElement; @docsEditable true | 15957 /// @domName ShadowRoot.activeElement; @docsEditable true |
| 15947 final Element activeElement; | 15958 final Element activeElement; |
| 15948 | 15959 |
| 15949 /// @domName ShadowRoot.applyAuthorStyles; @docsEditable true | 15960 /// @domName ShadowRoot.applyAuthorStyles; @docsEditable true |
| 15950 bool applyAuthorStyles; | 15961 bool applyAuthorStyles; |
| 15951 | 15962 |
| 15952 /// @domName ShadowRoot.innerHTML; @docsEditable true | 15963 /// @domName ShadowRoot.innerHTML; @docsEditable true |
| 15953 @JSName('innerHTML') | 15964 @JSName('innerHTML') |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 15971 | 15982 |
| 15972 /// @domName ShadowRoot.getElementsByTagName; @docsEditable true | 15983 /// @domName ShadowRoot.getElementsByTagName; @docsEditable true |
| 15973 @JSName('getElementsByTagName') | 15984 @JSName('getElementsByTagName') |
| 15974 @Returns('NodeList') @Creates('NodeList') | 15985 @Returns('NodeList') @Creates('NodeList') |
| 15975 List<Node> $dom_getElementsByTagName(String tagName) native; | 15986 List<Node> $dom_getElementsByTagName(String tagName) native; |
| 15976 | 15987 |
| 15977 /// @domName ShadowRoot.getSelection; @docsEditable true | 15988 /// @domName ShadowRoot.getSelection; @docsEditable true |
| 15978 DomSelection getSelection() native; | 15989 DomSelection getSelection() native; |
| 15979 | 15990 |
| 15980 static bool get supported => | 15991 static bool get supported => |
| 15981 JS('bool', '!!(window.ShadowRoot || window.WebKitShadowRoot || Element.pro totype.webkitCreateShadowRoot)'); | 15992 JS('bool', '!!(Element.prototype.webkitCreateShadowRoot)'); |
| 15982 } | 15993 } |
| 15983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15994 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15984 // for details. All rights reserved. Use of this source code is governed by a | 15995 // for details. All rights reserved. Use of this source code is governed by a |
| 15985 // BSD-style license that can be found in the LICENSE file. | 15996 // BSD-style license that can be found in the LICENSE file. |
| 15986 | 15997 |
| 15987 | 15998 |
| 15988 /// @domName SharedWorker; @docsEditable true | 15999 /// @domName SharedWorker; @docsEditable true |
| 15989 class SharedWorker extends AbstractWorker native "*SharedWorker" { | 16000 class SharedWorker extends AbstractWorker native "*SharedWorker" { |
| 15990 | 16001 |
| 15991 ///@docsEditable true | 16002 ///@docsEditable true |
| (...skipping 9498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 25490 T next() { | 25501 T next() { |
| 25491 if (!hasNext) { | 25502 if (!hasNext) { |
| 25492 throw new StateError("No more elements"); | 25503 throw new StateError("No more elements"); |
| 25493 } | 25504 } |
| 25494 return _array[_pos++]; | 25505 return _array[_pos++]; |
| 25495 } | 25506 } |
| 25496 | 25507 |
| 25497 final List<T> _array; | 25508 final List<T> _array; |
| 25498 int _pos; | 25509 int _pos; |
| 25499 } | 25510 } |
| OLD | NEW |