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

Side by Side Diff: Source/core/dom/Element.idl

Issue 998673002: Add [NewObject] and [SameObject] to various interfaces (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.idl ('k') | Source/core/dom/MutationRecord.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 13 matching lines...) Expand all
24 TypeChecking=Interface, 24 TypeChecking=Interface,
25 ] interface Element : Node { 25 ] interface Element : Node {
26 readonly attribute DOMString? namespaceURI; 26 readonly attribute DOMString? namespaceURI;
27 readonly attribute DOMString? prefix; 27 readonly attribute DOMString? prefix;
28 // FIXME: localName/tagName should not be nullable. 28 // FIXME: localName/tagName should not be nullable.
29 readonly attribute DOMString? localName; 29 readonly attribute DOMString? localName;
30 readonly attribute DOMString? tagName; 30 readonly attribute DOMString? tagName;
31 31
32 [Reflect, ExposeJSAccessors] attribute DOMString id; 32 [Reflect, ExposeJSAccessors] attribute DOMString id;
33 [Reflect=class] attribute DOMString className; 33 [Reflect=class] attribute DOMString className;
34 [PerWorldBindings] readonly attribute DOMTokenList classList; 34 [SameObject, PerWorldBindings] readonly attribute DOMTokenList classList;
35 35
36 [MeasureAs=HasAttributes] boolean hasAttributes(); 36 [MeasureAs=HasAttributes] boolean hasAttributes();
37 [PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute N amedNodeMap attributes; 37 [SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute NamedNodeMap attributes;
38 DOMString? getAttribute(DOMString name); 38 DOMString? getAttribute(DOMString name);
39 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName); 39 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName);
40 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name, DOMString value); 40 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name, DOMString value);
41 [RaisesException, CustomElementCallbacks] void setAttributeNS(DOMString? nam espaceURI, DOMString name, DOMString value); 41 [RaisesException, CustomElementCallbacks] void setAttributeNS(DOMString? nam espaceURI, DOMString name, DOMString value);
42 [CustomElementCallbacks] void removeAttribute(DOMString name); 42 [CustomElementCallbacks] void removeAttribute(DOMString name);
43 [CustomElementCallbacks] void removeAttributeNS(DOMString? namespaceURI, DOM String localName); 43 [CustomElementCallbacks] void removeAttributeNS(DOMString? namespaceURI, DOM String localName);
44 boolean hasAttribute(DOMString name); 44 boolean hasAttribute(DOMString name);
45 boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName); 45 boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName);
46 46
47 [MeasureAs=ElementGetAttributeNode] Attr? getAttributeNode(DOMString name); 47 [MeasureAs=ElementGetAttributeNode] Attr? getAttributeNode(DOMString name);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 [ImplementedAs=offsetParentForBindings, PerWorldBindings] readonly attribute Element? offsetParent; 100 [ImplementedAs=offsetParentForBindings, PerWorldBindings] readonly attribute Element? offsetParent;
101 readonly attribute long offsetTop; 101 readonly attribute long offsetTop;
102 readonly attribute long offsetLeft; 102 readonly attribute long offsetLeft;
103 readonly attribute long offsetWidth; 103 readonly attribute long offsetWidth;
104 readonly attribute long offsetHeight; 104 readonly attribute long offsetHeight;
105 105
106 // CSS Object Model (CSSOM) 106 // CSS Object Model (CSSOM)
107 // http://dev.w3.org/csswg/cssom/#the-elementcssinlinestyle-interface 107 // http://dev.w3.org/csswg/cssom/#the-elementcssinlinestyle-interface
108 // FIXME: style should be on HTMLElement and SVGElement. 108 // FIXME: style should be on HTMLElement and SVGElement.
109 // FIXME: style should have [PutForwards=cssText]. 109 // FIXME: style should have [PutForwards=cssText].
110 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; 110 [SameObject, PerWorldBindings] readonly attribute CSSStyleDeclaration style;
111 111
112 // HTML 112 // HTML
113 // https://html.spec.whatwg.org/#htmlelement 113 // https://html.spec.whatwg.org/#htmlelement
114 // FIXME: dataset, focus() and blur() should be on HTMLElement. 114 // FIXME: dataset, focus() and blur() should be on HTMLElement.
115 [PerWorldBindings] readonly attribute DOMStringMap dataset; 115 [SameObject, PerWorldBindings] readonly attribute DOMStringMap dataset;
116 void focus(); 116 void focus();
117 void blur(); 117 void blur();
118 118
119 // Non-standard APIs 119 // Non-standard APIs
120 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962 120 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962
121 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement(DOMString where, Element element); 121 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement(DOMString where, Element element);
122 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS tring where, DOMString text); 122 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS tring where, DOMString text);
123 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded); 123 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded);
124 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors); 124 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors);
125 125
(...skipping 16 matching lines...) Expand all
142 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; 142 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel;
143 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; 143 [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
144 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; 144 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
145 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; 145 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
146 attribute EventHandler onwheel; 146 attribute EventHandler onwheel;
147 }; 147 };
148 148
149 Element implements ParentNode; 149 Element implements ParentNode;
150 Element implements ChildNode; 150 Element implements ChildNode;
151 Element implements NonDocumentTypeChildNode; 151 Element implements NonDocumentTypeChildNode;
OLDNEW
« no previous file with comments | « Source/core/dom/Document.idl ('k') | Source/core/dom/MutationRecord.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698