Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: gecko-sdk/include/nsIDOMEventListener.h

Issue 20346: Version 1.8 of gecko-sdk. Downloaded from here:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gecko-sdk/include/nsIDOMEventGroup.h ('k') | gecko-sdk/include/nsIDOMEventTarget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0 -Release/WINNT_5.2_Depend/mozilla/dom/public/idl/events/nsIDOMEventListener.idl
3 */
4
5 #ifndef __gen_nsIDOMEventListener_h__
6 #define __gen_nsIDOMEventListener_h__
7
8
9 #ifndef __gen_domstubs_h__
10 #include "domstubs.h"
11 #endif
12
13 /* For IDL files that don't want to include root IDL files. */
14 #ifndef NS_NO_VTABLE
15 #define NS_NO_VTABLE
16 #endif
17
18 /* starting interface: nsIDOMEventListener */
19 #define NS_IDOMEVENTLISTENER_IID_STR "df31c120-ded6-11d1-bd85-00805f8ae3f4"
20
21 #define NS_IDOMEVENTLISTENER_IID \
22 {0xdf31c120, 0xded6, 0x11d1, \
23 { 0xbd, 0x85, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4 }}
24
25 class NS_NO_VTABLE nsIDOMEventListener : public nsISupports {
26 public:
27
28 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMEVENTLISTENER_IID)
29
30 /**
31 * The nsIDOMEventListener interface is a callback interface for
32 * listening to events in the Document Object Model.
33 *
34 * For more information on this interface please see
35 * http://www.w3.org/TR/DOM-Level-2-Events/
36 *
37 * @status FROZEN
38 */
39 /**
40 * This method is called whenever an event occurs of the type for which
41 * the EventListener interface was registered.
42 *
43 * @param evt The Event contains contextual information about the
44 * event. It also contains the stopPropagation and
45 * preventDefault methods which are used in determining the
46 * event's flow and default action.
47 */
48 /* void handleEvent (in nsIDOMEvent event); */
49 NS_IMETHOD HandleEvent(nsIDOMEvent *event) = 0;
50
51 };
52
53 /* Use this macro when declaring classes that implement this interface. */
54 #define NS_DECL_NSIDOMEVENTLISTENER \
55 NS_IMETHOD HandleEvent(nsIDOMEvent *event);
56
57 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object. */
58 #define NS_FORWARD_NSIDOMEVENTLISTENER(_to) \
59 NS_IMETHOD HandleEvent(nsIDOMEvent *event) { return _to HandleEvent(event); }
60
61 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object in a safe way. */
62 #define NS_FORWARD_SAFE_NSIDOMEVENTLISTENER(_to) \
63 NS_IMETHOD HandleEvent(nsIDOMEvent *event) { return !_to ? NS_ERROR_NULL_POINT ER : _to->HandleEvent(event); }
64
65 #if 0
66 /* Use the code below as a template for the implementation class for this interf ace. */
67
68 /* Header file */
69 class nsDOMEventListener : public nsIDOMEventListener
70 {
71 public:
72 NS_DECL_ISUPPORTS
73 NS_DECL_NSIDOMEVENTLISTENER
74
75 nsDOMEventListener();
76
77 private:
78 ~nsDOMEventListener();
79
80 protected:
81 /* additional members */
82 };
83
84 /* Implementation file */
85 NS_IMPL_ISUPPORTS1(nsDOMEventListener, nsIDOMEventListener)
86
87 nsDOMEventListener::nsDOMEventListener()
88 {
89 /* member initializers and constructor code */
90 }
91
92 nsDOMEventListener::~nsDOMEventListener()
93 {
94 /* destructor code */
95 }
96
97 /* void handleEvent (in nsIDOMEvent event); */
98 NS_IMETHODIMP nsDOMEventListener::HandleEvent(nsIDOMEvent *event)
99 {
100 return NS_ERROR_NOT_IMPLEMENTED;
101 }
102
103 /* End of implementation class template. */
104 #endif
105
106
107 #endif /* __gen_nsIDOMEventListener_h__ */
OLDNEW
« no previous file with comments | « gecko-sdk/include/nsIDOMEventGroup.h ('k') | gecko-sdk/include/nsIDOMEventTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698