| 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 void register(String tag, Type customElementClass, {String extendsTag}) { | 231 void register(String tag, Type customElementClass, {String extendsTag}) { |
| 232 _registerCustomElement(JS('', 'window'), this, tag, customElementClass, | 232 _registerCustomElement(JS('', 'window'), this, tag, customElementClass, |
| 233 extendsTag); | 233 extendsTag); |
| 234 } | 234 } |
| 235 $else | 235 $else |
| 236 void register(String tag, Type customElementClass, {String extendsTag}) { | 236 void register(String tag, Type customElementClass, {String extendsTag}) { |
| 237 _Utils.register(this, tag, customElementClass, extendsTag); | 237 _Utils.register(this, tag, customElementClass, extendsTag); |
| 238 } | 238 } |
| 239 $endif | 239 $endif |
| 240 | 240 |
| 241 $if DART2JS | |
| 242 @Creates('Null') // Set from Dart code; does not instantiate a native type. | |
| 243 $endif | |
| 244 // Note: used to polyfill <template> | |
| 245 Document _templateContentsOwner; | |
| 246 | |
| 247 @DomName('Document.visibilityChange') | 241 @DomName('Document.visibilityChange') |
| 248 @SupportedBrowser(SupportedBrowser.CHROME) | 242 @SupportedBrowser(SupportedBrowser.CHROME) |
| 249 @SupportedBrowser(SupportedBrowser.FIREFOX) | 243 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 250 @SupportedBrowser(SupportedBrowser.IE, '10') | 244 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 251 @Experimental() | 245 @Experimental() |
| 252 static const EventStreamProvider<Event> visibilityChangeEvent = | 246 static const EventStreamProvider<Event> visibilityChangeEvent = |
| 253 const _CustomEventStreamProvider<Event>( | 247 const _CustomEventStreamProvider<Event>( |
| 254 _determineVisibilityChangeEventType); | 248 _determineVisibilityChangeEventType); |
| 255 | 249 |
| 256 static String _determineVisibilityChangeEventType(EventTarget e) { | 250 static String _determineVisibilityChangeEventType(EventTarget e) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 271 $endif | 265 $endif |
| 272 } | 266 } |
| 273 | 267 |
| 274 @SupportedBrowser(SupportedBrowser.CHROME) | 268 @SupportedBrowser(SupportedBrowser.CHROME) |
| 275 @SupportedBrowser(SupportedBrowser.FIREFOX) | 269 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 276 @SupportedBrowser(SupportedBrowser.IE, '10') | 270 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 277 @Experimental() | 271 @Experimental() |
| 278 Stream<Event> get onVisibilityChange => | 272 Stream<Event> get onVisibilityChange => |
| 279 visibilityChangeEvent.forTarget(this); | 273 visibilityChangeEvent.forTarget(this); |
| 280 } | 274 } |
| OLD | NEW |