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

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

Issue 2562343002: Made Text#assignedSlot and Element#assignedSlot nullable. (Closed)
Patch Set: Created 4 years 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 16 matching lines...) Expand all
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 [CEReactions, Reflect] attribute DOMString id; 34 [CEReactions, Reflect] attribute DOMString id;
35 [CEReactions, Reflect=class] attribute DOMString className; 35 [CEReactions, Reflect=class] attribute DOMString className;
36 [SameObject, CEReactions, PerWorldBindings, PutForwards=value] readonly attr ibute DOMTokenList classList; 36 [SameObject, CEReactions, PerWorldBindings, PutForwards=value] readonly attr ibute DOMTokenList classList;
37 [Unscopable, CEReactions, Reflect] attribute DOMString slot;
37 38
38 // PointerEvent 39 // PointerEvent
39 //https://www.w3.org/TR/pointerevents/#extensions-to-the-element-interface 40 //https://www.w3.org/TR/pointerevents/#extensions-to-the-element-interface
40 [RuntimeEnabled=PointerEvent, RaisesException] void setPointerCapture (long pointerId); 41 [RuntimeEnabled=PointerEvent, RaisesException] void setPointerCapture (long pointerId);
41 [RuntimeEnabled=PointerEvent, RaisesException] void releasePointerCapture (l ong pointerId); 42 [RuntimeEnabled=PointerEvent, RaisesException] void releasePointerCapture (l ong pointerId);
42 [RuntimeEnabled=PointerEvent] attribute EventHandler ongotpointercapture; 43 [RuntimeEnabled=PointerEvent] attribute EventHandler ongotpointercapture;
43 [RuntimeEnabled=PointerEvent] attribute EventHandler onlostpointercapture; 44 [RuntimeEnabled=PointerEvent] attribute EventHandler onlostpointercapture;
44 45
45 // PointerEvent v2 46 // PointerEvent v2
46 // https://w3c.github.io/pointerevents/#extensions-to-the-element-interface 47 // https://w3c.github.io/pointerevents/#extensions-to-the-element-interface
(...skipping 13 matching lines...) Expand all
60 Attr? getAttributeNode(DOMString name); 61 Attr? getAttributeNode(DOMString name);
61 Attr? getAttributeNodeNS(DOMString? namespaceURI, DOMString localName); 62 Attr? getAttributeNodeNS(DOMString? namespaceURI, DOMString localName);
62 [RaisesException, CEReactions, CustomElementCallbacks] Attr? setAttributeNod e(Attr attr); 63 [RaisesException, CEReactions, CustomElementCallbacks] Attr? setAttributeNod e(Attr attr);
63 [RaisesException, CEReactions, CustomElementCallbacks] Attr? setAttributeNod eNS(Attr attr); 64 [RaisesException, CEReactions, CustomElementCallbacks] Attr? setAttributeNod eNS(Attr attr);
64 [RaisesException, CEReactions, CustomElementCallbacks] Attr removeAttributeN ode(Attr attr); 65 [RaisesException, CEReactions, CustomElementCallbacks] Attr removeAttributeN ode(Attr attr);
65 66
66 [RaisesException] Element? closest(DOMString selectors); 67 [RaisesException] Element? closest(DOMString selectors);
67 [RaisesException] boolean matches(DOMString selectors); 68 [RaisesException] boolean matches(DOMString selectors);
68 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors); // historical alias o f .matches 69 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors); // historical alias o f .matches
69 70
71 [RaisesException, CallWith=ScriptState, MeasureAs=ElementAttachShadow] Shado wRoot attachShadow(ShadowRootInit shadowRootInitDict);
72 [PerWorldBindings, ImplementedAs=openShadowRoot] readonly attribute ShadowRo ot? shadowRoot;
73
70 HTMLCollection getElementsByTagName(DOMString localName); 74 HTMLCollection getElementsByTagName(DOMString localName);
71 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc alName); 75 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc alName);
72 HTMLCollection getElementsByClassName(DOMString classNames); 76 HTMLCollection getElementsByClassName(DOMString classNames);
73 77
74 [RaisesException, CEReactions, CustomElementCallbacks] Element? insertAdjace ntElement(DOMString where, Element element); 78 [RaisesException, CEReactions, CustomElementCallbacks] Element? insertAdjace ntElement(DOMString where, Element element);
75 [RaisesException] void insertAdjacentText(DOMString where, DOMString data); 79 [RaisesException] void insertAdjacentText(DOMString where, DOMString data);
76 80
81 // Mixin Slotable
82 // https://dom.spec.whatwg.org/#mixin-slotable
83 [ImplementedAs=assignedSlotForBinding] readonly attribute HTMLSlotElement? a ssignedSlot;
84
77 // DOM Parsing and Serialization 85 // DOM Parsing and Serialization
78 // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-th e-element-interface 86 // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-th e-element-interface
79 [TreatNullAs=NullString, CEReactions, CustomElementCallbacks, RaisesExceptio n=Setter] attribute DOMString innerHTML; 87 [TreatNullAs=NullString, CEReactions, CustomElementCallbacks, RaisesExceptio n=Setter] attribute DOMString innerHTML;
80 [TreatNullAs=NullString, CEReactions, CustomElementCallbacks, RaisesExceptio n=Setter] attribute DOMString outerHTML; 88 [TreatNullAs=NullString, CEReactions, CustomElementCallbacks, RaisesExceptio n=Setter] attribute DOMString outerHTML;
81 [CEReactions, CustomElementCallbacks, RaisesException] void insertAdjacentHT ML(DOMString position, DOMString text); 89 [CEReactions, CustomElementCallbacks, RaisesException] void insertAdjacentHT ML(DOMString position, DOMString text);
82 90
83 // Shadow DOM 91 // Shadow DOM
84 // https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-element-in terface 92 // https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-element-in terface
85 [RaisesException, CallWith=ScriptState, MeasureAs=ElementCreateShadowRoot] S hadowRoot createShadowRoot(); 93 [RaisesException, CallWith=ScriptState, MeasureAs=ElementCreateShadowRoot] S hadowRoot createShadowRoot();
86 [RaisesException, CallWith=ScriptState, MeasureAs=ElementAttachShadow] Shado wRoot attachShadow(ShadowRootInit shadowRootInitDict);
87 NodeList getDestinationInsertionPoints(); 94 NodeList getDestinationInsertionPoints();
88 [PerWorldBindings, ImplementedAs=openShadowRoot] readonly attribute ShadowRo ot? shadowRoot; 95
89 [Unscopable, CEReactions, Reflect] attribute DOMString slot;
90 [ImplementedAs=assignedSlotForBinding] readonly attribute HTMLSlotElement as signedSlot;
91 96
92 // Pointer Lock 97 // Pointer Lock
93 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions -to-the-element-interface 98 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions -to-the-element-interface
94 [MeasureAs=ElementRequestPointerLock] void requestPointerLock(); 99 [MeasureAs=ElementRequestPointerLock] void requestPointerLock();
95 100
96 // CSSOM View Module 101 // CSSOM View Module
97 // https://dev.w3.org/csswg/cssom-view/#extension-to-the-element-interface 102 // https://dev.w3.org/csswg/cssom-view/#extension-to-the-element-interface
98 // FIXME: getClientRect() and getBoundingClientRect() should 103 // FIXME: getClientRect() and getBoundingClientRect() should
99 // return DOMRectList and DOMRect respectively. 104 // return DOMRectList and DOMRect respectively.
100 ClientRectList getClientRects(); 105 ClientRectList getClientRects();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 attribute EventHandler oncut; 140 attribute EventHandler oncut;
136 attribute EventHandler onpaste; 141 attribute EventHandler onpaste;
137 attribute EventHandler onsearch; 142 attribute EventHandler onsearch;
138 attribute EventHandler onselectstart; 143 attribute EventHandler onselectstart;
139 attribute EventHandler onwheel; 144 attribute EventHandler onwheel;
140 }; 145 };
141 146
142 Element implements ParentNode; 147 Element implements ParentNode;
143 Element implements ChildNode; 148 Element implements ChildNode;
144 Element implements NonDocumentTypeChildNode; 149 Element implements NonDocumentTypeChildNode;
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Text.idl » ('j') | third_party/WebKit/Source/core/dom/Text.idl » ('J')

Powered by Google App Engine
This is Rietveld 408576698