Skip to content

Commit

Permalink
Added getContentDocShell to allow access to the browser docShell.
Browse files Browse the repository at this point in the history
  • Loading branch information
tbogard%aol.net committed Apr 24, 2000
1 parent 9590b2c commit 4e41e11
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xpfe/browser/public/nsIBrowserInstance.idl
Expand Up @@ -25,6 +25,8 @@
#include "nsISupports.idl"
#include "domstubs.idl"

interface nsIDocShell;

[scriptable, uuid(8AF0FA40-598D-11d3-806A-00600811A9C3)]
interface nsIBrowserInstance : nsISupports {

Expand Down Expand Up @@ -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);
Expand Down
8 changes: 8 additions & 0 deletions xpfe/browser/src/nsBrowserInstance.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 4e41e11

Please sign in to comment.