1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/layout/xul/base/public/nsIMenuBoxObject.idl
3 : */
4 :
5 : #ifndef __gen_nsIMenuBoxObject_h__
6 : #define __gen_nsIMenuBoxObject_h__
7 :
8 :
9 : #ifndef __gen_nsIBoxObject_h__
10 : #include "nsIBoxObject.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 nsIDOMElement; /* forward declaration */
18 :
19 : class nsIDOMKeyEvent; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIMenuBoxObject */
23 : #define NS_IMENUBOXOBJECT_IID_STR "689ebf3d-0184-450a-9bfa-5a26be0e7a8c"
24 :
25 : #define NS_IMENUBOXOBJECT_IID \
26 : {0x689ebf3d, 0x0184, 0x450a, \
27 : { 0x9b, 0xfa, 0x5a, 0x26, 0xbe, 0x0e, 0x7a, 0x8c }}
28 :
29 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIMenuBoxObject : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMENUBOXOBJECT_IID)
33 :
34 : /* void openMenu (in boolean openFlag); */
35 : NS_SCRIPTABLE NS_IMETHOD OpenMenu(bool openFlag) = 0;
36 :
37 : /* attribute nsIDOMElement activeChild; */
38 : NS_SCRIPTABLE NS_IMETHOD GetActiveChild(nsIDOMElement * *aActiveChild) = 0;
39 : NS_SCRIPTABLE NS_IMETHOD SetActiveChild(nsIDOMElement *aActiveChild) = 0;
40 :
41 : /* boolean handleKeyPress (in nsIDOMKeyEvent keyEvent); */
42 : NS_SCRIPTABLE NS_IMETHOD HandleKeyPress(nsIDOMKeyEvent *keyEvent, bool *_retval NS_OUTPARAM) = 0;
43 :
44 : /* readonly attribute boolean openedWithKey; */
45 : NS_SCRIPTABLE NS_IMETHOD GetOpenedWithKey(bool *aOpenedWithKey) = 0;
46 :
47 : };
48 :
49 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIMenuBoxObject, NS_IMENUBOXOBJECT_IID)
50 :
51 : /* Use this macro when declaring classes that implement this interface. */
52 : #define NS_DECL_NSIMENUBOXOBJECT \
53 : NS_SCRIPTABLE NS_IMETHOD OpenMenu(bool openFlag); \
54 : NS_SCRIPTABLE NS_IMETHOD GetActiveChild(nsIDOMElement * *aActiveChild); \
55 : NS_SCRIPTABLE NS_IMETHOD SetActiveChild(nsIDOMElement *aActiveChild); \
56 : NS_SCRIPTABLE NS_IMETHOD HandleKeyPress(nsIDOMKeyEvent *keyEvent, bool *_retval NS_OUTPARAM); \
57 : NS_SCRIPTABLE NS_IMETHOD GetOpenedWithKey(bool *aOpenedWithKey);
58 :
59 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
60 : #define NS_FORWARD_NSIMENUBOXOBJECT(_to) \
61 : NS_SCRIPTABLE NS_IMETHOD OpenMenu(bool openFlag) { return _to OpenMenu(openFlag); } \
62 : NS_SCRIPTABLE NS_IMETHOD GetActiveChild(nsIDOMElement * *aActiveChild) { return _to GetActiveChild(aActiveChild); } \
63 : NS_SCRIPTABLE NS_IMETHOD SetActiveChild(nsIDOMElement *aActiveChild) { return _to SetActiveChild(aActiveChild); } \
64 : NS_SCRIPTABLE NS_IMETHOD HandleKeyPress(nsIDOMKeyEvent *keyEvent, bool *_retval NS_OUTPARAM) { return _to HandleKeyPress(keyEvent, _retval); } \
65 : NS_SCRIPTABLE NS_IMETHOD GetOpenedWithKey(bool *aOpenedWithKey) { return _to GetOpenedWithKey(aOpenedWithKey); }
66 :
67 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
68 : #define NS_FORWARD_SAFE_NSIMENUBOXOBJECT(_to) \
69 : NS_SCRIPTABLE NS_IMETHOD OpenMenu(bool openFlag) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenMenu(openFlag); } \
70 : NS_SCRIPTABLE NS_IMETHOD GetActiveChild(nsIDOMElement * *aActiveChild) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActiveChild(aActiveChild); } \
71 : NS_SCRIPTABLE NS_IMETHOD SetActiveChild(nsIDOMElement *aActiveChild) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetActiveChild(aActiveChild); } \
72 : NS_SCRIPTABLE NS_IMETHOD HandleKeyPress(nsIDOMKeyEvent *keyEvent, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleKeyPress(keyEvent, _retval); } \
73 : NS_SCRIPTABLE NS_IMETHOD GetOpenedWithKey(bool *aOpenedWithKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOpenedWithKey(aOpenedWithKey); }
74 :
75 : #if 0
76 : /* Use the code below as a template for the implementation class for this interface. */
77 :
78 : /* Header file */
79 : class nsMenuBoxObject : public nsIMenuBoxObject
80 : {
81 : public:
82 : NS_DECL_ISUPPORTS
83 : NS_DECL_NSIMENUBOXOBJECT
84 :
85 : nsMenuBoxObject();
86 :
87 : private:
88 : ~nsMenuBoxObject();
89 :
90 : protected:
91 : /* additional members */
92 : };
93 :
94 : /* Implementation file */
95 : NS_IMPL_ISUPPORTS1(nsMenuBoxObject, nsIMenuBoxObject)
96 :
97 : nsMenuBoxObject::nsMenuBoxObject()
98 : {
99 : /* member initializers and constructor code */
100 : }
101 :
102 : nsMenuBoxObject::~nsMenuBoxObject()
103 : {
104 : /* destructor code */
105 : }
106 :
107 : /* void openMenu (in boolean openFlag); */
108 : NS_IMETHODIMP nsMenuBoxObject::OpenMenu(bool openFlag)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* attribute nsIDOMElement activeChild; */
114 : NS_IMETHODIMP nsMenuBoxObject::GetActiveChild(nsIDOMElement * *aActiveChild)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 : NS_IMETHODIMP nsMenuBoxObject::SetActiveChild(nsIDOMElement *aActiveChild)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* boolean handleKeyPress (in nsIDOMKeyEvent keyEvent); */
124 : NS_IMETHODIMP nsMenuBoxObject::HandleKeyPress(nsIDOMKeyEvent *keyEvent, bool *_retval NS_OUTPARAM)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* readonly attribute boolean openedWithKey; */
130 : NS_IMETHODIMP nsMenuBoxObject::GetOpenedWithKey(bool *aOpenedWithKey)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* End of implementation class template. */
136 : #endif
137 :
138 : nsresult
139 : NS_NewMenuBoxObject(nsIBoxObject** aResult);
140 :
141 : #endif /* __gen_nsIMenuBoxObject_h__ */
|