1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/widget/nsIAppShell.idl
3 : */
4 :
5 : #ifndef __gen_nsIAppShell_h__
6 : #define __gen_nsIAppShell_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIRunnable_h__
14 : #include "nsIRunnable.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 :
22 : /* starting interface: nsIAppShell */
23 : #define NS_IAPPSHELL_IID_STR "40bc6280-ad83-471e-b197-80ab90e2065e"
24 :
25 : #define NS_IAPPSHELL_IID \
26 : {0x40bc6280, 0xad83, 0x471e, \
27 : { 0xb1, 0x97, 0x80, 0xab, 0x90, 0xe2, 0x06, 0x5e }}
28 :
29 1387 : class NS_NO_VTABLE nsIAppShell : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAPPSHELL_IID)
33 :
34 : /* void run (); */
35 : NS_IMETHOD Run(void) = 0;
36 :
37 : /* void exit (); */
38 : NS_IMETHOD Exit(void) = 0;
39 :
40 : /* void favorPerformanceHint (in boolean favorPerfOverStarvation, in unsigned long starvationDelay); */
41 : NS_IMETHOD FavorPerformanceHint(bool favorPerfOverStarvation, PRUint32 starvationDelay) = 0;
42 :
43 : /* void suspendNative (); */
44 : NS_IMETHOD SuspendNative(void) = 0;
45 :
46 : /* void resumeNative (); */
47 : NS_IMETHOD ResumeNative(void) = 0;
48 :
49 : /* readonly attribute unsigned long eventloopNestingLevel; */
50 : NS_IMETHOD GetEventloopNestingLevel(PRUint32 *aEventloopNestingLevel) = 0;
51 :
52 : /* void runInStableState (in nsIRunnable aRunnable); */
53 : NS_IMETHOD RunInStableState(nsIRunnable *aRunnable) = 0;
54 :
55 : };
56 :
57 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAppShell, NS_IAPPSHELL_IID)
58 :
59 : /* Use this macro when declaring classes that implement this interface. */
60 : #define NS_DECL_NSIAPPSHELL \
61 : NS_IMETHOD Run(void); \
62 : NS_IMETHOD Exit(void); \
63 : NS_IMETHOD FavorPerformanceHint(bool favorPerfOverStarvation, PRUint32 starvationDelay); \
64 : NS_IMETHOD SuspendNative(void); \
65 : NS_IMETHOD ResumeNative(void); \
66 : NS_IMETHOD GetEventloopNestingLevel(PRUint32 *aEventloopNestingLevel); \
67 : NS_IMETHOD RunInStableState(nsIRunnable *aRunnable);
68 :
69 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
70 : #define NS_FORWARD_NSIAPPSHELL(_to) \
71 : NS_IMETHOD Run(void) { return _to Run(); } \
72 : NS_IMETHOD Exit(void) { return _to Exit(); } \
73 : NS_IMETHOD FavorPerformanceHint(bool favorPerfOverStarvation, PRUint32 starvationDelay) { return _to FavorPerformanceHint(favorPerfOverStarvation, starvationDelay); } \
74 : NS_IMETHOD SuspendNative(void) { return _to SuspendNative(); } \
75 : NS_IMETHOD ResumeNative(void) { return _to ResumeNative(); } \
76 : NS_IMETHOD GetEventloopNestingLevel(PRUint32 *aEventloopNestingLevel) { return _to GetEventloopNestingLevel(aEventloopNestingLevel); } \
77 : NS_IMETHOD RunInStableState(nsIRunnable *aRunnable) { return _to RunInStableState(aRunnable); }
78 :
79 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
80 : #define NS_FORWARD_SAFE_NSIAPPSHELL(_to) \
81 : NS_IMETHOD Run(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Run(); } \
82 : NS_IMETHOD Exit(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Exit(); } \
83 : NS_IMETHOD FavorPerformanceHint(bool favorPerfOverStarvation, PRUint32 starvationDelay) { return !_to ? NS_ERROR_NULL_POINTER : _to->FavorPerformanceHint(favorPerfOverStarvation, starvationDelay); } \
84 : NS_IMETHOD SuspendNative(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SuspendNative(); } \
85 : NS_IMETHOD ResumeNative(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ResumeNative(); } \
86 : NS_IMETHOD GetEventloopNestingLevel(PRUint32 *aEventloopNestingLevel) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEventloopNestingLevel(aEventloopNestingLevel); } \
87 : NS_IMETHOD RunInStableState(nsIRunnable *aRunnable) { return !_to ? NS_ERROR_NULL_POINTER : _to->RunInStableState(aRunnable); }
88 :
89 : #if 0
90 : /* Use the code below as a template for the implementation class for this interface. */
91 :
92 : /* Header file */
93 : class nsAppShell : public nsIAppShell
94 : {
95 : public:
96 : NS_DECL_ISUPPORTS
97 : NS_DECL_NSIAPPSHELL
98 :
99 : nsAppShell();
100 :
101 : private:
102 : ~nsAppShell();
103 :
104 : protected:
105 : /* additional members */
106 : };
107 :
108 : /* Implementation file */
109 : NS_IMPL_ISUPPORTS1(nsAppShell, nsIAppShell)
110 :
111 : nsAppShell::nsAppShell()
112 : {
113 : /* member initializers and constructor code */
114 : }
115 :
116 : nsAppShell::~nsAppShell()
117 : {
118 : /* destructor code */
119 : }
120 :
121 : /* void run (); */
122 : NS_IMETHODIMP nsAppShell::Run()
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* void exit (); */
128 : NS_IMETHODIMP nsAppShell::Exit()
129 : {
130 : return NS_ERROR_NOT_IMPLEMENTED;
131 : }
132 :
133 : /* void favorPerformanceHint (in boolean favorPerfOverStarvation, in unsigned long starvationDelay); */
134 : NS_IMETHODIMP nsAppShell::FavorPerformanceHint(bool favorPerfOverStarvation, PRUint32 starvationDelay)
135 : {
136 : return NS_ERROR_NOT_IMPLEMENTED;
137 : }
138 :
139 : /* void suspendNative (); */
140 : NS_IMETHODIMP nsAppShell::SuspendNative()
141 : {
142 : return NS_ERROR_NOT_IMPLEMENTED;
143 : }
144 :
145 : /* void resumeNative (); */
146 : NS_IMETHODIMP nsAppShell::ResumeNative()
147 : {
148 : return NS_ERROR_NOT_IMPLEMENTED;
149 : }
150 :
151 : /* readonly attribute unsigned long eventloopNestingLevel; */
152 : NS_IMETHODIMP nsAppShell::GetEventloopNestingLevel(PRUint32 *aEventloopNestingLevel)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 :
157 : /* void runInStableState (in nsIRunnable aRunnable); */
158 : NS_IMETHODIMP nsAppShell::RunInStableState(nsIRunnable *aRunnable)
159 : {
160 : return NS_ERROR_NOT_IMPLEMENTED;
161 : }
162 :
163 : /* End of implementation class template. */
164 : #endif
165 :
166 :
167 : #endif /* __gen_nsIAppShell_h__ */
|