| 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 Window get window => JS('Window', 'window'); | 110 Window get window => JS('Window', 'window'); |
| 111 | 111 |
| 112 /** | 112 /** |
| 113 * Root node for all content in a web page. | 113 * Root node for all content in a web page. |
| 114 */ | 114 */ |
| 115 HtmlDocument get document => JS('HtmlDocument', 'document'); | 115 HtmlDocument get document => JS('HtmlDocument', 'document'); |
| 116 | 116 |
| 117 // Workaround for tags like <cite> that lack their own Element subclass -- | 117 // Workaround for tags like <cite> that lack their own Element subclass -- |
| 118 // Dart issue 1990. | 118 // Dart issue 1990. |
| 119 class HtmlElement extends Element native "HTMLElement" { | 119 @Native("HTMLElement") |
| 120 class HtmlElement extends Element { |
| 120 factory HtmlElement() { throw new UnsupportedError("Not supported"); } | 121 factory HtmlElement() { throw new UnsupportedError("Not supported"); } |
| 121 | 122 |
| 122 /** | 123 /** |
| 123 * Constructor instantiated by the DOM when a custom element has been created. | 124 * Constructor instantiated by the DOM when a custom element has been created. |
| 124 * | 125 * |
| 125 * This can only be called by subclasses from their created constructor. | 126 * This can only be called by subclasses from their created constructor. |
| 126 */ | 127 */ |
| 127 HtmlElement.created() : super.created(); | 128 HtmlElement.created() : super.created(); |
| 128 } | 129 } |
| 129 | 130 |
| 130 // EntryArray type was removed, so explicitly adding it to allow support for | 131 // EntryArray type was removed, so explicitly adding it to allow support for |
| 131 // older Chrome versions. | 132 // older Chrome versions. |
| 132 // Issue #12573. | 133 // Issue #12573. |
| 133 abstract class _EntryArray implements List<Entry> native "EntryArray" {} | 134 @Native("EntryArray") |
| 135 abstract class _EntryArray implements List<Entry> {} |
| 134 | 136 |
| 135 /** | 137 /** |
| 136 * Spawn a DOM isolate using the given URI in the same window. | 138 * Spawn a DOM isolate using the given URI in the same window. |
| 137 * This isolate is not concurrent. It runs on the browser thread | 139 * This isolate is not concurrent. It runs on the browser thread |
| 138 * with full access to the DOM. | 140 * with full access to the DOM. |
| 139 * Note: this API is still evolving and may move to dart:isolate. | 141 * Note: this API is still evolving and may move to dart:isolate. |
| 140 */ | 142 */ |
| 141 @Experimental() | 143 @Experimental() |
| 142 Future<Isolate> spawnDomUri(Uri uri, List<String> args, message) { | 144 Future<Isolate> spawnDomUri(Uri uri, List<String> args, message) { |
| 143 // TODO(17738): Implement this. | 145 // TODO(17738): Implement this. |
| 144 throw new UnimplementedError(); | 146 throw new UnimplementedError(); |
| 145 } | 147 } |
| OLD | NEW |