1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/widget/nsIGfxInfoDebug.idl
3 : */
4 :
5 : #ifndef __gen_nsIGfxInfoDebug_h__
6 : #define __gen_nsIGfxInfoDebug_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 :
18 : /* starting interface: nsIGfxInfoDebug */
19 : #define NS_IGFXINFODEBUG_IID_STR "ca7b0bc7-c67c-4b79-8270-ed7ba002af08"
20 :
21 : #define NS_IGFXINFODEBUG_IID \
22 : {0xca7b0bc7, 0xc67c, 0x4b79, \
23 : { 0x82, 0x70, 0xed, 0x7b, 0xa0, 0x02, 0xaf, 0x08 }}
24 :
25 26 : class NS_NO_VTABLE NS_SCRIPTABLE nsIGfxInfoDebug : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGFXINFODEBUG_IID)
29 :
30 : /* void spoofVendorID (in DOMString aVendorID); */
31 : NS_SCRIPTABLE NS_IMETHOD SpoofVendorID(const nsAString & aVendorID) = 0;
32 :
33 : /* void spoofDeviceID (in DOMString aDeviceID); */
34 : NS_SCRIPTABLE NS_IMETHOD SpoofDeviceID(const nsAString & aDeviceID) = 0;
35 :
36 : /* void spoofDriverVersion (in DOMString aDriverVersion); */
37 : NS_SCRIPTABLE NS_IMETHOD SpoofDriverVersion(const nsAString & aDriverVersion) = 0;
38 :
39 : /* void spoofOSVersion (in unsigned long aVersion); */
40 : NS_SCRIPTABLE NS_IMETHOD SpoofOSVersion(PRUint32 aVersion) = 0;
41 :
42 : };
43 :
44 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIGfxInfoDebug, NS_IGFXINFODEBUG_IID)
45 :
46 : /* Use this macro when declaring classes that implement this interface. */
47 : #define NS_DECL_NSIGFXINFODEBUG \
48 : NS_SCRIPTABLE NS_IMETHOD SpoofVendorID(const nsAString & aVendorID); \
49 : NS_SCRIPTABLE NS_IMETHOD SpoofDeviceID(const nsAString & aDeviceID); \
50 : NS_SCRIPTABLE NS_IMETHOD SpoofDriverVersion(const nsAString & aDriverVersion); \
51 : NS_SCRIPTABLE NS_IMETHOD SpoofOSVersion(PRUint32 aVersion);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSIGFXINFODEBUG(_to) \
55 : NS_SCRIPTABLE NS_IMETHOD SpoofVendorID(const nsAString & aVendorID) { return _to SpoofVendorID(aVendorID); } \
56 : NS_SCRIPTABLE NS_IMETHOD SpoofDeviceID(const nsAString & aDeviceID) { return _to SpoofDeviceID(aDeviceID); } \
57 : NS_SCRIPTABLE NS_IMETHOD SpoofDriverVersion(const nsAString & aDriverVersion) { return _to SpoofDriverVersion(aDriverVersion); } \
58 : NS_SCRIPTABLE NS_IMETHOD SpoofOSVersion(PRUint32 aVersion) { return _to SpoofOSVersion(aVersion); }
59 :
60 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
61 : #define NS_FORWARD_SAFE_NSIGFXINFODEBUG(_to) \
62 : NS_SCRIPTABLE NS_IMETHOD SpoofVendorID(const nsAString & aVendorID) { return !_to ? NS_ERROR_NULL_POINTER : _to->SpoofVendorID(aVendorID); } \
63 : NS_SCRIPTABLE NS_IMETHOD SpoofDeviceID(const nsAString & aDeviceID) { return !_to ? NS_ERROR_NULL_POINTER : _to->SpoofDeviceID(aDeviceID); } \
64 : NS_SCRIPTABLE NS_IMETHOD SpoofDriverVersion(const nsAString & aDriverVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->SpoofDriverVersion(aDriverVersion); } \
65 : NS_SCRIPTABLE NS_IMETHOD SpoofOSVersion(PRUint32 aVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->SpoofOSVersion(aVersion); }
66 :
67 : #if 0
68 : /* Use the code below as a template for the implementation class for this interface. */
69 :
70 : /* Header file */
71 : class nsGfxInfoDebug : public nsIGfxInfoDebug
72 : {
73 : public:
74 : NS_DECL_ISUPPORTS
75 : NS_DECL_NSIGFXINFODEBUG
76 :
77 : nsGfxInfoDebug();
78 :
79 : private:
80 : ~nsGfxInfoDebug();
81 :
82 : protected:
83 : /* additional members */
84 : };
85 :
86 : /* Implementation file */
87 : NS_IMPL_ISUPPORTS1(nsGfxInfoDebug, nsIGfxInfoDebug)
88 :
89 : nsGfxInfoDebug::nsGfxInfoDebug()
90 : {
91 : /* member initializers and constructor code */
92 : }
93 :
94 : nsGfxInfoDebug::~nsGfxInfoDebug()
95 : {
96 : /* destructor code */
97 : }
98 :
99 : /* void spoofVendorID (in DOMString aVendorID); */
100 : NS_IMETHODIMP nsGfxInfoDebug::SpoofVendorID(const nsAString & aVendorID)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* void spoofDeviceID (in DOMString aDeviceID); */
106 : NS_IMETHODIMP nsGfxInfoDebug::SpoofDeviceID(const nsAString & aDeviceID)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* void spoofDriverVersion (in DOMString aDriverVersion); */
112 : NS_IMETHODIMP nsGfxInfoDebug::SpoofDriverVersion(const nsAString & aDriverVersion)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* void spoofOSVersion (in unsigned long aVersion); */
118 : NS_IMETHODIMP nsGfxInfoDebug::SpoofOSVersion(PRUint32 aVersion)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* End of implementation class template. */
124 : #endif
125 :
126 :
127 : #endif /* __gen_nsIGfxInfoDebug_h__ */
|