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

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

Issue 56933002: Version 0.8.10.1 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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
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 // 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
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 /**
242 * Static factory designed to expose `visibilitychange` events to event
243 * handlers that are not necessarily instances of [Document].
244 *
245 * See [EventStreamProvider] for usage information.
246 */
241 @DomName('Document.visibilityChange') 247 @DomName('Document.visibilityChange')
242 @SupportedBrowser(SupportedBrowser.CHROME) 248 @SupportedBrowser(SupportedBrowser.CHROME)
243 @SupportedBrowser(SupportedBrowser.FIREFOX) 249 @SupportedBrowser(SupportedBrowser.FIREFOX)
244 @SupportedBrowser(SupportedBrowser.IE, '10') 250 @SupportedBrowser(SupportedBrowser.IE, '10')
245 @Experimental() 251 @Experimental()
246 static const EventStreamProvider<Event> visibilityChangeEvent = 252 static const EventStreamProvider<Event> visibilityChangeEvent =
247 const _CustomEventStreamProvider<Event>( 253 const _CustomEventStreamProvider<Event>(
248 _determineVisibilityChangeEventType); 254 _determineVisibilityChangeEventType);
249 255
250 static String _determineVisibilityChangeEventType(EventTarget e) { 256 static String _determineVisibilityChangeEventType(EventTarget e) {
(...skipping 14 matching lines...) Expand all
265 $endif 271 $endif
266 } 272 }
267 273
268 @SupportedBrowser(SupportedBrowser.CHROME) 274 @SupportedBrowser(SupportedBrowser.CHROME)
269 @SupportedBrowser(SupportedBrowser.FIREFOX) 275 @SupportedBrowser(SupportedBrowser.FIREFOX)
270 @SupportedBrowser(SupportedBrowser.IE, '10') 276 @SupportedBrowser(SupportedBrowser.IE, '10')
271 @Experimental() 277 @Experimental()
272 Stream<Event> get onVisibilityChange => 278 Stream<Event> get onVisibilityChange =>
273 visibilityChangeEvent.forTarget(this); 279 visibilityChangeEvent.forTarget(this);
274 } 280 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698