1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/base/nsIDOMPerformance.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMPerformance_h__
6 : #define __gen_nsIDOMPerformance_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 nsIDOMPerformanceTiming; /* forward declaration */
18 :
19 : class nsIDOMPerformanceNavigation; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIDOMPerformance */
23 : #define NS_IDOMPERFORMANCE_IID_STR "446faf26-000b-4e66-a5fd-ae37c5ed6beb"
24 :
25 : #define NS_IDOMPERFORMANCE_IID \
26 : {0x446faf26, 0x000b, 0x4e66, \
27 : { 0xa5, 0xfd, 0xae, 0x37, 0xc5, 0xed, 0x6b, 0xeb }}
28 :
29 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMPerformance : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMPERFORMANCE_IID)
33 :
34 : /* readonly attribute nsIDOMPerformanceTiming timing; */
35 : NS_SCRIPTABLE NS_IMETHOD GetTiming(nsIDOMPerformanceTiming * *aTiming) = 0;
36 :
37 : /* readonly attribute nsIDOMPerformanceNavigation navigation; */
38 : NS_SCRIPTABLE NS_IMETHOD GetNavigation(nsIDOMPerformanceNavigation * *aNavigation) = 0;
39 :
40 : };
41 :
42 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMPerformance, NS_IDOMPERFORMANCE_IID)
43 :
44 : /* Use this macro when declaring classes that implement this interface. */
45 : #define NS_DECL_NSIDOMPERFORMANCE \
46 : NS_SCRIPTABLE NS_IMETHOD GetTiming(nsIDOMPerformanceTiming * *aTiming); \
47 : NS_SCRIPTABLE NS_IMETHOD GetNavigation(nsIDOMPerformanceNavigation * *aNavigation);
48 :
49 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
50 : #define NS_FORWARD_NSIDOMPERFORMANCE(_to) \
51 : NS_SCRIPTABLE NS_IMETHOD GetTiming(nsIDOMPerformanceTiming * *aTiming) { return _to GetTiming(aTiming); } \
52 : NS_SCRIPTABLE NS_IMETHOD GetNavigation(nsIDOMPerformanceNavigation * *aNavigation) { return _to GetNavigation(aNavigation); }
53 :
54 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
55 : #define NS_FORWARD_SAFE_NSIDOMPERFORMANCE(_to) \
56 : NS_SCRIPTABLE NS_IMETHOD GetTiming(nsIDOMPerformanceTiming * *aTiming) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTiming(aTiming); } \
57 : NS_SCRIPTABLE NS_IMETHOD GetNavigation(nsIDOMPerformanceNavigation * *aNavigation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNavigation(aNavigation); }
58 :
59 : #if 0
60 : /* Use the code below as a template for the implementation class for this interface. */
61 :
62 : /* Header file */
63 : class nsDOMPerformance : public nsIDOMPerformance
64 : {
65 : public:
66 : NS_DECL_ISUPPORTS
67 : NS_DECL_NSIDOMPERFORMANCE
68 :
69 : nsDOMPerformance();
70 :
71 : private:
72 : ~nsDOMPerformance();
73 :
74 : protected:
75 : /* additional members */
76 : };
77 :
78 : /* Implementation file */
79 : NS_IMPL_ISUPPORTS1(nsDOMPerformance, nsIDOMPerformance)
80 :
81 : nsDOMPerformance::nsDOMPerformance()
82 : {
83 : /* member initializers and constructor code */
84 : }
85 :
86 : nsDOMPerformance::~nsDOMPerformance()
87 : {
88 : /* destructor code */
89 : }
90 :
91 : /* readonly attribute nsIDOMPerformanceTiming timing; */
92 : NS_IMETHODIMP nsDOMPerformance::GetTiming(nsIDOMPerformanceTiming * *aTiming)
93 : {
94 : return NS_ERROR_NOT_IMPLEMENTED;
95 : }
96 :
97 : /* readonly attribute nsIDOMPerformanceNavigation navigation; */
98 : NS_IMETHODIMP nsDOMPerformance::GetNavigation(nsIDOMPerformanceNavigation * *aNavigation)
99 : {
100 : return NS_ERROR_NOT_IMPLEMENTED;
101 : }
102 :
103 : /* End of implementation class template. */
104 : #endif
105 :
106 :
107 : #endif /* __gen_nsIDOMPerformance_h__ */
|