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