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

Side by Side Diff: pkg/custom_element/lib/custom_element.dart

Issue 23819006: Update CustomElement as well. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 * Custom Elements let authors define their own elements. Authors associate code 6 * Custom Elements let authors define their own elements. Authors associate code
7 * with custom tag names, and then use those custom tag names as they would any 7 * with custom tag names, and then use those custom tag names as they would any
8 * standard tag. See <www.polymer-project.org/platform/custom-elements.html> 8 * standard tag. See <www.polymer-project.org/platform/custom-elements.html>
9 * for more information. 9 * for more information.
10 */ 10 */
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 int get scrollLeft => host.scrollLeft; 464 int get scrollLeft => host.scrollLeft;
465 465
466 int get scrollTop => host.scrollTop; 466 int get scrollTop => host.scrollTop;
467 467
468 set scrollLeft(int value) { host.scrollLeft = value; } 468 set scrollLeft(int value) { host.scrollLeft = value; }
469 469
470 set scrollTop(int value) { host.scrollTop = value; } 470 set scrollTop(int value) { host.scrollTop = value; }
471 471
472 int get scrollWidth => host.scrollWidth; 472 int get scrollWidth => host.scrollWidth;
473 473
474 String $dom_getAttribute(String name) =>
475 host.$dom_getAttribute(name);
476
477 String $dom_getAttributeNS(String namespaceUri, String localName) =>
478 host.$dom_getAttributeNS(namespaceUri, localName);
479
480 String $dom_setAttributeNS(
481 String namespaceUri, String localName, String value) {
482 host.$dom_setAttributeNS(namespaceUri, localName, value);
483 }
484
485 Rect getBoundingClientRect() => host.getBoundingClientRect(); 474 Rect getBoundingClientRect() => host.getBoundingClientRect();
486 475
487 List<Rect> getClientRects() => host.getClientRects(); 476 List<Rect> getClientRects() => host.getClientRects();
488 477
489 List<Node> getElementsByClassName(String name) => 478 List<Node> getElementsByClassName(String name) =>
490 host.getElementsByClassName(name); 479 host.getElementsByClassName(name);
491 480
492 void $dom_setAttribute(String name, String value) =>
493 host.$dom_setAttribute(name, value);
494
495 List<Node> get $dom_childNodes => host.$dom_childNodes;
496
497 Node get firstChild => host.firstChild; 481 Node get firstChild => host.firstChild;
498 482
499 Node get lastChild => host.lastChild; 483 Node get lastChild => host.lastChild;
500 484
501 String get localName => host.localName; 485 String get localName => host.localName;
502 486
503 String get namespaceUri => host.namespaceUri; 487 String get namespaceUri => host.namespaceUri;
504 488
505 int get nodeType => host.nodeType; 489 int get nodeType => host.nodeType;
506 490
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 for (var removed in record.removedNodes) { 609 for (var removed in record.removedNodes) {
626 if (identical(node, removed)) { 610 if (identical(node, removed)) {
627 observer.disconnect(); 611 observer.disconnect();
628 element.removed(); 612 element.removed();
629 return; 613 return;
630 } 614 }
631 } 615 }
632 } 616 }
633 }).observe(element.parentNode, childList: true); 617 }).observe(element.parentNode, childList: true);
634 } 618 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698