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

Side by Side Diff: lib/web_ui.dart

Issue 11416379: Fixes for the upcoming sdk changes (bleeding_edge 16052) (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 8 years 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
« no previous file with comments | « lib/templating.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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;
OLDNEW
« no previous file with comments | « lib/templating.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698