1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/content/xul/content/public/nsIXULContextMenuBuilder.idl
3 : */
4 :
5 : #ifndef __gen_nsIXULContextMenuBuilder_h__
6 : #define __gen_nsIXULContextMenuBuilder_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 nsIDOMDocumentFragment; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIXULContextMenuBuilder */
21 : #define NS_IXULCONTEXTMENUBUILDER_IID_STR "eb6b42c0-2f1c-4760-b5ca-bdc9b3ec77d4"
22 :
23 : #define NS_IXULCONTEXTMENUBUILDER_IID \
24 : {0xeb6b42c0, 0x2f1c, 0x4760, \
25 : { 0xb5, 0xca, 0xbd, 0xc9, 0xb3, 0xec, 0x77, 0xd4 }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIXULContextMenuBuilder : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXULCONTEXTMENUBUILDER_IID)
31 :
32 : /* void init (in nsIDOMDocumentFragment aDocumentFragment, in AString aGeneratedItemIdAttrName); */
33 : NS_SCRIPTABLE NS_IMETHOD Init(nsIDOMDocumentFragment *aDocumentFragment, const nsAString & aGeneratedItemIdAttrName) = 0;
34 :
35 : /* void click (in DOMString aGeneratedItemId); */
36 : NS_SCRIPTABLE NS_IMETHOD Click(const nsAString & aGeneratedItemId) = 0;
37 :
38 : };
39 :
40 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIXULContextMenuBuilder, NS_IXULCONTEXTMENUBUILDER_IID)
41 :
42 : /* Use this macro when declaring classes that implement this interface. */
43 : #define NS_DECL_NSIXULCONTEXTMENUBUILDER \
44 : NS_SCRIPTABLE NS_IMETHOD Init(nsIDOMDocumentFragment *aDocumentFragment, const nsAString & aGeneratedItemIdAttrName); \
45 : NS_SCRIPTABLE NS_IMETHOD Click(const nsAString & aGeneratedItemId);
46 :
47 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
48 : #define NS_FORWARD_NSIXULCONTEXTMENUBUILDER(_to) \
49 : NS_SCRIPTABLE NS_IMETHOD Init(nsIDOMDocumentFragment *aDocumentFragment, const nsAString & aGeneratedItemIdAttrName) { return _to Init(aDocumentFragment, aGeneratedItemIdAttrName); } \
50 : NS_SCRIPTABLE NS_IMETHOD Click(const nsAString & aGeneratedItemId) { return _to Click(aGeneratedItemId); }
51 :
52 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
53 : #define NS_FORWARD_SAFE_NSIXULCONTEXTMENUBUILDER(_to) \
54 : NS_SCRIPTABLE NS_IMETHOD Init(nsIDOMDocumentFragment *aDocumentFragment, const nsAString & aGeneratedItemIdAttrName) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aDocumentFragment, aGeneratedItemIdAttrName); } \
55 : NS_SCRIPTABLE NS_IMETHOD Click(const nsAString & aGeneratedItemId) { return !_to ? NS_ERROR_NULL_POINTER : _to->Click(aGeneratedItemId); }
56 :
57 : #if 0
58 : /* Use the code below as a template for the implementation class for this interface. */
59 :
60 : /* Header file */
61 : class nsXULContextMenuBuilder : public nsIXULContextMenuBuilder
62 : {
63 : public:
64 : NS_DECL_ISUPPORTS
65 : NS_DECL_NSIXULCONTEXTMENUBUILDER
66 :
67 : nsXULContextMenuBuilder();
68 :
69 : private:
70 : ~nsXULContextMenuBuilder();
71 :
72 : protected:
73 : /* additional members */
74 : };
75 :
76 : /* Implementation file */
77 : NS_IMPL_ISUPPORTS1(nsXULContextMenuBuilder, nsIXULContextMenuBuilder)
78 :
79 : nsXULContextMenuBuilder::nsXULContextMenuBuilder()
80 : {
81 : /* member initializers and constructor code */
82 : }
83 :
84 : nsXULContextMenuBuilder::~nsXULContextMenuBuilder()
85 : {
86 : /* destructor code */
87 : }
88 :
89 : /* void init (in nsIDOMDocumentFragment aDocumentFragment, in AString aGeneratedItemIdAttrName); */
90 : NS_IMETHODIMP nsXULContextMenuBuilder::Init(nsIDOMDocumentFragment *aDocumentFragment, const nsAString & aGeneratedItemIdAttrName)
91 : {
92 : return NS_ERROR_NOT_IMPLEMENTED;
93 : }
94 :
95 : /* void click (in DOMString aGeneratedItemId); */
96 : NS_IMETHODIMP nsXULContextMenuBuilder::Click(const nsAString & aGeneratedItemId)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* End of implementation class template. */
102 : #endif
103 :
104 :
105 : #endif /* __gen_nsIXULContextMenuBuilder_h__ */
|