Bug 1861467 - [wpt-sync] Update web-platform-tests to eedf737ce39c512d0ca3471f988972e...
[gecko.git] / dom / webidl / DragEvent.webidl
blob4a54f4e55e2b8ceac372a9c901475898c1bb3664
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5  *
6  * The origin of this IDL file is
7  * https://html.spec.whatwg.org/multipage/#dragevent
8  */
10 [Exposed=Window]
11 interface DragEvent : MouseEvent
13   constructor(DOMString type, optional DragEventInit eventInitDict = {});
15   readonly attribute DataTransfer? dataTransfer;
17   undefined initDragEvent(DOMString type,
18                           optional boolean canBubble = false,
19                           optional boolean cancelable = false,
20                           optional Window? aView = null,
21                           optional long aDetail = 0,
22                           optional long aScreenX = 0,
23                           optional long aScreenY = 0,
24                           optional long aClientX = 0,
25                           optional long aClientY = 0,
26                           optional boolean aCtrlKey = false,
27                           optional boolean aAltKey = false,
28                           optional boolean aShiftKey = false,
29                           optional boolean aMetaKey = false,
30                           optional unsigned short aButton = 0,
31                           optional EventTarget? aRelatedTarget = null,
32                           optional DataTransfer? aDataTransfer = null);
35 dictionary DragEventInit : MouseEventInit
37   DataTransfer? dataTransfer = null;