From 8770fa62bea2f6cfe463a96e6f59bad733d600b1 Mon Sep 17 00:00:00 2001 From: "tbogard%aol.net" Date: Tue, 15 Feb 2000 04:28:20 +0000 Subject: [PATCH] Adding the new interface definitions for BrowserElement and IFrameElement. r=hyatt --- rdf/content/public/MANIFEST | 2 + rdf/content/public/Makefile.in | 2 + rdf/content/public/makefile.win | 2 + rdf/content/public/nsIDOMXULBrowserElement.h | 59 ++++++++++++++++++++ rdf/content/public/nsIDOMXULIFrameElement.h | 59 ++++++++++++++++++++ 5 files changed, 124 insertions(+) create mode 100644 rdf/content/public/nsIDOMXULBrowserElement.h create mode 100644 rdf/content/public/nsIDOMXULIFrameElement.h diff --git a/rdf/content/public/MANIFEST b/rdf/content/public/MANIFEST index 08682bb4a9b7..cea01a15cd2d 100644 --- a/rdf/content/public/MANIFEST +++ b/rdf/content/public/MANIFEST @@ -1,5 +1,7 @@ nsIDOMXULCommandDispatcher.h nsIDOMXULDocument.h +nsIDOMXULIFrameElement.h +nsIDOMXULBrowserElement.h nsIDOMXULEditorElement.h nsIDOMXULElement.h nsIDOMXULPopupElement.h diff --git a/rdf/content/public/Makefile.in b/rdf/content/public/Makefile.in index 28b4d9814198..0fc3b04ea3a6 100644 --- a/rdf/content/public/Makefile.in +++ b/rdf/content/public/Makefile.in @@ -31,6 +31,8 @@ MODULE = rdf EXPORTS = \ nsIDOMXULCommandDispatcher.h \ nsIDOMXULDocument.h \ + nsIDOMXULIFrameElement.h \ + nsIDOMXULBrowserElement.h \ nsIDOMXULEditorElement.h \ nsIDOMXULElement.h \ nsIDOMXULPopupElement.h \ diff --git a/rdf/content/public/makefile.win b/rdf/content/public/makefile.win index 7f379ee92114..cb494a387c63 100644 --- a/rdf/content/public/makefile.win +++ b/rdf/content/public/makefile.win @@ -30,6 +30,8 @@ EXPORTS = \ nsIXULKeyListener.h \ nsIXULPopupListener.h \ nsIDOMXULDocument.h \ + nsIDOMXULIFrameElement.h \ + nsIDOMXULBrowserElement.h \ nsIDOMXULEditorElement.h \ nsIDOMXULElement.h \ nsIDOMXULPopupElement.h \ diff --git a/rdf/content/public/nsIDOMXULBrowserElement.h b/rdf/content/public/nsIDOMXULBrowserElement.h new file mode 100644 index 000000000000..075367d60f8c --- /dev/null +++ b/rdf/content/public/nsIDOMXULBrowserElement.h @@ -0,0 +1,59 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + * + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ +/* AUTO-GENERATED. DO NOT EDIT!!! */ + +#ifndef nsIDOMXULBrowserElement_h__ +#define nsIDOMXULBrowserElement_h__ + +#include "nsISupports.h" +#include "nsString.h" +#include "nsIScriptContext.h" +#include "nsIDOMXULElement.h" + +class nsIWebBrowser; + +#define NS_IDOMXULBROWSERELEMENT_IID \ + { 0xd31208d0, 0xe348, 0x11d3, \ + { 0xb0, 0x6b, 0x0, 0xa0, 0x24, 0xff, 0xc0, 0x8c } } + +class nsIDOMXULBrowserElement : public nsIDOMXULElement { +public: + static const nsIID& GetIID() { static nsIID iid = NS_IDOMXULBROWSERELEMENT_IID; return iid; } + + NS_IMETHOD GetWebBrowser(nsIWebBrowser** aWebBrowser)=0; +}; + + +#define NS_DECL_IDOMXULBROWSERELEMENT \ + NS_IMETHOD GetWebBrowser(nsIWebBrowser** aWebBrowser); \ + + + +#define NS_FORWARD_IDOMXULBROWSERELEMENT(_to) \ + NS_IMETHOD GetWebBrowser(nsIWebBrowser** aWebBrowser) { return _to GetWebBrowser(aWebBrowser); } \ + + +extern "C" NS_DOM nsresult NS_InitXULBrowserElementClass(nsIScriptContext *aContext, void **aPrototype); + +extern "C" NS_DOM nsresult NS_NewScriptXULBrowserElement(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn); + +#endif // nsIDOMXULBrowserElement_h__ diff --git a/rdf/content/public/nsIDOMXULIFrameElement.h b/rdf/content/public/nsIDOMXULIFrameElement.h new file mode 100644 index 000000000000..70b294e383ea --- /dev/null +++ b/rdf/content/public/nsIDOMXULIFrameElement.h @@ -0,0 +1,59 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + * + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ +/* AUTO-GENERATED. DO NOT EDIT!!! */ + +#ifndef nsIDOMXULIFrameElement_h__ +#define nsIDOMXULIFrameElement_h__ + +#include "nsISupports.h" +#include "nsString.h" +#include "nsIScriptContext.h" +#include "nsIDOMXULElement.h" + +class nsIDocShell; + +#define NS_IDOMXULIFRAMEELEMENT_IID \ + { 0xd31208d1, 0xe348, 0x11d3, \ + { 0xb0, 0x6b, 0x0, 0xa0, 0x24, 0xff, 0xc0, 0x8c } } + +class nsIDOMXULIFrameElement : public nsIDOMXULElement { +public: + static const nsIID& GetIID() { static nsIID iid = NS_IDOMXULIFRAMEELEMENT_IID; return iid; } + + NS_IMETHOD GetDocShell(nsIDocShell** aDocShell)=0; +}; + + +#define NS_DECL_IDOMXULIFRAMEELEMENT \ + NS_IMETHOD GetDocShell(nsIDocShell** aDocShell); \ + + + +#define NS_FORWARD_IDOMXULIFRAMEELEMENT(_to) \ + NS_IMETHOD GetDocShell(nsIDocShell** aDocShell) { return _to GetDocShell(aDocShell); } \ + + +extern "C" NS_DOM nsresult NS_InitXULIFrameElementClass(nsIScriptContext *aContext, void **aPrototype); + +extern "C" NS_DOM nsresult NS_NewScriptXULIFrameElement(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn); + +#endif // nsIDOMXULIFrameElement_h__