| 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_components; | 10 library web_ui; |
| 11 | 11 |
| 12 export 'watcher.dart'; | 12 export 'watcher.dart'; |
| 13 export 'safe_html.dart'; | 13 export 'safe_html.dart'; |
| 14 export 'templating.dart'; | 14 export 'templating.dart'; |
| 15 | 15 |
| 16 import 'dart:html'; | 16 import 'dart:html'; |
| 17 | 17 |
| 18 // Imported for the doc comment | 18 // Imported for the doc comment |
| 19 import 'watcher.dart' as watcher; | 19 import 'watcher.dart' as watcher; |
| 20 import 'safe_html.dart' as safe_html; | 20 import 'safe_html.dart' as safe_html; |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 } | 574 } |
| 575 | 575 |
| 576 /** | 576 /** |
| 577 * Set this to true to use native Shadow DOM if it is supported. | 577 * Set this to true to use native Shadow DOM if it is supported. |
| 578 * Note that this will change behavior of [WebComponent] APIs for tree | 578 * Note that this will change behavior of [WebComponent] APIs for tree |
| 579 * traversal. | 579 * traversal. |
| 580 */ | 580 */ |
| 581 bool useShadowDom = false; | 581 bool useShadowDom = false; |
| 582 | 582 |
| 583 bool get _realShadowRoot => useShadowDom && ShadowRoot.supported; | 583 bool get _realShadowRoot => useShadowDom && ShadowRoot.supported; |
| OLD | NEW |