Module: wine Branch: master Commit: 72060f04fe4b07adac00ce116a4b3f246c855c67 URL: http://source.winehq.org/git/wine.git/?a=commit;h=72060f04fe4b07adac00ce116a...
Author: Jacek Caban jacek@codeweavers.com Date: Sun Sep 9 20:13:31 2007 +0200
shdocvw: Added better GoHome stub implementation.
---
dlls/shdocvw/ie.c | 4 ++-- dlls/shdocvw/navigate.c | 9 +++++++++ dlls/shdocvw/shdocvw.h | 1 + dlls/shdocvw/webbrowser.c | 4 ++-- 4 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/dlls/shdocvw/ie.c b/dlls/shdocvw/ie.c index 4091323..7627691 100644 --- a/dlls/shdocvw/ie.c +++ b/dlls/shdocvw/ie.c @@ -134,8 +134,8 @@ static HRESULT WINAPI InternetExplorer_GoForward(IWebBrowser2 *iface) static HRESULT WINAPI InternetExplorer_GoHome(IWebBrowser2 *iface) { InternetExplorer *This = WEBBROWSER_THIS(iface); - FIXME("(%p)\n", This); - return E_NOTIMPL; + TRACE("(%p)\n", This); + return go_home(&This->doc_host); }
static HRESULT WINAPI InternetExplorer_GoSearch(IWebBrowser2 *iface) diff --git a/dlls/shdocvw/navigate.c b/dlls/shdocvw/navigate.c index 7249a85..ae6104b 100644 --- a/dlls/shdocvw/navigate.c +++ b/dlls/shdocvw/navigate.c @@ -610,6 +610,15 @@ static HRESULT navigate_hlink(DocHost *This, IMoniker *mon, IBindCtx *bindctx, return navigate(This, mon, bindctx); }
+HRESULT go_home(DocHost *This) +{ + static const WCHAR wszAboutBlank[] = {'a','b','o','u','t',':','b','l','a','n','k',0}; + + FIXME("stub\n"); + + return navigate_url(This, wszAboutBlank, NULL, NULL, NULL, NULL); +} + #define HLINKFRAME_THIS(iface) DEFINE_THIS(WebBrowser, HlinkFrame, iface)
static HRESULT WINAPI HlinkFrame_QueryInterface(IHlinkFrame *iface, REFIID riid, void **ppv) diff --git a/dlls/shdocvw/shdocvw.h b/dlls/shdocvw/shdocvw.h index c499a1d..0e2a739 100644 --- a/dlls/shdocvw/shdocvw.h +++ b/dlls/shdocvw/shdocvw.h @@ -195,6 +195,7 @@ void create_doc_view_hwnd(DocHost*); void deactivate_document(DocHost*); void call_sink(ConnectionPoint*,DISPID,DISPPARAMS*); HRESULT navigate_url(DocHost*,LPCWSTR,const VARIANT*,const VARIANT*,VARIANT*,VARIANT*); +HRESULT go_home(DocHost*);
HRESULT InternetExplorer_Create(IUnknown*,REFIID,void**); void InternetExplorer_WebBrowser_Init(InternetExplorer*); diff --git a/dlls/shdocvw/webbrowser.c b/dlls/shdocvw/webbrowser.c index f62df9c..ff7f699 100644 --- a/dlls/shdocvw/webbrowser.c +++ b/dlls/shdocvw/webbrowser.c @@ -210,8 +210,8 @@ static HRESULT WINAPI WebBrowser_GoForward(IWebBrowser2 *iface) static HRESULT WINAPI WebBrowser_GoHome(IWebBrowser2 *iface) { WebBrowser *This = WEBBROWSER_THIS(iface); - FIXME("(%p)\n", This); - return E_NOTIMPL; + TRACE("(%p)\n", This); + return go_home(&This->doc_host); }
static HRESULT WINAPI WebBrowser_GoSearch(IWebBrowser2 *iface)