| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // WARNING: | 5 // WARNING: |
| 6 // This file contains documentation that is merged into the real source. | 6 // This file contains documentation that is merged into the real source. |
| 7 // Do not make code changes here. | 7 // Do not make code changes here. |
| 8 | 8 |
| 9 interface ElementList extends List<Element> { | 9 interface ElementList extends List<Element> { |
| 10 // TODO(jacobr): add element batch manipulation methods. | 10 // TODO(jacobr): add element batch manipulation methods. |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 /** @domName Window.getComputedStyle */ | 78 /** @domName Window.getComputedStyle */ |
| 79 Future<CSSStyleDeclaration> get computedStyle(); | 79 Future<CSSStyleDeclaration> get computedStyle(); |
| 80 | 80 |
| 81 /** @domName Window.getComputedStyle */ | 81 /** @domName Window.getComputedStyle */ |
| 82 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); | 82 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); |
| 83 | 83 |
| 84 Element clone(bool deep); | 84 Element clone(bool deep); |
| 85 | 85 |
| 86 Element get parent(); | 86 Element get parent(); |
| 87 | 87 |
| 88 void addText(String text) { | |
| 89 this.insertAdjacentText('beforeend', text); | |
| 90 } | |
| 91 | |
| 92 void addHTML(String text) { | |
| 93 this.insertAdjacentHTML('beforeend', text); | |
| 94 } | |
| 95 | |
| 96 | 88 |
| 97 /** | 89 /** |
| 98 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent | 90 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent |
| 99 */ | 91 */ |
| 100 ElementEvents get on(); | 92 ElementEvents get on(); |
| 101 | 93 |
| 102 static final int ALLOW_KEYBOARD_INPUT = 1; | 94 static final int ALLOW_KEYBOARD_INPUT = 1; |
| 103 | 95 |
| 104 /** @domName Element.childElementCount */ | 96 /** @domName Element.childElementCount */ |
| 105 final int $dom_childElementCount; | 97 final int $dom_childElementCount; |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 EventListenerList get touchEnter(); | 366 EventListenerList get touchEnter(); |
| 375 | 367 |
| 376 EventListenerList get touchLeave(); | 368 EventListenerList get touchLeave(); |
| 377 | 369 |
| 378 EventListenerList get touchMove(); | 370 EventListenerList get touchMove(); |
| 379 | 371 |
| 380 EventListenerList get touchStart(); | 372 EventListenerList get touchStart(); |
| 381 | 373 |
| 382 EventListenerList get transitionEnd(); | 374 EventListenerList get transitionEnd(); |
| 383 } | 375 } |
| OLD | NEW |