Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMCustomEvent.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMCustomEvent_h__
6 : #define __gen_nsIDOMCustomEvent_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.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 : class nsIVariant; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIDOMCustomEvent */
21 : #define NS_IDOMCUSTOMEVENT_IID_STR "5be16b03-36f9-4ca8-b2c5-0daadf3cd1b3"
22 :
23 : #define NS_IDOMCUSTOMEVENT_IID \
24 : {0x5be16b03, 0x36f9, 0x4ca8, \
25 : { 0xb2, 0xc5, 0x0d, 0xaa, 0xdf, 0x3c, 0xd1, 0xb3 }}
26 :
27 9 : class NS_NO_VTABLE nsIDOMCustomEvent : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCUSTOMEVENT_IID)
31 :
32 : /* readonly attribute nsIVariant detail; */
33 : NS_IMETHOD GetDetail(nsIVariant * *aDetail) = 0;
34 :
35 : /* void initCustomEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIVariant detailArg); */
36 : NS_IMETHOD InitCustomEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIVariant *detailArg) = 0;
37 :
38 : };
39 :
40 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCustomEvent, NS_IDOMCUSTOMEVENT_IID)
41 :
42 : /* Use this macro when declaring classes that implement this interface. */
43 : #define NS_DECL_NSIDOMCUSTOMEVENT \
44 : NS_IMETHOD GetDetail(nsIVariant * *aDetail) override; \
45 : NS_IMETHOD InitCustomEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIVariant *detailArg) override;
46 :
47 : /* Use this macro when declaring the members of this interface when the
48 : class doesn't implement the interface. This is useful for forwarding. */
49 : #define NS_DECL_NON_VIRTUAL_NSIDOMCUSTOMEVENT \
50 : nsresult GetDetail(nsIVariant * *aDetail); \
51 : nsresult InitCustomEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIVariant *detailArg);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSIDOMCUSTOMEVENT(_to) \
55 : NS_IMETHOD GetDetail(nsIVariant * *aDetail) override { return _to GetDetail(aDetail); } \
56 : NS_IMETHOD InitCustomEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIVariant *detailArg) override { return _to InitCustomEvent(typeArg, canBubbleArg, cancelableArg, detailArg); }
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
59 : #define NS_FORWARD_SAFE_NSIDOMCUSTOMEVENT(_to) \
60 : NS_IMETHOD GetDetail(nsIVariant * *aDetail) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDetail(aDetail); } \
61 : NS_IMETHOD InitCustomEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIVariant *detailArg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitCustomEvent(typeArg, canBubbleArg, cancelableArg, detailArg); }
62 :
63 : #if 0
64 : /* Use the code below as a template for the implementation class for this interface. */
65 :
66 : /* Header file */
67 : class nsDOMCustomEvent : public nsIDOMCustomEvent
68 : {
69 : public:
70 : NS_DECL_ISUPPORTS
71 : NS_DECL_NSIDOMCUSTOMEVENT
72 :
73 : nsDOMCustomEvent();
74 :
75 : private:
76 : ~nsDOMCustomEvent();
77 :
78 : protected:
79 : /* additional members */
80 : };
81 :
82 : /* Implementation file */
83 : NS_IMPL_ISUPPORTS(nsDOMCustomEvent, nsIDOMCustomEvent)
84 :
85 : nsDOMCustomEvent::nsDOMCustomEvent()
86 : {
87 : /* member initializers and constructor code */
88 : }
89 :
90 : nsDOMCustomEvent::~nsDOMCustomEvent()
91 : {
92 : /* destructor code */
93 : }
94 :
95 : /* readonly attribute nsIVariant detail; */
96 : NS_IMETHODIMP nsDOMCustomEvent::GetDetail(nsIVariant * *aDetail)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* void initCustomEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIVariant detailArg); */
102 : NS_IMETHODIMP nsDOMCustomEvent::InitCustomEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIVariant *detailArg)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* End of implementation class template. */
108 : #endif
109 :
110 :
111 : #endif /* __gen_nsIDOMCustomEvent_h__ */
|