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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 19058002: Added some more documentation to top level Window. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Ran gosh. 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:
Download patch
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 26dcd4a644867c601399fdad5d5bb06aa9246936..bb0a1f8ad7f8a036209be980ca6bd41ed3b6d18f 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -35,6 +35,19 @@ import 'dart:web_audio' as web_audio;
Window _window;
+/**
+ * Top-level container for a web page, which is usually a browser tab or window.
+ *
+ * Each web page loaded in the browser has its own [Window], which is a
+ * container for the web page.
+ *
+ * If the web page has any `<iframe>` elements, then each `iframe` has its own
+ * [Window] object, which is accessible only to that `iframe`.
+ *
+ * See also:
+ *
+ * * [Window](https://developer.mozilla.org/en-US/docs/Web/API/window) from MDN.
+ */
Window get window {
if (_window != null) {
return _window;
@@ -45,6 +58,9 @@ Window get window {
HtmlDocument _document;
+/**
+ * Root node for all content in a web page.
+ */
HtmlDocument get document {
if (_document != null) {
return _document;

Powered by Google App Engine
This is Rietveld 408576698