Mercurial > projects > dwt-linux
diff dwt/internal/mozilla/nsIWindowWatcher.d @ 272:dd63eb078d7a
xpcom interfaces necessary for browser code -- source adapted from dxpcom project; these modules still need to be tested and then integrated into dwt browser.
author | John Reimer<terminal.node@gmail.com> |
---|---|
date | Fri, 18 Jul 2008 05:32:53 -0700 |
parents | |
children | 942da4b6558a |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dwt/internal/mozilla/nsIWindowWatcher.d Fri Jul 18 05:32:53 2008 -0700 @@ -0,0 +1,41 @@ +module dwt.internal.mozilla.nsIWindowWatcher; + +import dwt.internal.mozilla.Common; +import dwt.internal.mozilla.nsID; +import dwt.internal.mozilla.nsISupports; + +import dwt.internal.mozilla.nsIDOMWindow; +import dwt.internal.mozilla.nsIObserver; +import dwt.internal.mozilla.nsIPrompt; +import dwt.internal.mozilla.nsIAuthPrompt; +import dwt.internal.mozilla.nsISimpleEnumerator; +import dwt.internal.mozilla.nsIWebBrowserChrome; +import dwt.internal.mozilla.nsIWindowCreator; + +const char[] NS_IWINDOWWATCHER_IID_STR = "002286a8-494b-43b3-8ddd-49e3fc50622b"; + +const nsIID NS_IWINDOWWATCHER_IID= + {0x002286a8, 0x494b, 0x43b3, + [ 0x8d, 0xdd, 0x49, 0xe3, 0xfc, 0x50, 0x62, 0x2b ]}; + +extern(System) + +interface nsIWindowWatcher : nsISupports { + + static const char[] IID_STR = NS_IWINDOWWATCHER_IID_STR; + static const nsIID IID = NS_IWINDOWWATCHER_IID; + + nsresult OpenWindow(nsIDOMWindow aParent, char *aUrl, char *aName, char *aFeatures, nsISupports aArguments, nsIDOMWindow *_retval); + nsresult RegisterNotification(nsIObserver aObserver); + nsresult UnregisterNotification(nsIObserver aObserver); + nsresult GetWindowEnumerator(nsISimpleEnumerator *_retval); + nsresult GetNewPrompter(nsIDOMWindow aParent, nsIPrompt *_retval); + nsresult GetNewAuthPrompter(nsIDOMWindow aParent, nsIAuthPrompt *_retval); + nsresult SetWindowCreator(nsIWindowCreator creator); + nsresult GetChromeForWindow(nsIDOMWindow aWindow, nsIWebBrowserChrome *_retval); + nsresult GetWindowByName(PRUnichar *aTargetName, nsIDOMWindow aCurrentWindow, nsIDOMWindow *_retval); + nsresult GetActiveWindow(nsIDOMWindow *aActiveWindow); + nsresult SetActiveWindow(nsIDOMWindow aActiveWindow); + +} +