forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nsINativeEvents_g10.h
executable file
·127 lines (94 loc) · 4.04 KB
/
nsINativeEvents_g10.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM cpp\webdriver-firefox\nsINativeEvents.idl
*/
#ifndef __gen_nsINativeEvents_h__
#define __gen_nsINativeEvents_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsIArray_h__
#include "nsIArray.h"
#endif
#ifndef __gen_nsIMutableArray_h__
#include "nsIMutableArray.h"
#endif
#ifndef __gen_nsISupportsPrimitives_h__
#include "nsISupportsPrimitives.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsINativeEvents */
#define NS_INATIVEEVENTS_IID_STR "5a86850b-f376-4ae6-860d-53a441cafce4"
#define NS_INATIVEEVENTS_IID \
{0x5a86850b, 0xf376, 0x4ae6, \
{ 0x86, 0x0d, 0x53, 0xa4, 0x41, 0xca, 0xfc, 0xe4 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsINativeEvents : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_INATIVEEVENTS_IID)
/* void hasUnhandledEvents (in nsISupports aNode, out boolean hasEvents); */
NS_SCRIPTABLE NS_IMETHOD HasUnhandledEvents(nsISupports *aNode, bool *hasEvents NS_OUTPARAM) = 0;
/* void notifyOfSwitchToWindow (in long windowId); */
NS_SCRIPTABLE NS_IMETHOD NotifyOfSwitchToWindow(PRInt32 windowId) = 0;
/* void notifyOfCloseWindow (in long windowId); */
NS_SCRIPTABLE NS_IMETHOD NotifyOfCloseWindow(PRInt32 windowId) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsINativeEvents, NS_INATIVEEVENTS_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSINATIVEEVENTS \
NS_SCRIPTABLE NS_IMETHOD HasUnhandledEvents(nsISupports *aNode, bool *hasEvents NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD NotifyOfSwitchToWindow(PRInt32 windowId); \
NS_SCRIPTABLE NS_IMETHOD NotifyOfCloseWindow(PRInt32 windowId);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSINATIVEEVENTS(_to) \
NS_SCRIPTABLE NS_IMETHOD HasUnhandledEvents(nsISupports *aNode, bool *hasEvents NS_OUTPARAM) { return _to HasUnhandledEvents(aNode, hasEvents); } \
NS_SCRIPTABLE NS_IMETHOD NotifyOfSwitchToWindow(PRInt32 windowId) { return _to NotifyOfSwitchToWindow(windowId); } \
NS_SCRIPTABLE NS_IMETHOD NotifyOfCloseWindow(PRInt32 windowId) { return _to NotifyOfCloseWindow(windowId); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSINATIVEEVENTS(_to) \
NS_SCRIPTABLE NS_IMETHOD HasUnhandledEvents(nsISupports *aNode, bool *hasEvents NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasUnhandledEvents(aNode, hasEvents); } \
NS_SCRIPTABLE NS_IMETHOD NotifyOfSwitchToWindow(PRInt32 windowId) { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyOfSwitchToWindow(windowId); } \
NS_SCRIPTABLE NS_IMETHOD NotifyOfCloseWindow(PRInt32 windowId) { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyOfCloseWindow(windowId); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsNativeEvents : public nsINativeEvents
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSINATIVEEVENTS
nsNativeEvents();
private:
~nsNativeEvents();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsNativeEvents, nsINativeEvents)
nsNativeEvents::nsNativeEvents()
{
/* member initializers and constructor code */
}
nsNativeEvents::~nsNativeEvents()
{
/* destructor code */
}
/* void hasUnhandledEvents (in nsISupports aNode, out boolean hasEvents); */
NS_IMETHODIMP nsNativeEvents::HasUnhandledEvents(nsISupports *aNode, bool *hasEvents NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyOfSwitchToWindow (in long windowId); */
NS_IMETHODIMP nsNativeEvents::NotifyOfSwitchToWindow(PRInt32 windowId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyOfCloseWindow (in long windowId); */
NS_IMETHODIMP nsNativeEvents::NotifyOfCloseWindow(PRInt32 windowId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsINativeEvents_h__ */