diff --git a/embedding/browser/powerplant/source/CBrowserShell.cpp b/embedding/browser/powerplant/source/CBrowserShell.cpp index a872086685b..f2eeb6864b7 100644 --- a/embedding/browser/powerplant/source/CBrowserShell.cpp +++ b/embedding/browser/powerplant/source/CBrowserShell.cpp @@ -36,6 +36,9 @@ #include "nsIInterfaceRequestor.h" #include "nsIWebProgressListener.h" +#include +#include + #include "ApplIDs.h" #include "CBrowserWindow.h" #include "CFindComponent.h" @@ -302,6 +305,16 @@ NS_IMETHODIMP CBrowserShell::SetTopLevelWindow(nsIWebBrowserChrome * aTopLevelWi } +NS_METHOD CBrowserShell::GetWebBrowser(nsIWebBrowser** aBrowser) +{ + NS_ENSURE_ARG_POINTER(aBrowser); + + *aBrowser = mWebBrowser; + NS_IF_ADDREF(*aBrowser); + return NS_OK; +} + + //***************************************************************************** //*** CBrowserShell: Navigation //***************************************************************************** diff --git a/embedding/browser/powerplant/source/CBrowserShell.h b/embedding/browser/powerplant/source/CBrowserShell.h index 4d2f255d5c4..88729fb6500 100644 --- a/embedding/browser/powerplant/source/CBrowserShell.h +++ b/embedding/browser/powerplant/source/CBrowserShell.h @@ -23,6 +23,12 @@ #ifndef __CBrowserShell__ #define __CBrowserShell__ +#include +#include +#include +#include +#include + #include "nsIWebBrowser.h" #include "nsIBaseWindow.h" #include "nsIWebNavigation.h" @@ -91,6 +97,7 @@ public: // CBrowserShell NS_METHOD SetTopLevelWindow(nsIWebBrowserChrome * aTopLevelWindow); + NS_METHOD GetWebBrowser(nsIWebBrowser** aBrowser); Boolean CanGoBack(); Boolean CanGoForward();