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

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

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:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /// The Dart HTML library. 1 /// The Dart HTML library.
2 /// 2 ///
3 /// For examples, see 3 /// For examples, see
4 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) 4 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples)
5 /// on Github. 5 /// on Github.
6 library dart.dom.html; 6 library dart.dom.html;
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:collection'; 9 import 'dart:collection';
10 import 'dart:_collection-dev' hide Symbol, deprecated; 10 import 'dart:_collection-dev' hide Symbol, deprecated;
(...skipping 20 matching lines...) Expand all
31 // Auto-generated dart:html library. 31 // Auto-generated dart:html library.
32 32
33 33
34 // Not actually used, but imported since dart:html can generate these objects. 34 // Not actually used, but imported since dart:html can generate these objects.
35 35
36 36
37 37
38 38
39 39
40 /** 40 /**
41 * The top-level Window object. 41 * Top-level container for a web page, which is usually a browser tab or window.
42 *
43 * Each web page loaded in the browser has its own [Window], which is a
44 * container for the web page.
45 *
46 * If the web page has any `<iframe>` elements, then each `iframe` has its own
Kathy Walrath 2013/07/11 22:59:45 I would use either iframe or `<iframe>` (never `if
47 * [Window] object, which is accessible only to that `iframe`.
48 *
49 * See also:
50 *
51 * * [Window](https://developer.mozilla.org/en-US/docs/Web/API/window) from MD N.
42 */ 52 */
43 Window get window => JS('Window', 'window'); 53 Window get window => JS('Window', 'window');
44 54
45 /** 55 /**
46 * The top-level Document object. 56 * Root node for all content in a web page.
47 */ 57 */
48 HtmlDocument get document => JS('HtmlDocument', 'document'); 58 HtmlDocument get document => JS('HtmlDocument', 'document');
49 59
50 Element query(String selector) => document.query(selector); 60 Element query(String selector) => document.query(selector);
51 ElementList queryAll(String selector) => document.queryAll(selector); 61 ElementList queryAll(String selector) => document.queryAll(selector);
52 62
53 // Workaround for tags like <cite> that lack their own Element subclass -- 63 // Workaround for tags like <cite> that lack their own Element subclass --
54 // Dart issue 1990. 64 // Dart issue 1990.
55 class _HTMLElement extends Element native "HTMLElement" { 65 class _HTMLElement extends Element native "HTMLElement" {
56 } 66 }
(...skipping 29384 matching lines...) Expand 10 before | Expand all | Expand 10 after
29441 _position = nextPosition; 29451 _position = nextPosition;
29442 return true; 29452 return true;
29443 } 29453 }
29444 _current = null; 29454 _current = null;
29445 _position = _array.length; 29455 _position = _array.length;
29446 return false; 29456 return false;
29447 } 29457 }
29448 29458
29449 T get current => _current; 29459 T get current => _current;
29450 } 29460 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698