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

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

Issue 66193010: Way more documentation blanks filled in. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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
« sdk/lib/html/dart2js/html_dart2js.dart ('K') | « tools/dom/dom.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS native "Wind ow,DOMWindow" {
10 $else 10 $else
(...skipping 17 matching lines...) Expand all
28 */ 28 */
29 Future<num> get animationFrame { 29 Future<num> get animationFrame {
30 var completer = new Completer<num>(); 30 var completer = new Completer<num>();
31 requestAnimationFrame((time) { 31 requestAnimationFrame((time) {
32 completer.complete(time); 32 completer.complete(time);
33 }); 33 });
34 return completer.future; 34 return completer.future;
35 } 35 }
36 36
37 $if DART2JS 37 $if DART2JS
38 /**
39 * The newest document in this window.
40 *
41 * ## Other resources
42 *
43 * * [Loading web pages]
44 * (http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html)
45 * from WHATWG.
46 */
38 Document get document => JS('Document', '#.document', this); 47 Document get document => JS('Document', '#.document', this);
39 48
40 WindowBase _open2(url, name) => JS('Window', '#.open(#,#)', this, url, name); 49 WindowBase _open2(url, name) => JS('Window', '#.open(#,#)', this, url, name);
41 50
42 WindowBase _open3(url, name, options) => 51 WindowBase _open3(url, name, options) =>
43 JS('Window', '#.open(#,#,#)', this, url, name, options); 52 JS('Window', '#.open(#,#,#)', this, url, name, options);
44 53
45 WindowBase open(String url, String name, [String options]) { 54 WindowBase open(String url, String name, [String options]) {
46 if (options == null) { 55 if (options == null) {
47 return _DOMWindowCrossFrame._createSafe(_open2(url, name)); 56 return _DOMWindowCrossFrame._createSafe(_open2(url, name));
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 */ 175 */
167 @SupportedBrowser(SupportedBrowser.CHROME, '23.0') 176 @SupportedBrowser(SupportedBrowser.CHROME, '23.0')
168 @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0') 177 @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0')
169 @SupportedBrowser(SupportedBrowser.IE, '10.0') 178 @SupportedBrowser(SupportedBrowser.IE, '10.0')
170 @Experimental() 179 @Experimental()
171 IdbFactory get indexedDB => 180 IdbFactory get indexedDB =>
172 JS('IdbFactory|Null', // If not supported, returns `null`. 181 JS('IdbFactory|Null', // If not supported, returns `null`.
173 '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB', 182 '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB',
174 this, this, this); 183 this, this, this);
175 184
185 /// The debugging console for this window.
176 @DomName('Window.console') 186 @DomName('Window.console')
177 Console get console => Console._safeConsole; 187 Console get console => Console._safeConsole;
178 188
179 $else 189 $else
180 /** 190 /**
181 * Called to draw an animation frame and then request the window to repaint 191 * Called to draw an animation frame and then request the window to repaint
182 * after [callback] has finished (creating the animation). 192 * after [callback] has finished (creating the animation).
183 * 193 *
184 * Use this method only if you need to later call [cancelAnimationFrame]. If 194 * Use this method only if you need to later call [cancelAnimationFrame]. If
185 * not, the preferred Dart idiom is to set animation frames by calling 195 * not, the preferred Dart idiom is to set animation frames by calling
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 return controller.stream; 313 return controller.stream;
304 $else 314 $else
305 return stream; 315 return stream;
306 $endif 316 $endif
307 } 317 }
308 318
309 String getEventType(EventTarget target) { 319 String getEventType(EventTarget target) {
310 return _eventType; 320 return _eventType;
311 } 321 }
312 } 322 }
OLDNEW
« sdk/lib/html/dart2js/html_dart2js.dart ('K') | « tools/dom/dom.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698