| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [ | 5 [ |
| 6 CustomConstructor, | 6 CustomConstructor, |
| 7 ] interface Element : ParentNode { | 7 ] interface Element : ParentNode { |
| 8 readonly attribute DOMString tagName; | 8 readonly attribute DOMString tagName; |
| 9 | 9 |
| 10 boolean hasAttribute(DOMString name); | 10 boolean hasAttribute(DOMString name); |
| 11 [TreatReturnedNullStringAs=Null] DOMString getAttribute(DOMString name); | 11 [TreatReturnedNullStringAs=Null] DOMString getAttribute(DOMString name); |
| 12 [CustomElementCallbacks, RaisesException] void setAttribute(DOMString name, op
tional DOMString? value); | 12 [CustomElementCallbacks, RaisesException] void setAttribute(DOMString name, op
tional DOMString? value); |
| 13 [CustomElementCallbacks] void removeAttribute(DOMString name); | 13 [CustomElementCallbacks] void removeAttribute(DOMString name); |
| 14 | 14 |
| 15 sequence<Attr> getAttributes(); | 15 sequence<Attr> getAttributes(); |
| 16 | 16 |
| 17 readonly attribute ShadowRoot shadowRoot; | 17 readonly attribute ShadowRoot shadowRoot; |
| 18 | 18 |
| 19 void requestPaint(PaintingCallback callback); | 19 void requestPaint(PaintingCallback callback); |
| 20 | 20 |
| 21 void setLayoutManager(LayoutCallback callback); |
| 22 |
| 21 // TODO(abarth): Move to Node. | 23 // TODO(abarth): Move to Node. |
| 22 readonly attribute CSSStyleDeclaration style; | 24 readonly attribute CSSStyleDeclaration style; |
| 23 | 25 |
| 24 // TODO(abarth): Remove these when we implement more of the system. | 26 // TODO(abarth): Remove these when we implement more of the system. |
| 25 [RaisesException] boolean matches(DOMString selectors); | 27 [RaisesException] boolean matches(DOMString selectors); |
| 26 void focus(); | 28 void focus(); |
| 27 void blur(); | 29 void blur(); |
| 28 attribute long tabIndex; | 30 attribute long tabIndex; |
| 29 readonly attribute DOMTokenList classList; | 31 readonly attribute DOMTokenList classList; |
| 30 [RaisesException] ShadowRoot ensureShadowRoot(); | 32 [RaisesException] ShadowRoot ensureShadowRoot(); |
| 31 | 33 |
| 32 ClientRect getBoundingClientRect(); | 34 ClientRect getBoundingClientRect(); |
| 33 readonly attribute long offsetLeft; | 35 readonly attribute long offsetLeft; |
| 34 readonly attribute long offsetTop; | 36 readonly attribute long offsetTop; |
| 35 readonly attribute long offsetWidth; | 37 readonly attribute long offsetWidth; |
| 36 readonly attribute long offsetHeight; | 38 readonly attribute long offsetHeight; |
| 37 readonly attribute Element offsetParent; | 39 readonly attribute Element offsetParent; |
| 38 readonly attribute long clientLeft; | 40 readonly attribute long clientLeft; |
| 39 readonly attribute long clientTop; | 41 readonly attribute long clientTop; |
| 40 readonly attribute long clientWidth; | 42 readonly attribute long clientWidth; |
| 41 readonly attribute long clientHeight; | 43 readonly attribute long clientHeight; |
| 44 |
| 45 attribute double x; |
| 46 attribute double y; |
| 47 attribute double width; |
| 48 attribute double height; |
| 42 }; | 49 }; |
| OLD | NEW |