|
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/. */ |
|
5 |
|
6 #include "domstubs.idl" |
|
7 |
|
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 */ |
|
15 |
|
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 }; |