mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 07:45:30 +00:00
af57d2df0f
Other browsers do not support any of these (IIRC), telemetry reports essentially zero usage, and supporting them is contrary to the DOM spec. Notes on specific events: CommandEvent and SimpleGestureEvent: These are not supposed to be web-exposed APIs, so I hid the interfaces from web content too (necessary to avoid test_all_synthetic_events.html failures). DataContainerEvent: This was a non-standard substitute for CustomEvent that seemed to have only one user, so I removed it entirely and switched the user (MozillaFileLogger.js) to CustomEvent. ScrollAreaEvent: This is entirely non-standard, but we apparently expose it deliberately to web content, so I didn't see any reason to remove it from createEvent. SimpleGestureEvent and XULCommandEvent: Can still be created from createEvent(), but not by content. TimeEvent: This is still in because it has no constructor, so there's no other way to create it. Ideally we'd update the SMIL spec to add a constructor. I did remove TimeEvents. MozReview-Commit-ID: 7Yi2oCl9SM2 --HG-- extra : rebase_source : 199ab921acfc531b8b85e77f90fcd799b03c887b
48 lines
2.0 KiB
Plaintext
48 lines
2.0 KiB
Plaintext
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* For more information see nsIDOMSimpleGestureEvent.idl.
|
|
*/
|
|
|
|
[Func="IsChromeOrXBL"]
|
|
interface SimpleGestureEvent : MouseEvent
|
|
{
|
|
const unsigned long DIRECTION_UP = 1;
|
|
const unsigned long DIRECTION_DOWN = 2;
|
|
const unsigned long DIRECTION_LEFT = 4;
|
|
const unsigned long DIRECTION_RIGHT = 8;
|
|
|
|
const unsigned long ROTATION_COUNTERCLOCKWISE = 1;
|
|
const unsigned long ROTATION_CLOCKWISE = 2;
|
|
|
|
attribute unsigned long allowedDirections;
|
|
|
|
readonly attribute unsigned long direction;
|
|
|
|
readonly attribute double delta;
|
|
|
|
readonly attribute unsigned long clickCount;
|
|
|
|
void initSimpleGestureEvent(DOMString typeArg,
|
|
optional boolean canBubbleArg = false,
|
|
optional boolean cancelableArg = false,
|
|
optional Window? viewArg = null,
|
|
optional long detailArg = 0,
|
|
optional long screenXArg = 0,
|
|
optional long screenYArg = 0,
|
|
optional long clientXArg = 0,
|
|
optional long clientYArg = 0,
|
|
optional boolean ctrlKeyArg = false,
|
|
optional boolean altKeyArg = false,
|
|
optional boolean shiftKeyArg = false,
|
|
optional boolean metaKeyArg = false,
|
|
optional short buttonArg = 0,
|
|
optional EventTarget? relatedTargetArg = null,
|
|
optional unsigned long allowedDirectionsArg = 0,
|
|
optional unsigned long directionArg = 0,
|
|
optional double deltaArg = 0,
|
|
optional unsigned long clickCount = 0);
|
|
};
|