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/.
6 * The origin of this IDL file is
7 * https://html.spec.whatwg.org/multipage/#dragevent
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;