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

Side by Side Diff: gecko-sdk/include/nsIDOMMouseEvent.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/nsIDOMMediaList.h ('k') | gecko-sdk/include/nsIDOMNSDocumentStyle.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/nsIDOMMouseEvent.idl
3 */
4
5 #ifndef __gen_nsIDOMMouseEvent_h__
6 #define __gen_nsIDOMMouseEvent_h__
7
8
9 #ifndef __gen_nsIDOMUIEvent_h__
10 #include "nsIDOMUIEvent.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: nsIDOMMouseEvent */
19 #define NS_IDOMMOUSEEVENT_IID_STR "ff751edc-8b02-aae7-0010-8301838a3123"
20
21 #define NS_IDOMMOUSEEVENT_IID \
22 {0xff751edc, 0x8b02, 0xaae7, \
23 { 0x00, 0x10, 0x83, 0x01, 0x83, 0x8a, 0x31, 0x23 }}
24
25 /**
26 * The nsIDOMMouseEvent interface is the datatype for all mouse events
27 * in the Document Object Model.
28 *
29 * For more information on this interface please see
30 * http://www.w3.org/TR/DOM-Level-2-Events/
31 *
32 * @status FROZEN
33 */
34 class NS_NO_VTABLE nsIDOMMouseEvent : public nsIDOMUIEvent {
35 public:
36
37 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMMOUSEEVENT_IID)
38
39 /* readonly attribute long screenX; */
40 NS_IMETHOD GetScreenX(PRInt32 *aScreenX) = 0;
41
42 /* readonly attribute long screenY; */
43 NS_IMETHOD GetScreenY(PRInt32 *aScreenY) = 0;
44
45 /* readonly attribute long clientX; */
46 NS_IMETHOD GetClientX(PRInt32 *aClientX) = 0;
47
48 /* readonly attribute long clientY; */
49 NS_IMETHOD GetClientY(PRInt32 *aClientY) = 0;
50
51 /* readonly attribute boolean ctrlKey; */
52 NS_IMETHOD GetCtrlKey(PRBool *aCtrlKey) = 0;
53
54 /* readonly attribute boolean shiftKey; */
55 NS_IMETHOD GetShiftKey(PRBool *aShiftKey) = 0;
56
57 /* readonly attribute boolean altKey; */
58 NS_IMETHOD GetAltKey(PRBool *aAltKey) = 0;
59
60 /* readonly attribute boolean metaKey; */
61 NS_IMETHOD GetMetaKey(PRBool *aMetaKey) = 0;
62
63 /* readonly attribute unsigned short button; */
64 NS_IMETHOD GetButton(PRUint16 *aButton) = 0;
65
66 /* readonly attribute nsIDOMEventTarget relatedTarget; */
67 NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) = 0;
68
69 /* void initMouseEvent (in DOMString typeArg, in boolean canBubbleArg, in bool ean cancelableArg, in nsIDOMAbstractView viewArg, in long detailArg, in long scr eenXArg, in long screenYArg, in long clientXArg, in long clientYArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in unsigned short buttonArg, in nsIDOMEventTarget relatedTargetArg); */
70 NS_IMETHOD InitMouseEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBo ol cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screen XArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKey Arg, PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg , nsIDOMEventTarget *relatedTargetArg) = 0;
71
72 };
73
74 /* Use this macro when declaring classes that implement this interface. */
75 #define NS_DECL_NSIDOMMOUSEEVENT \
76 NS_IMETHOD GetScreenX(PRInt32 *aScreenX); \
77 NS_IMETHOD GetScreenY(PRInt32 *aScreenY); \
78 NS_IMETHOD GetClientX(PRInt32 *aClientX); \
79 NS_IMETHOD GetClientY(PRInt32 *aClientY); \
80 NS_IMETHOD GetCtrlKey(PRBool *aCtrlKey); \
81 NS_IMETHOD GetShiftKey(PRBool *aShiftKey); \
82 NS_IMETHOD GetAltKey(PRBool *aAltKey); \
83 NS_IMETHOD GetMetaKey(PRBool *aMetaKey); \
84 NS_IMETHOD GetButton(PRUint16 *aButton); \
85 NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget); \
86 NS_IMETHOD InitMouseEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBo ol cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screen XArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKey Arg, PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg , nsIDOMEventTarget *relatedTargetArg);
87
88 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object. */
89 #define NS_FORWARD_NSIDOMMOUSEEVENT(_to) \
90 NS_IMETHOD GetScreenX(PRInt32 *aScreenX) { return _to GetScreenX(aScreenX); } \
91 NS_IMETHOD GetScreenY(PRInt32 *aScreenY) { return _to GetScreenY(aScreenY); } \
92 NS_IMETHOD GetClientX(PRInt32 *aClientX) { return _to GetClientX(aClientX); } \
93 NS_IMETHOD GetClientY(PRInt32 *aClientY) { return _to GetClientY(aClientY); } \
94 NS_IMETHOD GetCtrlKey(PRBool *aCtrlKey) { return _to GetCtrlKey(aCtrlKey); } \
95 NS_IMETHOD GetShiftKey(PRBool *aShiftKey) { return _to GetShiftKey(aShiftKey); } \
96 NS_IMETHOD GetAltKey(PRBool *aAltKey) { return _to GetAltKey(aAltKey); } \
97 NS_IMETHOD GetMetaKey(PRBool *aMetaKey) { return _to GetMetaKey(aMetaKey); } \
98 NS_IMETHOD GetButton(PRUint16 *aButton) { return _to GetButton(aButton); } \
99 NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) { return _to GetRelatedTarget(aRelatedTarget); } \
100 NS_IMETHOD InitMouseEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBo ol cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screen XArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKey Arg, PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg , nsIDOMEventTarget *relatedTargetArg) { return _to InitMouseEvent(typeArg, canB ubbleArg, cancelableArg, viewArg, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, relatedT argetArg); }
101
102 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object in a safe way. */
103 #define NS_FORWARD_SAFE_NSIDOMMOUSEEVENT(_to) \
104 NS_IMETHOD GetScreenX(PRInt32 *aScreenX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenX(aScreenX); } \
105 NS_IMETHOD GetScreenY(PRInt32 *aScreenY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenY(aScreenY); } \
106 NS_IMETHOD GetClientX(PRInt32 *aClientX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientX(aClientX); } \
107 NS_IMETHOD GetClientY(PRInt32 *aClientY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientY(aClientY); } \
108 NS_IMETHOD GetCtrlKey(PRBool *aCtrlKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCtrlKey(aCtrlKey); } \
109 NS_IMETHOD GetShiftKey(PRBool *aShiftKey) { return !_to ? NS_ERROR_NULL_POINTE R : _to->GetShiftKey(aShiftKey); } \
110 NS_IMETHOD GetAltKey(PRBool *aAltKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAltKey(aAltKey); } \
111 NS_IMETHOD GetMetaKey(PRBool *aMetaKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMetaKey(aMetaKey); } \
112 NS_IMETHOD GetButton(PRUint16 *aButton) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetButton(aButton); } \
113 NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRelatedTarget(aRelatedTarget); } \
114 NS_IMETHOD InitMouseEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBo ol cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screen XArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKey Arg, PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg , nsIDOMEventTarget *relatedTargetArg) { return !_to ? NS_ERROR_NULL_POINTER : _ to->InitMouseEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, scr eenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, relatedTargetArg); }
115
116 #if 0
117 /* Use the code below as a template for the implementation class for this interf ace. */
118
119 /* Header file */
120 class nsDOMMouseEvent : public nsIDOMMouseEvent
121 {
122 public:
123 NS_DECL_ISUPPORTS
124 NS_DECL_NSIDOMMOUSEEVENT
125
126 nsDOMMouseEvent();
127
128 private:
129 ~nsDOMMouseEvent();
130
131 protected:
132 /* additional members */
133 };
134
135 /* Implementation file */
136 NS_IMPL_ISUPPORTS1(nsDOMMouseEvent, nsIDOMMouseEvent)
137
138 nsDOMMouseEvent::nsDOMMouseEvent()
139 {
140 /* member initializers and constructor code */
141 }
142
143 nsDOMMouseEvent::~nsDOMMouseEvent()
144 {
145 /* destructor code */
146 }
147
148 /* readonly attribute long screenX; */
149 NS_IMETHODIMP nsDOMMouseEvent::GetScreenX(PRInt32 *aScreenX)
150 {
151 return NS_ERROR_NOT_IMPLEMENTED;
152 }
153
154 /* readonly attribute long screenY; */
155 NS_IMETHODIMP nsDOMMouseEvent::GetScreenY(PRInt32 *aScreenY)
156 {
157 return NS_ERROR_NOT_IMPLEMENTED;
158 }
159
160 /* readonly attribute long clientX; */
161 NS_IMETHODIMP nsDOMMouseEvent::GetClientX(PRInt32 *aClientX)
162 {
163 return NS_ERROR_NOT_IMPLEMENTED;
164 }
165
166 /* readonly attribute long clientY; */
167 NS_IMETHODIMP nsDOMMouseEvent::GetClientY(PRInt32 *aClientY)
168 {
169 return NS_ERROR_NOT_IMPLEMENTED;
170 }
171
172 /* readonly attribute boolean ctrlKey; */
173 NS_IMETHODIMP nsDOMMouseEvent::GetCtrlKey(PRBool *aCtrlKey)
174 {
175 return NS_ERROR_NOT_IMPLEMENTED;
176 }
177
178 /* readonly attribute boolean shiftKey; */
179 NS_IMETHODIMP nsDOMMouseEvent::GetShiftKey(PRBool *aShiftKey)
180 {
181 return NS_ERROR_NOT_IMPLEMENTED;
182 }
183
184 /* readonly attribute boolean altKey; */
185 NS_IMETHODIMP nsDOMMouseEvent::GetAltKey(PRBool *aAltKey)
186 {
187 return NS_ERROR_NOT_IMPLEMENTED;
188 }
189
190 /* readonly attribute boolean metaKey; */
191 NS_IMETHODIMP nsDOMMouseEvent::GetMetaKey(PRBool *aMetaKey)
192 {
193 return NS_ERROR_NOT_IMPLEMENTED;
194 }
195
196 /* readonly attribute unsigned short button; */
197 NS_IMETHODIMP nsDOMMouseEvent::GetButton(PRUint16 *aButton)
198 {
199 return NS_ERROR_NOT_IMPLEMENTED;
200 }
201
202 /* readonly attribute nsIDOMEventTarget relatedTarget; */
203 NS_IMETHODIMP nsDOMMouseEvent::GetRelatedTarget(nsIDOMEventTarget * *aRelatedTar get)
204 {
205 return NS_ERROR_NOT_IMPLEMENTED;
206 }
207
208 /* void initMouseEvent (in DOMString typeArg, in boolean canBubbleArg, in boolea n cancelableArg, in nsIDOMAbstractView viewArg, in long detailArg, in long scree nXArg, in long screenYArg, in long clientXArg, in long clientYArg, in boolean ct rlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, i n unsigned short buttonArg, in nsIDOMEventTarget relatedTargetArg); */
209 NS_IMETHODIMP nsDOMMouseEvent::InitMouseEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRInt32 detailA rg, PRInt32 screenXArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYA rg, PRBool ctrlKeyArg, PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg)
210 {
211 return NS_ERROR_NOT_IMPLEMENTED;
212 }
213
214 /* End of implementation class template. */
215 #endif
216
217
218 #endif /* __gen_nsIDOMMouseEvent_h__ */
OLDNEW
« no previous file with comments | « gecko-sdk/include/nsIDOMMediaList.h ('k') | gecko-sdk/include/nsIDOMNSDocumentStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698