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

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

Issue 410863002: Redo "Use @Native annotation on dart2js DOM native classes" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 months 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 part of $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 @DocsEditable() 7 @DocsEditable()
8 $if DART2JS 8 $if DART2JS
9 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS native "Wind ow,DOMWindow" { 9 $(ANNOTATIONS)@Native("Window,DOMWindow")
10 $(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
10 $else 11 $else
11 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 12 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
12 $endif 13 $endif
13 14
14 /** 15 /**
15 * Returns a Future that completes just before the window is about to 16 * Returns a Future that completes just before the window is about to
16 * repaint so the user can draw an animation frame. 17 * repaint so the user can draw an animation frame.
17 * 18 *
18 * If you need to later cancel this animation, use [requestAnimationFrame] 19 * If you need to later cancel this animation, use [requestAnimationFrame]
19 * instead. 20 * instead.
20 * 21 *
21 * The [Future] completes to a timestamp that represents a floating 22 * The [Future] completes to a timestamp that represents a floating
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 368
368 ElementStream<BeforeUnloadEvent> forElement(Element e, {bool useCapture: false }) { 369 ElementStream<BeforeUnloadEvent> forElement(Element e, {bool useCapture: false }) {
369 return new _ElementEventStreamImpl(e, _eventType, useCapture); 370 return new _ElementEventStreamImpl(e, _eventType, useCapture);
370 } 371 }
371 372
372 ElementStream<BeforeUnloadEvent> _forElementList(ElementList e, 373 ElementStream<BeforeUnloadEvent> _forElementList(ElementList e,
373 {bool useCapture: false}) { 374 {bool useCapture: false}) {
374 return new _ElementListEventStreamImpl(e, _eventType, useCapture); 375 return new _ElementListEventStreamImpl(e, _eventType, useCapture);
375 } 376 }
376 } 377 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698