| 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 /** | 5 /** |
| 6 * This library exposes the types in [watcher], [safe_html], [templating] and | 6 * This library exposes the types in [watcher], [safe_html], [templating] and |
| 7 * the [WebComponent] base class. See this article for more information about | 7 * the [WebComponent] base class. See this article for more information about |
| 8 * this library: <http://www.dartlang.org/articles/dart-web-components/>. | 8 * this library: <http://www.dartlang.org/articles/dart-web-components/>. |
| 9 */ | 9 */ |
| 10 library web_ui; | 10 library web_ui; |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 bool hasChildNodes() => _element.hasChildNodes(); | 300 bool hasChildNodes() => _element.hasChildNodes(); |
| 301 | 301 |
| 302 Node insertBefore(Node newChild, Node refChild) => | 302 Node insertBefore(Node newChild, Node refChild) => |
| 303 _element.insertBefore(newChild, refChild); | 303 _element.insertBefore(newChild, refChild); |
| 304 | 304 |
| 305 Map<String, String> get attributes => _element.attributes; | 305 Map<String, String> get attributes => _element.attributes; |
| 306 set attributes(Map<String, String> value) { | 306 set attributes(Map<String, String> value) { |
| 307 _element.attributes = value; | 307 _element.attributes = value; |
| 308 } | 308 } |
| 309 | 309 |
| 310 List<Element> get elements => _element.elements; | 310 List<Element> get elements => _element.children; |
| 311 | 311 |
| 312 set elements(Collection<Element> value) { | 312 set elements(Collection<Element> value) { |
| 313 _element.elements = value; | 313 _element.children = value; |
| 314 } | 314 } |
| 315 | 315 |
| 316 List<Element> get children => _element.children; | 316 List<Element> get children => _element.children; |
| 317 | 317 |
| 318 set children(Collection<Element> value) { | 318 set children(Collection<Element> value) { |
| 319 _element.children = value; | 319 _element.children = value; |
| 320 } | 320 } |
| 321 | 321 |
| 322 Set<String> get classes => _element.classes; | 322 Set<String> get classes => _element.classes; |
| 323 | 323 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 335 | 335 |
| 336 Future<CssStyleDeclaration> get computedStyle => _element.computedStyle; | 336 Future<CssStyleDeclaration> get computedStyle => _element.computedStyle; |
| 337 | 337 |
| 338 Future<CssStyleDeclaration> getComputedStyle(String pseudoElement) | 338 Future<CssStyleDeclaration> getComputedStyle(String pseudoElement) |
| 339 => _element.getComputedStyle(pseudoElement); | 339 => _element.getComputedStyle(pseudoElement); |
| 340 | 340 |
| 341 Element clone(bool deep) => _element.clone(deep); | 341 Element clone(bool deep) => _element.clone(deep); |
| 342 | 342 |
| 343 Element get parent => _element.parent; | 343 Element get parent => _element.parent; |
| 344 | 344 |
| 345 Node get parentNode => _element.parentNode; |
| 346 |
| 345 ElementEvents get on => _element.on; | 347 ElementEvents get on => _element.on; |
| 346 | 348 |
| 347 String get contentEditable => _element.contentEditable; | 349 String get contentEditable => _element.contentEditable; |
| 348 | 350 |
| 349 String get dir => _element.dir; | 351 String get dir => _element.dir; |
| 350 | 352 |
| 351 bool get draggable => _element.draggable; | 353 bool get draggable => _element.draggable; |
| 352 | 354 |
| 353 bool get hidden => _element.hidden; | 355 bool get hidden => _element.hidden; |
| 354 | 356 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 } | 570 } |
| 569 | 571 |
| 570 /** | 572 /** |
| 571 * Set this to true to use native Shadow DOM if it is supported. | 573 * Set this to true to use native Shadow DOM if it is supported. |
| 572 * Note that this will change behavior of [WebComponent] APIs for tree | 574 * Note that this will change behavior of [WebComponent] APIs for tree |
| 573 * traversal. | 575 * traversal. |
| 574 */ | 576 */ |
| 575 bool useShadowDom = false; | 577 bool useShadowDom = false; |
| 576 | 578 |
| 577 bool get _realShadowRoot => useShadowDom && ShadowRoot.supported; | 579 bool get _realShadowRoot => useShadowDom && ShadowRoot.supported; |
| OLD | NEW |