OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0
-Release/WINNT_5.2_Depend/mozilla/embedding/browser/webBrowser/nsIWebBrowserChro
meFocus.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 "d2206418-1dd1-11b2-8e55-acddcd2bcfb8" |
| 20 |
| 21 #define NS_IWEBBROWSERCHROMEFOCUS_IID \ |
| 22 {0xd2206418, 0x1dd1, 0x11b2, \ |
| 23 { 0x8e, 0x55, 0xac, 0xdd, 0xcd, 0x2b, 0xcf, 0xb8 }} |
| 24 |
| 25 /** |
| 26 * The nsIWebBrowserChromeFocus is implemented by the same object as the |
| 27 * nsIEmbeddingSiteWindow. It represents the focus up-calls from mozilla |
| 28 * to the embedding chrome. See mozilla bug #70224 for gratuitous info. |
| 29 * |
| 30 * @status FROZEN |
| 31 */ |
| 32 class NS_NO_VTABLE nsIWebBrowserChromeFocus : public nsISupports { |
| 33 public: |
| 34 |
| 35 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWEBBROWSERCHROMEFOCUS_IID) |
| 36 |
| 37 /** |
| 38 * Set the focus at the next focusable element in the chrome. |
| 39 */ |
| 40 /* void focusNextElement (); */ |
| 41 NS_IMETHOD FocusNextElement(void) = 0; |
| 42 |
| 43 /** |
| 44 * Set the focus at the previous focusable element in the chrome. |
| 45 */ |
| 46 /* void focusPrevElement (); */ |
| 47 NS_IMETHOD FocusPrevElement(void) = 0; |
| 48 |
| 49 }; |
| 50 |
| 51 /* Use this macro when declaring classes that implement this interface. */ |
| 52 #define NS_DECL_NSIWEBBROWSERCHROMEFOCUS \ |
| 53 NS_IMETHOD FocusNextElement(void); \ |
| 54 NS_IMETHOD FocusPrevElement(void); |
| 55 |
| 56 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 57 #define NS_FORWARD_NSIWEBBROWSERCHROMEFOCUS(_to) \ |
| 58 NS_IMETHOD FocusNextElement(void) { return _to FocusNextElement(); } \ |
| 59 NS_IMETHOD FocusPrevElement(void) { return _to FocusPrevElement(); } |
| 60 |
| 61 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 62 #define NS_FORWARD_SAFE_NSIWEBBROWSERCHROMEFOCUS(_to) \ |
| 63 NS_IMETHOD FocusNextElement(void) { return !_to ? NS_ERROR_NULL_POINTER : _to-
>FocusNextElement(); } \ |
| 64 NS_IMETHOD FocusPrevElement(void) { return !_to ? NS_ERROR_NULL_POINTER : _to-
>FocusPrevElement(); } |
| 65 |
| 66 #if 0 |
| 67 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 68 |
| 69 /* Header file */ |
| 70 class nsWebBrowserChromeFocus : public nsIWebBrowserChromeFocus |
| 71 { |
| 72 public: |
| 73 NS_DECL_ISUPPORTS |
| 74 NS_DECL_NSIWEBBROWSERCHROMEFOCUS |
| 75 |
| 76 nsWebBrowserChromeFocus(); |
| 77 |
| 78 private: |
| 79 ~nsWebBrowserChromeFocus(); |
| 80 |
| 81 protected: |
| 82 /* additional members */ |
| 83 }; |
| 84 |
| 85 /* Implementation file */ |
| 86 NS_IMPL_ISUPPORTS1(nsWebBrowserChromeFocus, nsIWebBrowserChromeFocus) |
| 87 |
| 88 nsWebBrowserChromeFocus::nsWebBrowserChromeFocus() |
| 89 { |
| 90 /* member initializers and constructor code */ |
| 91 } |
| 92 |
| 93 nsWebBrowserChromeFocus::~nsWebBrowserChromeFocus() |
| 94 { |
| 95 /* destructor code */ |
| 96 } |
| 97 |
| 98 /* void focusNextElement (); */ |
| 99 NS_IMETHODIMP nsWebBrowserChromeFocus::FocusNextElement() |
| 100 { |
| 101 return NS_ERROR_NOT_IMPLEMENTED; |
| 102 } |
| 103 |
| 104 /* void focusPrevElement (); */ |
| 105 NS_IMETHODIMP nsWebBrowserChromeFocus::FocusPrevElement() |
| 106 { |
| 107 return NS_ERROR_NOT_IMPLEMENTED; |
| 108 } |
| 109 |
| 110 /* End of implementation class template. */ |
| 111 #endif |
| 112 |
| 113 |
| 114 #endif /* __gen_nsIWebBrowserChromeFocus_h__ */ |
OLD | NEW |