tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

DragEvent.webidl (1585B)


      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 */
      9 
     10 [Exposed=Window]
     11 interface DragEvent : MouseEvent
     12 {
     13  constructor(DOMString type, optional DragEventInit eventInitDict = {});
     14 
     15  readonly attribute DataTransfer? dataTransfer;
     16 
     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);
     33 };
     34 
     35 dictionary DragEventInit : MouseEventInit
     36 {
     37  DataTransfer? dataTransfer = null;
     38 };