Permalink
Browse files

Added getContentDocShell to allow access to the browser docShell.

  • Loading branch information...
1 parent 9590b2c commit 4e41e11bd7dad40e25101173f7cfca9194e46bfe tbogard%aol.net committed Apr 24, 2000
Showing with 11 additions and 0 deletions.
  1. +3 −0 xpfe/browser/public/nsIBrowserInstance.idl
  2. +8 −0 xpfe/browser/src/nsBrowserInstance.cpp
@@ -25,6 +25,8 @@
#include "nsISupports.idl"
#include "domstubs.idl"
+interface nsIDocShell;
+
[scriptable, uuid(8AF0FA40-598D-11d3-806A-00600811A9C3)]
interface nsIBrowserInstance : nsISupports {
@@ -54,6 +56,7 @@ interface nsIBrowserInstance : nsISupports {
// Infrastructure.
void init();
void setContentWindow( in nsIDOMWindow aWindow );
+ void getContentDocShell(out nsIDocShell aDocShell);
void setWebShellWindow( in nsIDOMWindow aWindow );
void setTextZoom( in float aTextZoom );
void SetDocumentCharset(in wstring charset);
@@ -930,7 +930,15 @@ nsBrowserInstance::SetContentWindow(nsIDOMWindow* aWin)
}
return NS_OK;
+}
+NS_IMETHODIMP
+nsBrowserInstance::GetContentDocShell(nsIDocShell** aDocShell)
+{
+ NS_ENSURE_ARG_POINTER(aDocShell);
+
+ *aDocShell = mContentAreaDocShell;
+ return NS_OK;
}
NS_IMETHODIMP

0 comments on commit 4e41e11

Please sign in to comment.