OLD | NEW |
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 @DocsEditable() | 7 @DocsEditable() |
8 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME extends Node | 8 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME extends Node |
9 { | 9 { |
10 | 10 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 [int whatToShow, NodeFilter filter]) | 108 [int whatToShow, NodeFilter filter]) |
109 => JS('NodeIterator', '#.createNodeIterator(#, #, #, false)', | 109 => JS('NodeIterator', '#.createNodeIterator(#, #, #, false)', |
110 this, root, whatToShow, filter); | 110 this, root, whatToShow, filter); |
111 | 111 |
112 @DomName('Document.createTreeWalker') | 112 @DomName('Document.createTreeWalker') |
113 TreeWalker _createTreeWalker(Node root, | 113 TreeWalker _createTreeWalker(Node root, |
114 [int whatToShow, NodeFilter filter]) | 114 [int whatToShow, NodeFilter filter]) |
115 => JS('TreeWalker', '#.createTreeWalker(#, #, #, false)', | 115 => JS('TreeWalker', '#.createTreeWalker(#, #, #, false)', |
116 this, root, whatToShow, filter); | 116 this, root, whatToShow, filter); |
117 $endif | 117 $endif |
| 118 |
| 119 @DomName('Document.visibilityState') |
| 120 @SupportedBrowser(SupportedBrowser.CHROME) |
| 121 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 122 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 123 @Experimental() |
| 124 $if DART2JS |
| 125 String get visibilityState => JS('String', |
| 126 '(#.visibilityState || #.mozVisibilityState || #.msVisibilityState ||' |
| 127 '#.webkitVisibilityState)', this, this, this, this); |
| 128 $else |
| 129 String get visibilityState => _visibilityState; |
| 130 $endif |
118 } | 131 } |
OLD | NEW |