Bug 1634779 - pt 2. Partially revert Bug 1603006 r=kmag
[gecko.git] / dom / webidl / MouseScrollEvent.webidl
bloba70498ddbabb773e49b1c0948fedc14a7b7bd762
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 file,
4  * You can obtain one at http://mozilla.org/MPL/2.0/.
5  */
7 [Exposed=Window]
8 interface MouseScrollEvent : MouseEvent
10   const long HORIZONTAL_AXIS = 1;
11   const long VERTICAL_AXIS = 2;
13   readonly attribute long axis;
15   void initMouseScrollEvent(DOMString type,
16                             optional boolean canBubble = false,
17                             optional boolean cancelable = false,
18                             optional Window? view = null,
19                             optional long detail = 0,
20                             optional long screenX = 0,
21                             optional long screenY = 0,
22                             optional long clientX = 0,
23                             optional long clientY = 0,
24                             optional boolean ctrlKey = false,
25                             optional boolean altKey = false,
26                             optional boolean shiftKey = false,
27                             optional boolean metaKey = false,
28                             optional short button = 0,
29                             optional EventTarget? relatedTarget = null,
30                             optional long axis = 0);