dom/interfaces/xul/nsIDOMXULCommandEvent.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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 };

mercurial