OLD | NEW |
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 - unless you are editing documentation as per: | 5 // DO NOT EDIT - unless you are editing documentation as per: |
6 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation | 6 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation |
7 // Auto-generated dart:html library. | 7 // Auto-generated dart:html library. |
8 | 8 |
9 /** | 9 /** |
10 * HTML elements and other resources for web-based applications that need to | 10 * HTML elements and other resources for web-based applications that need to |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 * | 109 * |
110 * See also: | 110 * See also: |
111 * | 111 * |
112 * * [Window](https://developer.mozilla.org/en-US/docs/Web/API/window) from MD
N. | 112 * * [Window](https://developer.mozilla.org/en-US/docs/Web/API/window) from MD
N. |
113 */ | 113 */ |
114 Window get window => JS('Window', 'window'); | 114 Window get window => JS('Window', 'window'); |
115 | 115 |
116 /** | 116 /** |
117 * Root node for all content in a web page. | 117 * Root node for all content in a web page. |
118 */ | 118 */ |
119 HtmlDocument get document => JS('HtmlDocument', 'document'); | 119 HtmlDocument get document => |
| 120 JS('returns:HtmlDocument;depends:none;effects:none;gvn:true', 'document'); |
120 | 121 |
121 // Workaround for tags like <cite> that lack their own Element subclass -- | 122 // Workaround for tags like <cite> that lack their own Element subclass -- |
122 // Dart issue 1990. | 123 // Dart issue 1990. |
123 @Native("HTMLElement") | 124 @Native("HTMLElement") |
124 class HtmlElement extends Element { | 125 class HtmlElement extends Element { |
125 factory HtmlElement() { throw new UnsupportedError("Not supported"); } | 126 factory HtmlElement() { throw new UnsupportedError("Not supported"); } |
126 | 127 |
127 /** | 128 /** |
128 * Constructor instantiated by the DOM when a custom element has been created. | 129 * Constructor instantiated by the DOM when a custom element has been created. |
129 * | 130 * |
130 * This can only be called by subclasses from their created constructor. | 131 * This can only be called by subclasses from their created constructor. |
131 */ | 132 */ |
132 HtmlElement.created() : super.created(); | 133 HtmlElement.created() : super.created(); |
133 } | 134 } |
134 | 135 |
135 /** | 136 /** |
136 * Spawn a DOM isolate using the given URI in the same window. | 137 * Spawn a DOM isolate using the given URI in the same window. |
137 * This isolate is not concurrent. It runs on the browser thread | 138 * This isolate is not concurrent. It runs on the browser thread |
138 * with full access to the DOM. | 139 * with full access to the DOM. |
139 * Note: this API is still evolving and may move to dart:isolate. | 140 * Note: this API is still evolving and may move to dart:isolate. |
140 */ | 141 */ |
141 @Experimental() | 142 @Experimental() |
142 Future<Isolate> spawnDomUri(Uri uri, List<String> args, message) { | 143 Future<Isolate> spawnDomUri(Uri uri, List<String> args, message) { |
143 // TODO(17738): Implement this. | 144 // TODO(17738): Implement this. |
144 throw new UnimplementedError(); | 145 throw new UnimplementedError(); |
145 } | 146 } |
146 | 147 |
147 createCustomUpgrader(Type customElementClass, $this) => $this; | 148 createCustomUpgrader(Type customElementClass, $this) => $this; |
OLD | NEW |