michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "domstubs.idl" michael@0: michael@0: /** michael@0: * The nsIDOMEventListener interface is a callback interface for michael@0: * listening to events in the Document Object Model. michael@0: * michael@0: * For more information on this interface please see michael@0: * http://www.w3.org/TR/DOM-Level-2-Events/ michael@0: */ michael@0: michael@0: [scriptable, function, uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4)] michael@0: interface nsIDOMEventListener : nsISupports michael@0: { michael@0: /** michael@0: * This method is called whenever an event occurs of the type for which michael@0: * the EventListener interface was registered. michael@0: * michael@0: * @param evt The Event contains contextual information about the michael@0: * event. It also contains the stopPropagation and michael@0: * preventDefault methods which are used in determining the michael@0: * event's flow and default action. michael@0: */ michael@0: void handleEvent(in nsIDOMEvent event); michael@0: };