Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* vim:set ts=2 sw=2 sts=2 et cindent: */ |
michael@0 | 3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | /** |
michael@0 | 8 | * This interface is supported by command events, which are dispatched to |
michael@0 | 9 | * XUL elements as a result of mouse or keyboard activation. |
michael@0 | 10 | */ |
michael@0 | 11 | |
michael@0 | 12 | #include "nsIDOMUIEvent.idl" |
michael@0 | 13 | |
michael@0 | 14 | [scriptable, builtinclass, uuid(2d5b6e19-74bb-40af-9aac-59a1e53e3fcc)] |
michael@0 | 15 | interface nsIDOMXULCommandEvent : nsIDOMUIEvent |
michael@0 | 16 | { |
michael@0 | 17 | /** |
michael@0 | 18 | * Command events support the same set of modifier keys as mouse and key |
michael@0 | 19 | * events. |
michael@0 | 20 | */ |
michael@0 | 21 | readonly attribute boolean ctrlKey; |
michael@0 | 22 | readonly attribute boolean shiftKey; |
michael@0 | 23 | readonly attribute boolean altKey; |
michael@0 | 24 | readonly attribute boolean metaKey; |
michael@0 | 25 | |
michael@0 | 26 | /** |
michael@0 | 27 | * If the command event was redispatched because of a command= attribute |
michael@0 | 28 | * on the original target, sourceEvent will be set to the original DOM Event. |
michael@0 | 29 | * Otherwise, sourceEvent is null. |
michael@0 | 30 | */ |
michael@0 | 31 | readonly attribute nsIDOMEvent sourceEvent; |
michael@0 | 32 | |
michael@0 | 33 | /** |
michael@0 | 34 | * Creates a new command event with the given attributes. |
michael@0 | 35 | */ |
michael@0 | 36 | void initCommandEvent(in DOMString typeArg, |
michael@0 | 37 | in boolean canBubbleArg, |
michael@0 | 38 | in boolean cancelableArg, |
michael@0 | 39 | in nsIDOMWindow viewArg, |
michael@0 | 40 | in long detailArg, |
michael@0 | 41 | in boolean ctrlKeyArg, |
michael@0 | 42 | in boolean altKeyArg, |
michael@0 | 43 | in boolean shiftKeyArg, |
michael@0 | 44 | in boolean metaKeyArg, |
michael@0 | 45 | in nsIDOMEvent sourceEvent); |
michael@0 | 46 | }; |