| 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 // TODO(jacobr): use _Lists.dart to remove some of the duplicated | 5 // TODO(jacobr): use _Lists.dart to remove some of the duplicated |
| 6 // functionality. | 6 // functionality. |
| 7 class _ChildrenElementList implements ElementList { | 7 class _ChildrenElementList implements ElementList { |
| 8 // Raw Element. | 8 // Raw Element. |
| 9 final _ElementImpl _element; | 9 final _ElementImpl _element; |
| 10 final _HTMLCollectionImpl _childElements; | 10 final _HTMLCollectionImpl _childElements; |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 // TODO(jacobr): last param should be null, see b/5045788 | 531 // TODO(jacobr): last param should be null, see b/5045788 |
| 532 return getComputedStyle(''); | 532 return getComputedStyle(''); |
| 533 } | 533 } |
| 534 | 534 |
| 535 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) { | 535 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) { |
| 536 return _createMeasurementFuture(() => | 536 return _createMeasurementFuture(() => |
| 537 window._getComputedStyle(this, pseudoElement), | 537 window._getComputedStyle(this, pseudoElement), |
| 538 new Completer<CSSStyleDeclaration>()); | 538 new Completer<CSSStyleDeclaration>()); |
| 539 } | 539 } |
| 540 | 540 |
| 541 _ElementEventsImpl get on() => |
| 542 new _ElementEventsImpl(this); |
| 543 |
| 541 static final int ALLOW_KEYBOARD_INPUT = 1; | 544 static final int ALLOW_KEYBOARD_INPUT = 1; |
| 542 | 545 |
| 543 int get _childElementCount() native "return this.childElementCount;"; | 546 int get _childElementCount() native "return this.childElementCount;"; |
| 544 | 547 |
| 545 _HTMLCollectionImpl get _children() native "return this.children;"; | 548 _HTMLCollectionImpl get _children() native "return this.children;"; |
| 546 | 549 |
| 547 final _DOMTokenListImpl classList; | 550 final _DOMTokenListImpl classList; |
| 548 | 551 |
| 549 String get _className() native "return this.className;"; | 552 String get _className() native "return this.className;"; |
| 550 | 553 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 final String tagName; | 618 final String tagName; |
| 616 | 619 |
| 617 String title; | 620 String title; |
| 618 | 621 |
| 619 bool translate; | 622 bool translate; |
| 620 | 623 |
| 621 final String webkitRegionOverflow; | 624 final String webkitRegionOverflow; |
| 622 | 625 |
| 623 String webkitdropzone; | 626 String webkitdropzone; |
| 624 | 627 |
| 625 _ElementEventsImpl get on() => | |
| 626 new _ElementEventsImpl(this); | |
| 627 | |
| 628 void blur() native; | 628 void blur() native; |
| 629 | 629 |
| 630 void click() native; | 630 void click() native; |
| 631 | 631 |
| 632 void focus() native; | 632 void focus() native; |
| 633 | 633 |
| 634 String _getAttribute(String name) native "return this.getAttribute(name);"; | 634 String _getAttribute(String name) native "return this.getAttribute(name);"; |
| 635 | 635 |
| 636 _ClientRectImpl _getBoundingClientRect() native "return this.getBoundingClient
Rect();"; | 636 _ClientRectImpl _getBoundingClientRect() native "return this.getBoundingClient
Rect();"; |
| 637 | 637 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 EventListenerList get touchEnd() => _get('touchend'); | 755 EventListenerList get touchEnd() => _get('touchend'); |
| 756 | 756 |
| 757 EventListenerList get touchLeave() => _get('touchleave'); | 757 EventListenerList get touchLeave() => _get('touchleave'); |
| 758 | 758 |
| 759 EventListenerList get touchMove() => _get('touchmove'); | 759 EventListenerList get touchMove() => _get('touchmove'); |
| 760 | 760 |
| 761 EventListenerList get touchStart() => _get('touchstart'); | 761 EventListenerList get touchStart() => _get('touchstart'); |
| 762 | 762 |
| 763 EventListenerList get transitionEnd() => _get('webkitTransitionEnd'); | 763 EventListenerList get transitionEnd() => _get('webkitTransitionEnd'); |
| 764 } | 764 } |
| OLD | NEW |