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

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

Issue 2220043002: Added PointerEvent.hasPointerCapture API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a missing element interface. Created 4 years, 4 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 20 matching lines...) Expand all
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 (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 [RuntimeEnabled=PointerEvent] attribute EventHandler ongotpointercapture;
42 [RuntimeEnabled=PointerEvent] attribute EventHandler onlostpointercapture;
43
44 // PointerEvent v2 (https://w3c.github.io/pointerevents/#extensions-to-the-e lement-interface)
45 [RuntimeEnabled=PointerEvent] boolean hasPointerCapture (long pointerId);
41 46
42 boolean hasAttributes(); 47 boolean hasAttributes();
43 [SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute NamedNodeMap attributes; 48 [SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute NamedNodeMap attributes;
44 DOMString? getAttribute(DOMString name); 49 DOMString? getAttribute(DOMString name);
45 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName); 50 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName);
46 [RaisesException, CEReactions, CustomElementCallbacks] void setAttribute(DOM String name, DOMString value); 51 [RaisesException, CEReactions, CustomElementCallbacks] void setAttribute(DOM String name, DOMString value);
47 [RaisesException, CEReactions, CustomElementCallbacks] void setAttributeNS(D OMString? namespaceURI, DOMString name, DOMString value); 52 [RaisesException, CEReactions, CustomElementCallbacks] void setAttributeNS(D OMString? namespaceURI, DOMString name, DOMString value);
48 [CEReactions, CustomElementCallbacks] void removeAttribute(DOMString name); 53 [CEReactions, CustomElementCallbacks] void removeAttribute(DOMString name);
49 [CEReactions, CustomElementCallbacks] void removeAttributeNS(DOMString? name spaceURI, DOMString localName); 54 [CEReactions, CustomElementCallbacks] void removeAttributeNS(DOMString? name spaceURI, DOMString localName);
50 boolean hasAttribute(DOMString name); 55 boolean hasAttribute(DOMString name);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // Event handler attributes 128 // Event handler attributes
124 attribute EventHandler onbeforecopy; 129 attribute EventHandler onbeforecopy;
125 attribute EventHandler onbeforecut; 130 attribute EventHandler onbeforecut;
126 attribute EventHandler onbeforepaste; 131 attribute EventHandler onbeforepaste;
127 attribute EventHandler oncopy; 132 attribute EventHandler oncopy;
128 attribute EventHandler oncut; 133 attribute EventHandler oncut;
129 attribute EventHandler onpaste; 134 attribute EventHandler onpaste;
130 attribute EventHandler onsearch; 135 attribute EventHandler onsearch;
131 attribute EventHandler onselectstart; 136 attribute EventHandler onselectstart;
132 attribute EventHandler onwheel; 137 attribute EventHandler onwheel;
133
134 // Pointerevent attributes (http://www.w3.org/TR/pointerevents/#extensions-t o-the-element-interface)
135 [RuntimeEnabled=PointerEvent] attribute EventHandler ongotpointercapture;
136 [RuntimeEnabled=PointerEvent] attribute EventHandler onlostpointercapture;
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/Element.cpp ('k') | third_party/WebKit/Source/core/input/EventHandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698