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

Side by Side Diff: lib/web_components.dart

Issue 11471037: Updating dwc for breaking changes that will be part of the next sdk (Closed) Base URL: git@github.com:dart-lang/dart-web-components.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
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_components; 10 library web_components;
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 } 324 }
325 325
326 Map<String, String> get dataAttributes => _element.dataAttributes; 326 Map<String, String> get dataAttributes => _element.dataAttributes;
327 set dataAttributes(Map<String, String> value) { 327 set dataAttributes(Map<String, String> value) {
328 _element.dataAttributes = value; 328 _element.dataAttributes = value;
329 } 329 }
330 330
331 Map<String, String> getNamespacedAttributes(String namespace) => 331 Map<String, String> getNamespacedAttributes(String namespace) =>
332 _element.getNamespacedAttributes(namespace); 332 _element.getNamespacedAttributes(namespace);
333 333
334 Future<CSSStyleDeclaration> get computedStyle => _element.computedStyle; 334 Future<CssStyleDeclaration> get computedStyle => _element.computedStyle;
335 335
336 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) 336 Future<CssStyleDeclaration> getComputedStyle(String pseudoElement)
337 => _element.getComputedStyle(pseudoElement); 337 => _element.getComputedStyle(pseudoElement);
338 338
339 Element clone(bool deep) => _element.clone(deep); 339 Element clone(bool deep) => _element.clone(deep);
340 340
341 Element get parent => _element.parent; 341 Element get parent => _element.parent;
342 342
343 ElementEvents get on => _element.on; 343 ElementEvents get on => _element.on;
344 344
345 String get contentEditable => _element.contentEditable; 345 String get contentEditable => _element.contentEditable;
346 346
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 } 395 }
396 396
397 Map<String, String> get dataset => _element.dataset; 397 Map<String, String> get dataset => _element.dataset;
398 398
399 Element get nextElementSibling => _element.nextElementSibling; 399 Element get nextElementSibling => _element.nextElementSibling;
400 400
401 Element get offsetParent => _element.offsetParent; 401 Element get offsetParent => _element.offsetParent;
402 402
403 Element get previousElementSibling => _element.previousElementSibling; 403 Element get previousElementSibling => _element.previousElementSibling;
404 404
405 CSSStyleDeclaration get style => _element.style; 405 CssStyleDeclaration get style => _element.style;
406 406
407 String get tagName => _element.tagName; 407 String get tagName => _element.tagName;
408 408
409 void blur() { _element.blur(); } 409 void blur() { _element.blur(); }
410 410
411 void focus() { _element.focus(); } 411 void focus() { _element.focus(); }
412 412
413 void scrollByLines(int lines) { 413 void scrollByLines(int lines) {
414 _element.scrollByLines(lines); 414 _element.scrollByLines(lines);
415 } 415 }
(...skipping 17 matching lines...) Expand all
433 } 433 }
434 434
435 void webkitRequestFullscreen() { _element.webkitRequestFullscreen(); } 435 void webkitRequestFullscreen() { _element.webkitRequestFullscreen(); }
436 436
437 void webkitRequestPointerLock() { _element.webkitRequestPointerLock(); } 437 void webkitRequestPointerLock() { _element.webkitRequestPointerLock(); }
438 438
439 Element query(String selectors) => _element.query(selectors); 439 Element query(String selectors) => _element.query(selectors);
440 440
441 List<Element> queryAll(String selectors) => _element.queryAll(selectors); 441 List<Element> queryAll(String selectors) => _element.queryAll(selectors);
442 442
443 HTMLCollection get $dom_children => _element.$dom_children; 443 HtmlCollection get $dom_children => _element.$dom_children;
444 444
445 int get $dom_childElementCount => _element.$dom_childElementCount; 445 int get $dom_childElementCount => _element.$dom_childElementCount;
446 446
447 String get $dom_className => _element.$dom_className; 447 String get $dom_className => _element.$dom_className;
448 set $dom_className(String value) { _element.$dom_className = value; } 448 set $dom_className(String value) { _element.$dom_className = value; }
449 449
450 int get clientHeight => _element.clientHeight; 450 int get clientHeight => _element.clientHeight;
451 451
452 int get clientLeft => _element.clientLeft; 452 int get clientLeft => _element.clientLeft;
453 453
454 int get clientTop => _element.clientTop; 454 int get clientTop => _element.clientTop;
455 455
456 int get clientWidth => _element.clientWidth; 456 int get clientWidth => _element.clientWidth;
457 457
458 int get childElementCount => _element.childElementCount;
459
460 Element get firstElementChild => _element.firstElementChild;
461
462 Element get lastElementChild => _element.lastElementChild;
463
464 Element get $dom_firstElementChild => _element.$dom_firstElementChild; 458 Element get $dom_firstElementChild => _element.$dom_firstElementChild;
465 459
466 Element get $dom_lastElementChild => _element.$dom_lastElementChild; 460 Element get $dom_lastElementChild => _element.$dom_lastElementChild;
467 461
468 int get offsetHeight => _element.offsetHeight; 462 int get offsetHeight => _element.offsetHeight;
469 463
470 int get offsetLeft => _element.offsetLeft; 464 int get offsetLeft => _element.offsetLeft;
471 465
472 int get offsetTop => _element.offsetTop; 466 int get offsetTop => _element.offsetTop;
473 467
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 } 566 }
573 567
574 /** 568 /**
575 * Set this to true to use native Shadow DOM if it is supported. 569 * Set this to true to use native Shadow DOM if it is supported.
576 * Note that this will change behavior of [WebComponent] APIs for tree 570 * Note that this will change behavior of [WebComponent] APIs for tree
577 * traversal. 571 * traversal.
578 */ 572 */
579 bool useShadowDom = false; 573 bool useShadowDom = false;
580 574
581 bool get _realShadowRoot => useShadowDom && ShadowRoot.supported; 575 bool get _realShadowRoot => useShadowDom && ShadowRoot.supported;
OLDNEW
« lib/src/utils.dart ('K') | « lib/src/utils.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698