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

Side by Side Diff: sky/engine/core/dom/Element.idl

Issue 943013002: Implement Custom Elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: attributeChanged***d***Callback Created 5 years, 10 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
OLDNEW
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 interface Element : ParentNode { 5 [
6 Constructor(DOMString tagName),
7 ConstructorCallWith=Document,
8 ] interface Element : ParentNode {
6 readonly attribute DOMString tagName; 9 readonly attribute DOMString tagName;
7 10
8 boolean hasAttribute(DOMString name); 11 boolean hasAttribute(DOMString name);
9 [TreatReturnedNullStringAs=Null] DOMString getAttribute(DOMString name); 12 [TreatReturnedNullStringAs=Null] DOMString getAttribute(DOMString name);
10 [RaisesException] void setAttribute(DOMString name, optional DOMString value); 13 [CustomElementCallbacks, RaisesException] void setAttribute(DOMString name, op tional DOMString value);
11 void removeAttribute(DOMString name); 14 [CustomElementCallbacks] void removeAttribute(DOMString name);
12 15
13 sequence<Attr> getAttributes(); 16 sequence<Attr> getAttributes();
14 17
15 readonly attribute ShadowRoot shadowRoot; 18 readonly attribute ShadowRoot shadowRoot;
16 19
17 // TODO(abarth): Move to Node. 20 // TODO(abarth): Move to Node.
18 readonly attribute CSSStyleDeclaration style; 21 readonly attribute CSSStyleDeclaration style;
19 22
20 // TODO(abarth): Remove these when we implement more of the system. 23 // TODO(abarth): Remove these when we implement more of the system.
21 [RaisesException] boolean matches(DOMString selectors); 24 [RaisesException] boolean matches(DOMString selectors);
22 void focus(); 25 void focus();
23 void blur(); 26 void blur();
24 attribute long tabIndex; 27 attribute long tabIndex;
25 readonly attribute DOMTokenList classList; 28 readonly attribute DOMTokenList classList;
26 [RaisesException] ShadowRoot ensureShadowRoot(); 29 [RaisesException] ShadowRoot ensureShadowRoot();
27 30
28 ClientRect getBoundingClientRect(); 31 ClientRect getBoundingClientRect();
29 readonly attribute long offsetLeft; 32 readonly attribute long offsetLeft;
30 readonly attribute long offsetTop; 33 readonly attribute long offsetTop;
31 readonly attribute long offsetWidth; 34 readonly attribute long offsetWidth;
32 readonly attribute long offsetHeight; 35 readonly attribute long offsetHeight;
33 readonly attribute Element offsetParent; 36 readonly attribute Element offsetParent;
34 readonly attribute long clientLeft; 37 readonly attribute long clientLeft;
35 readonly attribute long clientTop; 38 readonly attribute long clientTop;
36 readonly attribute long clientWidth; 39 readonly attribute long clientWidth;
37 readonly attribute long clientHeight; 40 readonly attribute long clientHeight;
38 }; 41 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698