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

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

Issue 946813005: Port Sky widgets demo to Dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « no previous file | sky/examples/widgets/index.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 [ 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 // TODO(abarth): Move to Node. 19 // TODO(abarth): Move to Node.
20 readonly attribute CSSStyleDeclaration style; 20 readonly attribute CSSStyleDeclaration style;
21 21
22 // TODO(abarth): Remove these when we implement more of the system. 22 // TODO(abarth): Remove these when we implement more of the system.
23 [RaisesException] boolean matches(DOMString selectors); 23 [RaisesException] boolean matches(DOMString selectors);
24 void focus(); 24 void focus();
25 void blur(); 25 void blur();
26 attribute long tabIndex; 26 attribute long tabIndex;
27 readonly attribute DOMTokenList classList; 27 readonly attribute DOMTokenList classList;
28 [RaisesException] ShadowRoot ensureShadowRoot(); 28 [RaisesException] ShadowRoot ensureShadowRoot();
29 29
30 ClientRect getBoundingClientRect(); 30 ClientRect getBoundingClientRect();
31 readonly attribute long offsetLeft; 31 readonly attribute long offsetLeft;
32 readonly attribute long offsetTop; 32 readonly attribute long offsetTop;
33 readonly attribute long offsetWidth; 33 readonly attribute long offsetWidth;
34 readonly attribute long offsetHeight; 34 readonly attribute long offsetHeight;
35 readonly attribute Element offsetParent; 35 readonly attribute Element offsetParent;
36 readonly attribute long clientLeft; 36 readonly attribute long clientLeft;
37 readonly attribute long clientTop; 37 readonly attribute long clientTop;
38 readonly attribute long clientWidth; 38 readonly attribute long clientWidth;
39 readonly attribute long clientHeight; 39 readonly attribute long clientHeight;
40 }; 40 };
OLDNEW
« no previous file with comments | « no previous file | sky/examples/widgets/index.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698