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/base/nsIWindowCreator.idl |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsIWindowCreator_h__ |
| 6 #define __gen_nsIWindowCreator_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 class nsIWebBrowserChrome; /* forward declaration */ |
| 18 |
| 19 |
| 20 /* starting interface: nsIWindowCreator */ |
| 21 #define NS_IWINDOWCREATOR_IID_STR "30465632-a777-44cc-90f9-8145475ef999" |
| 22 |
| 23 #define NS_IWINDOWCREATOR_IID \ |
| 24 {0x30465632, 0xa777, 0x44cc, \ |
| 25 { 0x90, 0xf9, 0x81, 0x45, 0x47, 0x5e, 0xf9, 0x99 }} |
| 26 |
| 27 class NS_NO_VTABLE nsIWindowCreator : public nsISupports { |
| 28 public: |
| 29 |
| 30 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWINDOWCREATOR_IID) |
| 31 |
| 32 /** Create a new window. Gecko will/may call this method, if made |
| 33 available to it, to create new windows. |
| 34 @param parent parent window, if any. null if not. the newly created |
| 35 window should be made a child/dependent window of |
| 36 the parent, if any (and if the concept applies |
| 37 to the underlying OS). |
| 38 @param chromeFlags chrome features from nsIWebBrowserChrome |
| 39 @return the new window |
| 40 */ |
| 41 /* nsIWebBrowserChrome createChromeWindow (in nsIWebBrowserChrome parent, in P
RUint32 chromeFlags); */ |
| 42 NS_IMETHOD CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlag
s, nsIWebBrowserChrome **_retval) = 0; |
| 43 |
| 44 }; |
| 45 |
| 46 /* Use this macro when declaring classes that implement this interface. */ |
| 47 #define NS_DECL_NSIWINDOWCREATOR \ |
| 48 NS_IMETHOD CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlag
s, nsIWebBrowserChrome **_retval); |
| 49 |
| 50 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 51 #define NS_FORWARD_NSIWINDOWCREATOR(_to) \ |
| 52 NS_IMETHOD CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlag
s, nsIWebBrowserChrome **_retval) { return _to CreateChromeWindow(parent, chrome
Flags, _retval); } |
| 53 |
| 54 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 55 #define NS_FORWARD_SAFE_NSIWINDOWCREATOR(_to) \ |
| 56 NS_IMETHOD CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlag
s, nsIWebBrowserChrome **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->C
reateChromeWindow(parent, chromeFlags, _retval); } |
| 57 |
| 58 #if 0 |
| 59 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 60 |
| 61 /* Header file */ |
| 62 class nsWindowCreator : public nsIWindowCreator |
| 63 { |
| 64 public: |
| 65 NS_DECL_ISUPPORTS |
| 66 NS_DECL_NSIWINDOWCREATOR |
| 67 |
| 68 nsWindowCreator(); |
| 69 |
| 70 private: |
| 71 ~nsWindowCreator(); |
| 72 |
| 73 protected: |
| 74 /* additional members */ |
| 75 }; |
| 76 |
| 77 /* Implementation file */ |
| 78 NS_IMPL_ISUPPORTS1(nsWindowCreator, nsIWindowCreator) |
| 79 |
| 80 nsWindowCreator::nsWindowCreator() |
| 81 { |
| 82 /* member initializers and constructor code */ |
| 83 } |
| 84 |
| 85 nsWindowCreator::~nsWindowCreator() |
| 86 { |
| 87 /* destructor code */ |
| 88 } |
| 89 |
| 90 /* nsIWebBrowserChrome createChromeWindow (in nsIWebBrowserChrome parent, in PRU
int32 chromeFlags); */ |
| 91 NS_IMETHODIMP nsWindowCreator::CreateChromeWindow(nsIWebBrowserChrome *parent, P
RUint32 chromeFlags, nsIWebBrowserChrome **_retval) |
| 92 { |
| 93 return NS_ERROR_NOT_IMPLEMENTED; |
| 94 } |
| 95 |
| 96 /* End of implementation class template. */ |
| 97 #endif |
| 98 |
| 99 // {30465632-A777-44cc-90F9-8145475EF999} |
| 100 #define NS_WINDOWCREATOR_IID \ |
| 101 {0x30465632, 0xa777, 0x44cc, {0x90, 0xf9, 0x81, 0x45, 0x47, 0x5e, 0xf9, 0x99}} |
| 102 |
| 103 #endif /* __gen_nsIWindowCreator_h__ */ |
OLD | NEW |