Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/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 : /* 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 nsIRunnable; /* forward declaration */
18 :
19 : template <class T> struct already_AddRefed;
20 :
21 : /* starting interface: nsIAppShell */
22 : #define NS_IAPPSHELL_IID_STR "7cd5c71d-223b-4afe-931d-5eedb1f2b01f"
23 :
24 : #define NS_IAPPSHELL_IID \
25 : {0x7cd5c71d, 0x223b, 0x4afe, \
26 : { 0x93, 0x1d, 0x5e, 0xed, 0xb1, 0xf2, 0xb0, 0x1f }}
27 :
28 3 : class NS_NO_VTABLE nsIAppShell : public nsISupports {
29 : public:
30 :
31 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAPPSHELL_IID)
32 :
33 : /* void run (); */
34 : NS_IMETHOD Run(void) = 0;
35 :
36 : /* void exit (); */
37 : NS_IMETHOD Exit(void) = 0;
38 :
39 : /* void favorPerformanceHint (in boolean favorPerfOverStarvation, in unsigned long starvationDelay); */
40 : NS_IMETHOD FavorPerformanceHint(bool favorPerfOverStarvation, uint32_t starvationDelay) = 0;
41 :
42 : /* void suspendNative (); */
43 : NS_IMETHOD SuspendNative(void) = 0;
44 :
45 : /* void resumeNative (); */
46 : NS_IMETHOD ResumeNative(void) = 0;
47 :
48 : /* readonly attribute unsigned long eventloopNestingLevel; */
49 : NS_IMETHOD GetEventloopNestingLevel(uint32_t *aEventloopNestingLevel) = 0;
50 :
51 : };
52 :
53 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAppShell, NS_IAPPSHELL_IID)
54 :
55 : /* Use this macro when declaring classes that implement this interface. */
56 : #define NS_DECL_NSIAPPSHELL \
57 : NS_IMETHOD Run(void) override; \
58 : NS_IMETHOD Exit(void) override; \
59 : NS_IMETHOD FavorPerformanceHint(bool favorPerfOverStarvation, uint32_t starvationDelay) override; \
60 : NS_IMETHOD SuspendNative(void) override; \
61 : NS_IMETHOD ResumeNative(void) override; \
62 : NS_IMETHOD GetEventloopNestingLevel(uint32_t *aEventloopNestingLevel) override;
63 :
64 : /* Use this macro when declaring the members of this interface when the
65 : class doesn't implement the interface. This is useful for forwarding. */
66 : #define NS_DECL_NON_VIRTUAL_NSIAPPSHELL \
67 : nsresult Run(void); \
68 : nsresult Exit(void); \
69 : nsresult FavorPerformanceHint(bool favorPerfOverStarvation, uint32_t starvationDelay); \
70 : nsresult SuspendNative(void); \
71 : nsresult ResumeNative(void); \
72 : nsresult GetEventloopNestingLevel(uint32_t *aEventloopNestingLevel);
73 :
74 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
75 : #define NS_FORWARD_NSIAPPSHELL(_to) \
76 : NS_IMETHOD Run(void) override { return _to Run(); } \
77 : NS_IMETHOD Exit(void) override { return _to Exit(); } \
78 : NS_IMETHOD FavorPerformanceHint(bool favorPerfOverStarvation, uint32_t starvationDelay) override { return _to FavorPerformanceHint(favorPerfOverStarvation, starvationDelay); } \
79 : NS_IMETHOD SuspendNative(void) override { return _to SuspendNative(); } \
80 : NS_IMETHOD ResumeNative(void) override { return _to ResumeNative(); } \
81 : NS_IMETHOD GetEventloopNestingLevel(uint32_t *aEventloopNestingLevel) override { return _to GetEventloopNestingLevel(aEventloopNestingLevel); }
82 :
83 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
84 : #define NS_FORWARD_SAFE_NSIAPPSHELL(_to) \
85 : NS_IMETHOD Run(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Run(); } \
86 : NS_IMETHOD Exit(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Exit(); } \
87 : NS_IMETHOD FavorPerformanceHint(bool favorPerfOverStarvation, uint32_t starvationDelay) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FavorPerformanceHint(favorPerfOverStarvation, starvationDelay); } \
88 : NS_IMETHOD SuspendNative(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SuspendNative(); } \
89 : NS_IMETHOD ResumeNative(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResumeNative(); } \
90 : NS_IMETHOD GetEventloopNestingLevel(uint32_t *aEventloopNestingLevel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEventloopNestingLevel(aEventloopNestingLevel); }
91 :
92 : #if 0
93 : /* Use the code below as a template for the implementation class for this interface. */
94 :
95 : /* Header file */
96 : class nsAppShell : public nsIAppShell
97 : {
98 : public:
99 : NS_DECL_ISUPPORTS
100 : NS_DECL_NSIAPPSHELL
101 :
102 : nsAppShell();
103 :
104 : private:
105 : ~nsAppShell();
106 :
107 : protected:
108 : /* additional members */
109 : };
110 :
111 : /* Implementation file */
112 : NS_IMPL_ISUPPORTS(nsAppShell, nsIAppShell)
113 :
114 : nsAppShell::nsAppShell()
115 : {
116 : /* member initializers and constructor code */
117 : }
118 :
119 : nsAppShell::~nsAppShell()
120 : {
121 : /* destructor code */
122 : }
123 :
124 : /* void run (); */
125 : NS_IMETHODIMP nsAppShell::Run()
126 : {
127 : return NS_ERROR_NOT_IMPLEMENTED;
128 : }
129 :
130 : /* void exit (); */
131 : NS_IMETHODIMP nsAppShell::Exit()
132 : {
133 : return NS_ERROR_NOT_IMPLEMENTED;
134 : }
135 :
136 : /* void favorPerformanceHint (in boolean favorPerfOverStarvation, in unsigned long starvationDelay); */
137 : NS_IMETHODIMP nsAppShell::FavorPerformanceHint(bool favorPerfOverStarvation, uint32_t starvationDelay)
138 : {
139 : return NS_ERROR_NOT_IMPLEMENTED;
140 : }
141 :
142 : /* void suspendNative (); */
143 : NS_IMETHODIMP nsAppShell::SuspendNative()
144 : {
145 : return NS_ERROR_NOT_IMPLEMENTED;
146 : }
147 :
148 : /* void resumeNative (); */
149 : NS_IMETHODIMP nsAppShell::ResumeNative()
150 : {
151 : return NS_ERROR_NOT_IMPLEMENTED;
152 : }
153 :
154 : /* readonly attribute unsigned long eventloopNestingLevel; */
155 : NS_IMETHODIMP nsAppShell::GetEventloopNestingLevel(uint32_t *aEventloopNestingLevel)
156 : {
157 : return NS_ERROR_NOT_IMPLEMENTED;
158 : }
159 :
160 : /* End of implementation class template. */
161 : #endif
162 :
163 :
164 : #endif /* __gen_nsIAppShell_h__ */
|