dom/interfaces/events/nsIDOMEventListener.idl

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     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
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #include "domstubs.idl"
     8 /**
     9  * The nsIDOMEventListener interface is a callback interface for
    10  * listening to events in the Document Object Model.
    11  *
    12  * For more information on this interface please see 
    13  * http://www.w3.org/TR/DOM-Level-2-Events/
    14  */
    16 [scriptable, function, uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4)]
    17 interface nsIDOMEventListener : nsISupports
    18 {
    19   /**
    20    * This method is called whenever an event occurs of the type for which 
    21    * the EventListener interface was registered.
    22    *
    23    * @param   evt The Event contains contextual information about the 
    24    *              event. It also contains the stopPropagation and 
    25    *              preventDefault methods which are used in determining the 
    26    *              event's flow and default action.
    27    */
    28   void                      handleEvent(in nsIDOMEvent event);
    29 };

mercurial