1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/base/nsIDOMPerformanceNavigation.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMPerformanceNavigation_h__
6 : #define __gen_nsIDOMPerformanceNavigation_h__
7 :
8 :
9 : #ifndef __gen_domstubs_h__
10 : #include "domstubs.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 : typedef PRUint16 nsDOMPerformanceNavigationType;
18 :
19 :
20 : /* starting interface: nsIDOMPerformanceNavigation */
21 : #define NS_IDOMPERFORMANCENAVIGATION_IID_STR "a2132ad8-a841-4285-a140-338e8de6c2e0"
22 :
23 : #define NS_IDOMPERFORMANCENAVIGATION_IID \
24 : {0xa2132ad8, 0xa841, 0x4285, \
25 : { 0xa1, 0x40, 0x33, 0x8e, 0x8d, 0xe6, 0xc2, 0xe0 }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMPerformanceNavigation : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMPERFORMANCENAVIGATION_IID)
31 :
32 : enum {
33 : TYPE_NAVIGATE = 0U,
34 : TYPE_RELOAD = 1U,
35 : TYPE_BACK_FORWARD = 2U,
36 : TYPE_RESERVED = 255U
37 : };
38 :
39 : /* readonly attribute nsDOMPerformanceNavigationType type; */
40 : NS_SCRIPTABLE NS_IMETHOD GetType(nsDOMPerformanceNavigationType *aType) = 0;
41 :
42 : /* readonly attribute unsigned short redirectCount; */
43 : NS_SCRIPTABLE NS_IMETHOD GetRedirectCount(PRUint16 *aRedirectCount) = 0;
44 :
45 : };
46 :
47 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMPerformanceNavigation, NS_IDOMPERFORMANCENAVIGATION_IID)
48 :
49 : /* Use this macro when declaring classes that implement this interface. */
50 : #define NS_DECL_NSIDOMPERFORMANCENAVIGATION \
51 : NS_SCRIPTABLE NS_IMETHOD GetType(nsDOMPerformanceNavigationType *aType); \
52 : NS_SCRIPTABLE NS_IMETHOD GetRedirectCount(PRUint16 *aRedirectCount);
53 :
54 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
55 : #define NS_FORWARD_NSIDOMPERFORMANCENAVIGATION(_to) \
56 : NS_SCRIPTABLE NS_IMETHOD GetType(nsDOMPerformanceNavigationType *aType) { return _to GetType(aType); } \
57 : NS_SCRIPTABLE NS_IMETHOD GetRedirectCount(PRUint16 *aRedirectCount) { return _to GetRedirectCount(aRedirectCount); }
58 :
59 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
60 : #define NS_FORWARD_SAFE_NSIDOMPERFORMANCENAVIGATION(_to) \
61 : NS_SCRIPTABLE NS_IMETHOD GetType(nsDOMPerformanceNavigationType *aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
62 : NS_SCRIPTABLE NS_IMETHOD GetRedirectCount(PRUint16 *aRedirectCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRedirectCount(aRedirectCount); }
63 :
64 : #if 0
65 : /* Use the code below as a template for the implementation class for this interface. */
66 :
67 : /* Header file */
68 : class nsDOMPerformanceNavigation : public nsIDOMPerformanceNavigation
69 : {
70 : public:
71 : NS_DECL_ISUPPORTS
72 : NS_DECL_NSIDOMPERFORMANCENAVIGATION
73 :
74 : nsDOMPerformanceNavigation();
75 :
76 : private:
77 : ~nsDOMPerformanceNavigation();
78 :
79 : protected:
80 : /* additional members */
81 : };
82 :
83 : /* Implementation file */
84 : NS_IMPL_ISUPPORTS1(nsDOMPerformanceNavigation, nsIDOMPerformanceNavigation)
85 :
86 : nsDOMPerformanceNavigation::nsDOMPerformanceNavigation()
87 : {
88 : /* member initializers and constructor code */
89 : }
90 :
91 : nsDOMPerformanceNavigation::~nsDOMPerformanceNavigation()
92 : {
93 : /* destructor code */
94 : }
95 :
96 : /* readonly attribute nsDOMPerformanceNavigationType type; */
97 : NS_IMETHODIMP nsDOMPerformanceNavigation::GetType(nsDOMPerformanceNavigationType *aType)
98 : {
99 : return NS_ERROR_NOT_IMPLEMENTED;
100 : }
101 :
102 : /* readonly attribute unsigned short redirectCount; */
103 : NS_IMETHODIMP nsDOMPerformanceNavigation::GetRedirectCount(PRUint16 *aRedirectCount)
104 : {
105 : return NS_ERROR_NOT_IMPLEMENTED;
106 : }
107 :
108 : /* End of implementation class template. */
109 : #endif
110 :
111 :
112 : #endif /* __gen_nsIDOMPerformanceNavigation_h__ */
|