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

Side by Side Diff: tools/dom/templates/html/dartium/html_dartium.darttemplate

Issue 19058002: Added some more documentation to top level Window. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: CL comments and added more to document. Created 7 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 // DO NOT EDIT 5 // DO NOT EDIT
6 // Auto-generated dart:html library. 6 // Auto-generated dart:html library.
7 7
8 /// The Dart HTML library. 8 /// The Dart HTML library.
9 /// 9 ///
10 /// For examples, see 10 /// For examples, see
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 part '$AUXILIARY_DIR/Isolates.dart'; 52 part '$AUXILIARY_DIR/Isolates.dart';
53 part '$AUXILIARY_DIR/Microtask.dart'; 53 part '$AUXILIARY_DIR/Microtask.dart';
54 part '$AUXILIARY_DIR/Serialization.dart'; 54 part '$AUXILIARY_DIR/Serialization.dart';
55 part '$AUXILIARY_DIR/_ListIterators.dart'; 55 part '$AUXILIARY_DIR/_ListIterators.dart';
56 56
57 part '$AUXILIARY_DIR/native_DOMPublic.dart'; 57 part '$AUXILIARY_DIR/native_DOMPublic.dart';
58 part '$AUXILIARY_DIR/native_DOMImplementation.dart'; 58 part '$AUXILIARY_DIR/native_DOMImplementation.dart';
59 59
60 Window _window; 60 Window _window;
61 61
62 /**
63 * Top-level container for a web page, which is usually a browser tab or window.
64 *
65 * Each web page loaded in the browser has its own [Window], which is a
66 * container for the web page.
67 *
68 * This getter usually retuns the only [Window] on the page, but any `<iframe>`
69 * elements have their own [Window].
70 *
71 * See also:
72 *
73 * * [Window](https://developer.mozilla.org/en-US/docs/Web/API/window) from MD N.
74 */
62 Window get window { 75 Window get window {
63 if (_window != null) { 76 if (_window != null) {
64 return _window; 77 return _window;
65 } 78 }
66 _window = _Utils.window(); 79 _window = _Utils.window();
67 return _window; 80 return _window;
68 } 81 }
69 82
70 HtmlDocument _document; 83 HtmlDocument _document;
71 84
85 /**
86 * Root node for all content in a web page.
87 */
72 HtmlDocument get document { 88 HtmlDocument get document {
73 if (_document != null) { 89 if (_document != null) {
74 return _document; 90 return _document;
75 } 91 }
76 _document = window.document; 92 _document = window.document;
77 return _document; 93 return _document;
78 } 94 }
79 95
80 96
81 Element query(String selector) => document.query(selector); 97 Element query(String selector) => document.query(selector);
(...skipping 10 matching lines...) Expand all
92 _callPortLastResult = json.parse(_getPortSyncEventData(event)); 108 _callPortLastResult = json.parse(_getPortSyncEventData(event));
93 }); 109 });
94 _callPortInitialized = true; 110 _callPortInitialized = true;
95 } 111 }
96 assert(_callPortLastResult == null); 112 assert(_callPortLastResult == null);
97 _dispatchEvent('js-sync-message', {'id': id, 'message': message}); 113 _dispatchEvent('js-sync-message', {'id': id, 'message': message});
98 var result = _callPortLastResult; 114 var result = _callPortLastResult;
99 _callPortLastResult = null; 115 _callPortLastResult = null;
100 return result; 116 return result;
101 } 117 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698