Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 17 matching lines...) Expand all Loading... | |
| 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 | 37 |
| 38 // PointerEvent (http://www.w3.org/TR/pointerevents/#extensions-to-the-eleme nt-interface) | 38 // PointerEvent (https://www.w3.org/TR/pointerevents/#extensions-to-the-elem ent-interface) |
|
foolip
2016/12/02 09:55:28
Can you reformat this to have the link on its own
Mark Dittmer
2016/12/02 14:05:44
I'll do the reformat. It turns out that because I
| |
| 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 [RuntimeEnabled=PointerEvent] attribute EventHandler ongotpointercapture; | 41 [RuntimeEnabled=PointerEvent] attribute EventHandler ongotpointercapture; |
| 42 [RuntimeEnabled=PointerEvent] attribute EventHandler onlostpointercapture; | 42 [RuntimeEnabled=PointerEvent] attribute EventHandler onlostpointercapture; |
| 43 | 43 |
| 44 // PointerEvent v2 (https://w3c.github.io/pointerevents/#extensions-to-the-e lement-interface) | 44 // PointerEvent v2 (https://w3c.github.io/pointerevents/#extensions-to-the-e lement-interface) |
| 45 [RuntimeEnabled=PointerEvent] boolean hasPointerCapture (long pointerId); | 45 [RuntimeEnabled=PointerEvent] boolean hasPointerCapture (long pointerId); |
| 46 | 46 |
| 47 boolean hasAttributes(); | 47 boolean hasAttributes(); |
| 48 [SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute NamedNodeMap attributes; | 48 [SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute NamedNodeMap attributes; |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 72 [RaisesException, CEReactions, CustomElementCallbacks] Element? insertAdjace ntElement(DOMString where, Element element); | 72 [RaisesException, CEReactions, CustomElementCallbacks] Element? insertAdjace ntElement(DOMString where, Element element); |
| 73 [RaisesException] void insertAdjacentText(DOMString where, DOMString data); | 73 [RaisesException] void insertAdjacentText(DOMString where, DOMString data); |
| 74 | 74 |
| 75 // DOM Parsing and Serialization | 75 // DOM Parsing and Serialization |
| 76 // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-th e-element-interface | 76 // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#extensions-to-th e-element-interface |
| 77 [TreatNullAs=NullString, CEReactions, CustomElementCallbacks, RaisesExceptio n=Setter] attribute DOMString innerHTML; | 77 [TreatNullAs=NullString, CEReactions, CustomElementCallbacks, RaisesExceptio n=Setter] attribute DOMString innerHTML; |
| 78 [TreatNullAs=NullString, CEReactions, CustomElementCallbacks, RaisesExceptio n=Setter] attribute DOMString outerHTML; | 78 [TreatNullAs=NullString, CEReactions, CustomElementCallbacks, RaisesExceptio n=Setter] attribute DOMString outerHTML; |
| 79 [CEReactions, CustomElementCallbacks, RaisesException] void insertAdjacentHT ML(DOMString position, DOMString text); | 79 [CEReactions, CustomElementCallbacks, RaisesException] void insertAdjacentHT ML(DOMString position, DOMString text); |
| 80 | 80 |
| 81 // Shadow DOM | 81 // Shadow DOM |
| 82 // http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-element-int erface | 82 // https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-element-in terface |
| 83 [RaisesException, CallWith=ScriptState, MeasureAs=ElementCreateShadowRoot] S hadowRoot createShadowRoot(); | 83 [RaisesException, CallWith=ScriptState, MeasureAs=ElementCreateShadowRoot] S hadowRoot createShadowRoot(); |
| 84 [RaisesException, CallWith=ScriptState, MeasureAs=ElementAttachShadow] Shado wRoot attachShadow(ShadowRootInit shadowRootInitDict); | 84 [RaisesException, CallWith=ScriptState, MeasureAs=ElementAttachShadow] Shado wRoot attachShadow(ShadowRootInit shadowRootInitDict); |
| 85 NodeList getDestinationInsertionPoints(); | 85 NodeList getDestinationInsertionPoints(); |
| 86 [PerWorldBindings, ImplementedAs=openShadowRoot] readonly attribute ShadowRo ot? shadowRoot; | 86 [PerWorldBindings, ImplementedAs=openShadowRoot] readonly attribute ShadowRo ot? shadowRoot; |
| 87 [Unscopable, CEReactions, Reflect] attribute DOMString slot; | 87 [Unscopable, CEReactions, Reflect] attribute DOMString slot; |
| 88 [ImplementedAs=assignedSlotForBinding] readonly attribute HTMLSlotElement as signedSlot; | 88 [ImplementedAs=assignedSlotForBinding] readonly attribute HTMLSlotElement as signedSlot; |
| 89 | 89 |
| 90 // Pointer Lock | 90 // Pointer Lock |
| 91 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions -to-the-element-interface | 91 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions -to-the-element-interface |
| 92 [MeasureAs=ElementRequestPointerLock] void requestPointerLock(); | 92 [MeasureAs=ElementRequestPointerLock] void requestPointerLock(); |
| 93 | 93 |
| 94 // CSSOM View Module | 94 // CSSOM View Module |
| 95 // http://dev.w3.org/csswg/cssom-view/#extension-to-the-element-interface | 95 // https://dev.w3.org/csswg/cssom-view/#extension-to-the-element-interface |
| 96 // FIXME: getClientRect() and getBoundingClientRect() should | 96 // FIXME: getClientRect() and getBoundingClientRect() should |
| 97 // return DOMRectList and DOMRect respectively. | 97 // return DOMRectList and DOMRect respectively. |
| 98 ClientRectList getClientRects(); | 98 ClientRectList getClientRects(); |
| 99 ClientRect getBoundingClientRect(); | 99 ClientRect getBoundingClientRect(); |
| 100 // FIXME: scrollIntoView() should have a ScrollIntoViewOptions dictionary ar gument. | 100 // FIXME: scrollIntoView() should have a ScrollIntoViewOptions dictionary ar gument. |
| 101 void scrollIntoView(optional boolean alignWithTop); | 101 void scrollIntoView(optional boolean alignWithTop); |
| 102 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(optio nal ScrollToOptions options); | 102 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(optio nal ScrollToOptions options); |
| 103 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(unres tricted double x, unrestricted double y); | 103 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(unres tricted double x, unrestricted double y); |
| 104 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op tions); | 104 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op tions); |
| 105 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(unrestricted double x, unre stricted double y); | 105 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(unrestricted double x, unre stricted double y); |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 133 attribute EventHandler oncut; | 133 attribute EventHandler oncut; |
| 134 attribute EventHandler onpaste; | 134 attribute EventHandler onpaste; |
| 135 attribute EventHandler onsearch; | 135 attribute EventHandler onsearch; |
| 136 attribute EventHandler onselectstart; | 136 attribute EventHandler onselectstart; |
| 137 attribute EventHandler onwheel; | 137 attribute EventHandler onwheel; |
| 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; |
| OLD | NEW |