Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIWebBrowserChromeFocus.idl
3 : */
4 :
5 : #ifndef __gen_nsIWebBrowserChromeFocus_h__
6 : #define __gen_nsIWebBrowserChromeFocus_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: nsIWebBrowserChromeFocus */
19 : #define NS_IWEBBROWSERCHROMEFOCUS_IID_STR "947b2ee6-51ed-4c2b-9f45-426c27ca84c6"
20 :
21 : #define NS_IWEBBROWSERCHROMEFOCUS_IID \
22 : {0x947b2ee6, 0x51ed, 0x4c2b, \
23 : { 0x9f, 0x45, 0x42, 0x6c, 0x27, 0xca, 0x84, 0xc6 }}
24 :
25 1 : class NS_NO_VTABLE nsIWebBrowserChromeFocus : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBBROWSERCHROMEFOCUS_IID)
29 :
30 : /* void focusNextElement (in bool aForDocumentNavigation); */
31 : NS_IMETHOD FocusNextElement(bool aForDocumentNavigation) = 0;
32 :
33 : /* void focusPrevElement (in bool aForDocumentNavigation); */
34 : NS_IMETHOD FocusPrevElement(bool aForDocumentNavigation) = 0;
35 :
36 : };
37 :
38 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebBrowserChromeFocus, NS_IWEBBROWSERCHROMEFOCUS_IID)
39 :
40 : /* Use this macro when declaring classes that implement this interface. */
41 : #define NS_DECL_NSIWEBBROWSERCHROMEFOCUS \
42 : NS_IMETHOD FocusNextElement(bool aForDocumentNavigation) override; \
43 : NS_IMETHOD FocusPrevElement(bool aForDocumentNavigation) override;
44 :
45 : /* Use this macro when declaring the members of this interface when the
46 : class doesn't implement the interface. This is useful for forwarding. */
47 : #define NS_DECL_NON_VIRTUAL_NSIWEBBROWSERCHROMEFOCUS \
48 : nsresult FocusNextElement(bool aForDocumentNavigation); \
49 : nsresult FocusPrevElement(bool aForDocumentNavigation);
50 :
51 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
52 : #define NS_FORWARD_NSIWEBBROWSERCHROMEFOCUS(_to) \
53 : NS_IMETHOD FocusNextElement(bool aForDocumentNavigation) override { return _to FocusNextElement(aForDocumentNavigation); } \
54 : NS_IMETHOD FocusPrevElement(bool aForDocumentNavigation) override { return _to FocusPrevElement(aForDocumentNavigation); }
55 :
56 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
57 : #define NS_FORWARD_SAFE_NSIWEBBROWSERCHROMEFOCUS(_to) \
58 : NS_IMETHOD FocusNextElement(bool aForDocumentNavigation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FocusNextElement(aForDocumentNavigation); } \
59 : NS_IMETHOD FocusPrevElement(bool aForDocumentNavigation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FocusPrevElement(aForDocumentNavigation); }
60 :
61 : #if 0
62 : /* Use the code below as a template for the implementation class for this interface. */
63 :
64 : /* Header file */
65 : class nsWebBrowserChromeFocus : public nsIWebBrowserChromeFocus
66 : {
67 : public:
68 : NS_DECL_ISUPPORTS
69 : NS_DECL_NSIWEBBROWSERCHROMEFOCUS
70 :
71 : nsWebBrowserChromeFocus();
72 :
73 : private:
74 : ~nsWebBrowserChromeFocus();
75 :
76 : protected:
77 : /* additional members */
78 : };
79 :
80 : /* Implementation file */
81 : NS_IMPL_ISUPPORTS(nsWebBrowserChromeFocus, nsIWebBrowserChromeFocus)
82 :
83 : nsWebBrowserChromeFocus::nsWebBrowserChromeFocus()
84 : {
85 : /* member initializers and constructor code */
86 : }
87 :
88 : nsWebBrowserChromeFocus::~nsWebBrowserChromeFocus()
89 : {
90 : /* destructor code */
91 : }
92 :
93 : /* void focusNextElement (in bool aForDocumentNavigation); */
94 : NS_IMETHODIMP nsWebBrowserChromeFocus::FocusNextElement(bool aForDocumentNavigation)
95 : {
96 : return NS_ERROR_NOT_IMPLEMENTED;
97 : }
98 :
99 : /* void focusPrevElement (in bool aForDocumentNavigation); */
100 : NS_IMETHODIMP nsWebBrowserChromeFocus::FocusPrevElement(bool aForDocumentNavigation)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* End of implementation class template. */
106 : #endif
107 :
108 :
109 : #endif /* __gen_nsIWebBrowserChromeFocus_h__ */
|