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

Unified Diff: tools/dom/docs/docs.json

Issue 51183002: Updated top level docs for Window. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/src/CrossFrameTypes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/docs/docs.json
diff --git a/tools/dom/docs/docs.json b/tools/dom/docs/docs.json
index a787d3cfe06cddf98c3c35e5ee82aa33ea4642ac..82c67375baad2286373ec33a8310046842cab929 100644
--- a/tools/dom/docs/docs.json
+++ b/tools/dom/docs/docs.json
@@ -310,6 +310,37 @@
]
}
},
+ "Window": {
+ "comment": [
+ "/**",
+ " * Top-level container for the current browser tab or window.",
+ " *",
+ " * In a web browser, each window has a [Window] object, but within the context",
+ " * of a script, a [Window] object represents only the current window. In",
+ " * addition to the open window, each window, tab, and iframe has its own",
+ " * [Window] object. A [Window] contains a [Document] object, which contains this",
+ " * web page's content.",
+ " *",
+ " * Use `window` to access properties of the current window. For example:",
+ " *",
+ " * // Draw a scene when the window repaints.",
+ " * drawScene(num delta) {...}",
+ " * window.animationFrame.then(drawScene);.",
+ " *",
+ " * // Write to the console.",
+ " * window.console.log('Jinkies!');",
+ " * window.console.error('Jeepers!');",
+ " *",
+ " * **Note:** This class represents the current window, whereas [WindowBase] is",
+ " * a representation of any window, including other tabs, windows, and frames.",
+ " *",
+ " * ## Other resources",
+ " *",
+ " * * [DOM Window](https://developer.mozilla.org/en-US/docs/DOM/window) from MDN.",
+ " * * [Window](http://www.w3.org/TR/Window/) from the W3C.",
+ " */"
+ ]
+ },
"XMLHttpRequest": {
"members": {
"abort": [
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/src/CrossFrameTypes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698