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 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
6 | 6 |
7 part of $LIBRARYNAME; | 7 part of $LIBRARYNAME; |
8 | 8 |
9 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 9 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
10 $!MEMBERS | 10 $!MEMBERS |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 @SupportedBrowser(SupportedBrowser.IE, '10') | 152 @SupportedBrowser(SupportedBrowser.IE, '10') |
153 @Experimental() | 153 @Experimental() |
154 $if DART2JS | 154 $if DART2JS |
155 String get visibilityState => JS('String', | 155 String get visibilityState => JS('String', |
156 '(#.visibilityState || #.mozVisibilityState || #.msVisibilityState ||' | 156 '(#.visibilityState || #.mozVisibilityState || #.msVisibilityState ||' |
157 '#.webkitVisibilityState)', this, this, this, this); | 157 '#.webkitVisibilityState)', this, this, this, this); |
158 $else | 158 $else |
159 String get visibilityState => _webkitVisibilityState; | 159 String get visibilityState => _webkitVisibilityState; |
160 $endif | 160 $endif |
161 | 161 |
162 @Experimental | 162 @Experimental() |
163 /** | 163 /** |
164 * Register a custom subclass of Element to be instantiatable by the DOM. | 164 * Register a custom subclass of Element to be instantiatable by the DOM. |
165 * | 165 * |
166 * This is necessary to allow the construction of any custom elements. | 166 * This is necessary to allow the construction of any custom elements. |
167 * | 167 * |
168 * The class being registered must either subclass HtmlElement or SvgElement. | 168 * The class being registered must either subclass HtmlElement or SvgElement. |
169 * If they subclass these directly then they can be used as: | 169 * If they subclass these directly then they can be used as: |
170 * | 170 * |
171 * class FooElement extends HtmlElement{ | 171 * class FooElement extends HtmlElement{ |
172 * void created() { | 172 * void created() { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 $endif | 271 $endif |
272 } | 272 } |
273 | 273 |
274 @SupportedBrowser(SupportedBrowser.CHROME) | 274 @SupportedBrowser(SupportedBrowser.CHROME) |
275 @SupportedBrowser(SupportedBrowser.FIREFOX) | 275 @SupportedBrowser(SupportedBrowser.FIREFOX) |
276 @SupportedBrowser(SupportedBrowser.IE, '10') | 276 @SupportedBrowser(SupportedBrowser.IE, '10') |
277 @Experimental() | 277 @Experimental() |
278 Stream<Event> get onVisibilityChange => | 278 Stream<Event> get onVisibilityChange => |
279 visibilityChangeEvent.forTarget(this); | 279 visibilityChangeEvent.forTarget(this); |
280 } | 280 } |
OLD | NEW |