Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIWebBrowserSetup.idl
3 : */
4 :
5 : #ifndef __gen_nsIWebBrowserSetup_h__
6 : #define __gen_nsIWebBrowserSetup_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: nsIWebBrowserSetup */
19 : #define NS_IWEBBROWSERSETUP_IID_STR "f15398a0-8018-11d3-af70-00a024ffc08c"
20 :
21 : #define NS_IWEBBROWSERSETUP_IID \
22 : {0xf15398a0, 0x8018, 0x11d3, \
23 : { 0xaf, 0x70, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c }}
24 :
25 1 : class NS_NO_VTABLE nsIWebBrowserSetup : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBBROWSERSETUP_IID)
29 :
30 : enum {
31 : SETUP_ALLOW_PLUGINS = 1U,
32 : SETUP_ALLOW_JAVASCRIPT = 2U,
33 : SETUP_ALLOW_META_REDIRECTS = 3U,
34 : SETUP_ALLOW_SUBFRAMES = 4U,
35 : SETUP_ALLOW_IMAGES = 5U,
36 : SETUP_FOCUS_DOC_BEFORE_CONTENT = 6U,
37 : SETUP_USE_GLOBAL_HISTORY = 256U,
38 : SETUP_IS_CHROME_WRAPPER = 7U,
39 : SETUP_ALLOW_DNS_PREFETCH = 8U
40 : };
41 :
42 : /* void setProperty (in unsigned long aId, in unsigned long aValue); */
43 : NS_IMETHOD SetProperty(uint32_t aId, uint32_t aValue) = 0;
44 :
45 : };
46 :
47 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebBrowserSetup, NS_IWEBBROWSERSETUP_IID)
48 :
49 : /* Use this macro when declaring classes that implement this interface. */
50 : #define NS_DECL_NSIWEBBROWSERSETUP \
51 : NS_IMETHOD SetProperty(uint32_t aId, uint32_t aValue) override;
52 :
53 : /* Use this macro when declaring the members of this interface when the
54 : class doesn't implement the interface. This is useful for forwarding. */
55 : #define NS_DECL_NON_VIRTUAL_NSIWEBBROWSERSETUP \
56 : nsresult SetProperty(uint32_t aId, uint32_t aValue);
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
59 : #define NS_FORWARD_NSIWEBBROWSERSETUP(_to) \
60 : NS_IMETHOD SetProperty(uint32_t aId, uint32_t aValue) override { return _to SetProperty(aId, aValue); }
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
63 : #define NS_FORWARD_SAFE_NSIWEBBROWSERSETUP(_to) \
64 : NS_IMETHOD SetProperty(uint32_t aId, uint32_t aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProperty(aId, aValue); }
65 :
66 : #if 0
67 : /* Use the code below as a template for the implementation class for this interface. */
68 :
69 : /* Header file */
70 : class nsWebBrowserSetup : public nsIWebBrowserSetup
71 : {
72 : public:
73 : NS_DECL_ISUPPORTS
74 : NS_DECL_NSIWEBBROWSERSETUP
75 :
76 : nsWebBrowserSetup();
77 :
78 : private:
79 : ~nsWebBrowserSetup();
80 :
81 : protected:
82 : /* additional members */
83 : };
84 :
85 : /* Implementation file */
86 : NS_IMPL_ISUPPORTS(nsWebBrowserSetup, nsIWebBrowserSetup)
87 :
88 : nsWebBrowserSetup::nsWebBrowserSetup()
89 : {
90 : /* member initializers and constructor code */
91 : }
92 :
93 : nsWebBrowserSetup::~nsWebBrowserSetup()
94 : {
95 : /* destructor code */
96 : }
97 :
98 : /* void setProperty (in unsigned long aId, in unsigned long aValue); */
99 : NS_IMETHODIMP nsWebBrowserSetup::SetProperty(uint32_t aId, uint32_t aValue)
100 : {
101 : return NS_ERROR_NOT_IMPLEMENTED;
102 : }
103 :
104 : /* End of implementation class template. */
105 : #endif
106 :
107 :
108 : #endif /* __gen_nsIWebBrowserSetup_h__ */
|