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

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

Issue 2043503002: Add [CEReactions] IDL attributes for Custom Elements V1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: yukishiino review Created 4 years, 6 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 /* 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 enum NativeScrollBehavior { "disable-native-scroll", "perform-before-native-scro ll", "perform-after-native-scroll" }; 24 enum NativeScrollBehavior { "disable-native-scroll", "perform-before-native-scro ll", "perform-after-native-scroll" };
25 25
26 // https://dom.spec.whatwg.org/#interface-element 26 // https://dom.spec.whatwg.org/#interface-element
27 27
28 interface Element : Node { 28 interface Element : Node {
29 readonly attribute DOMString? namespaceURI; 29 readonly attribute DOMString? namespaceURI;
30 readonly attribute DOMString? prefix; 30 readonly attribute DOMString? prefix;
31 readonly attribute DOMString localName; 31 readonly attribute DOMString localName;
32 readonly attribute DOMString tagName; 32 readonly attribute DOMString tagName;
33 33
34 [Reflect] attribute DOMString id; 34 [CEReactions, Reflect] attribute DOMString id;
35 [Reflect=class] attribute DOMString className; 35 [CEReactions, Reflect=class] attribute DOMString className;
36 [SameObject, PerWorldBindings, PutForwards=value] readonly attribute DOMToke nList classList; 36 [SameObject, CEReactions, PerWorldBindings, PutForwards=value] readonly attr ibute DOMTokenList classList;
37 37
38 // PointerEvent (http://www.w3.org/TR/pointerevents/#extensions-to-the-eleme nt-interface) 38 // PointerEvent (http://www.w3.org/TR/pointerevents/#extensions-to-the-eleme nt-interface)
39 [RuntimeEnabled=PointerEvent, RaisesException] void setPointerCapture (long pointerId); 39 [RuntimeEnabled=PointerEvent, RaisesException] void setPointerCapture (long pointerId);
40 [RuntimeEnabled=PointerEvent, RaisesException] void releasePointerCapture (l ong pointerId); 40 [RuntimeEnabled=PointerEvent, RaisesException] void releasePointerCapture (l ong pointerId);
41 41
42 boolean hasAttributes(); 42 boolean hasAttributes();
43 [SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute NamedNodeMap attributes; 43 [SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute NamedNodeMap attributes;
44 DOMString? getAttribute(DOMString name); 44 DOMString? getAttribute(DOMString name);
45 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName); 45 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName);
46 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name, DOMString value); 46 [RaisesException, CEReactions, CustomElementCallbacks] void setAttribute(DOM String name, DOMString value);
47 [RaisesException, CustomElementCallbacks] void setAttributeNS(DOMString? nam espaceURI, DOMString name, DOMString value); 47 [RaisesException, CEReactions, CustomElementCallbacks] void setAttributeNS(D OMString? namespaceURI, DOMString name, DOMString value);
48 [CustomElementCallbacks] void removeAttribute(DOMString name); 48 [CEReactions, CustomElementCallbacks] void removeAttribute(DOMString name);
49 [CustomElementCallbacks] void removeAttributeNS(DOMString? namespaceURI, DOM String localName); 49 [CEReactions, CustomElementCallbacks] void removeAttributeNS(DOMString? name spaceURI, DOMString localName);
50 boolean hasAttribute(DOMString name); 50 boolean hasAttribute(DOMString name);
51 boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName); 51 boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName);
52 52
53 Attr? getAttributeNode(DOMString name); 53 Attr? getAttributeNode(DOMString name);
54 Attr? getAttributeNodeNS(DOMString? namespaceURI, DOMString localName); 54 Attr? getAttributeNodeNS(DOMString? namespaceURI, DOMString localName);
55 [RaisesException, CustomElementCallbacks] Attr? setAttributeNode(Attr attr); 55 [RaisesException, CEReactions, CustomElementCallbacks] Attr? setAttributeNod e(Attr attr);
56 [RaisesException, CustomElementCallbacks] Attr? setAttributeNodeNS(Attr attr ); 56 [RaisesException, CEReactions, CustomElementCallbacks] Attr? setAttributeNod eNS(Attr attr);
57 [RaisesException, CustomElementCallbacks] Attr removeAttributeNode(Attr attr ); 57 [RaisesException, CEReactions, CustomElementCallbacks] Attr removeAttributeN ode(Attr attr);
58 58
59 [RaisesException] Element? closest(DOMString selectors); 59 [RaisesException] Element? closest(DOMString selectors);
60 [RaisesException] boolean matches(DOMString selectors); 60 [RaisesException] boolean matches(DOMString selectors);
61 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors); // historical alias o f .matches 61 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors); // historical alias o f .matches
62 62
63 HTMLCollection getElementsByTagName(DOMString localName); 63 HTMLCollection getElementsByTagName(DOMString localName);
64 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc alName); 64 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc alName);
65 HTMLCollection getElementsByClassName(DOMString classNames); 65 HTMLCollection getElementsByClassName(DOMString classNames);
66 66
67 [RaisesException, CustomElementCallbacks] Element? insertAdjacentElement(DOM String where, Element element); 67 [RaisesException, CEReactions, CustomElementCallbacks] Element? insertAdjace ntElement(DOMString where, Element element);
68 [RaisesException] void insertAdjacentText(DOMString where, DOMString data); 68 [RaisesException] void insertAdjacentText(DOMString where, DOMString data);
69 69
70 // DOM Parsing and Serialization 70 // DOM Parsing and Serialization
71 // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-th e-element-interface 71 // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-th e-element-interface
72 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att ribute DOMString innerHTML; 72 [TreatNullAs=NullString, CEReactions, CustomElementCallbacks, RaisesExceptio n=Setter] attribute DOMString innerHTML;
73 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att ribute DOMString outerHTML; 73 [TreatNullAs=NullString, CEReactions, CustomElementCallbacks, RaisesExceptio n=Setter] attribute DOMString outerHTML;
74 [CustomElementCallbacks, RaisesException] void insertAdjacentHTML(DOMString position, DOMString text); 74 [CEReactions, CustomElementCallbacks, RaisesException] void insertAdjacentHT ML(DOMString position, DOMString text);
75 75
76 // Shadow DOM 76 // Shadow DOM
77 // http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-element-int erface 77 // http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-element-int erface
78 [RaisesException, CallWith=ScriptState, MeasureAs=ElementCreateShadowRoot] S hadowRoot createShadowRoot(); 78 [RaisesException, CallWith=ScriptState, MeasureAs=ElementCreateShadowRoot] S hadowRoot createShadowRoot();
79 [RuntimeEnabled=ShadowDOMV1, RaisesException, CallWith=ScriptState, MeasureA s=ElementAttachShadow] ShadowRoot attachShadow(ShadowRootInit shadowRootInitDict ); 79 [RuntimeEnabled=ShadowDOMV1, RaisesException, CallWith=ScriptState, MeasureA s=ElementAttachShadow] ShadowRoot attachShadow(ShadowRootInit shadowRootInitDict );
80 NodeList getDestinationInsertionPoints(); 80 NodeList getDestinationInsertionPoints();
81 [PerWorldBindings, ImplementedAs=openShadowRoot] readonly attribute ShadowRo ot? shadowRoot; 81 [PerWorldBindings, ImplementedAs=openShadowRoot] readonly attribute ShadowRo ot? shadowRoot;
82 [RuntimeEnabled=ShadowDOMV1, Reflect] attribute DOMString slot; 82 [RuntimeEnabled=ShadowDOMV1, CEReactions, Reflect] attribute DOMString slot;
83 [RuntimeEnabled=ShadowDOMV1, ImplementedAs=assignedSlotForBinding] readonly attribute HTMLSlotElement assignedSlot; 83 [RuntimeEnabled=ShadowDOMV1, ImplementedAs=assignedSlotForBinding] readonly attribute HTMLSlotElement assignedSlot;
84 84
85 // Pointer Lock 85 // Pointer Lock
86 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions -to-the-element-interface 86 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions -to-the-element-interface
87 [MeasureAs=ElementRequestPointerLock] void requestPointerLock(); 87 [MeasureAs=ElementRequestPointerLock] void requestPointerLock();
88 88
89 // CSSOM View Module 89 // CSSOM View Module
90 // http://dev.w3.org/csswg/cssom-view/#extension-to-the-element-interface 90 // http://dev.w3.org/csswg/cssom-view/#extension-to-the-element-interface
91 // FIXME: getClientRect() and getBoundingClientRect() should 91 // FIXME: getClientRect() and getBoundingClientRect() should
92 // return DOMRectList and DOMRect respectively. 92 // return DOMRectList and DOMRect respectively.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 // Pointerevent attributes (http://www.w3.org/TR/pointerevents/#extensions-t o-the-element-interface) 134 // Pointerevent attributes (http://www.w3.org/TR/pointerevents/#extensions-t o-the-element-interface)
135 [RuntimeEnabled=PointerEvent] attribute EventHandler ongotpointercapture; 135 [RuntimeEnabled=PointerEvent] attribute EventHandler ongotpointercapture;
136 [RuntimeEnabled=PointerEvent] attribute EventHandler onlostpointercapture; 136 [RuntimeEnabled=PointerEvent] attribute EventHandler onlostpointercapture;
137 137
138 }; 138 };
139 139
140 Element implements ParentNode; 140 Element implements ParentNode;
141 Element implements ChildNode; 141 Element implements ChildNode;
142 Element implements NonDocumentTypeChildNode; 142 Element implements NonDocumentTypeChildNode;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.idl ('k') | third_party/WebKit/Source/core/dom/NamedNodeMap.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698