shdocvw: Added better GoHome stub implementation.
This commit is contained in:
parent
c6f8b27013
commit
72060f04fe
|
@ -134,8 +134,8 @@ static HRESULT WINAPI InternetExplorer_GoForward(IWebBrowser2 *iface)
|
||||||
static HRESULT WINAPI InternetExplorer_GoHome(IWebBrowser2 *iface)
|
static HRESULT WINAPI InternetExplorer_GoHome(IWebBrowser2 *iface)
|
||||||
{
|
{
|
||||||
InternetExplorer *This = WEBBROWSER_THIS(iface);
|
InternetExplorer *This = WEBBROWSER_THIS(iface);
|
||||||
FIXME("(%p)\n", This);
|
TRACE("(%p)\n", This);
|
||||||
return E_NOTIMPL;
|
return go_home(&This->doc_host);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI InternetExplorer_GoSearch(IWebBrowser2 *iface)
|
static HRESULT WINAPI InternetExplorer_GoSearch(IWebBrowser2 *iface)
|
||||||
|
|
|
@ -610,6 +610,15 @@ static HRESULT navigate_hlink(DocHost *This, IMoniker *mon, IBindCtx *bindctx,
|
||||||
return navigate(This, mon, 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)
|
#define HLINKFRAME_THIS(iface) DEFINE_THIS(WebBrowser, HlinkFrame, iface)
|
||||||
|
|
||||||
static HRESULT WINAPI HlinkFrame_QueryInterface(IHlinkFrame *iface, REFIID riid, void **ppv)
|
static HRESULT WINAPI HlinkFrame_QueryInterface(IHlinkFrame *iface, REFIID riid, void **ppv)
|
||||||
|
|
|
@ -195,6 +195,7 @@ void create_doc_view_hwnd(DocHost*);
|
||||||
void deactivate_document(DocHost*);
|
void deactivate_document(DocHost*);
|
||||||
void call_sink(ConnectionPoint*,DISPID,DISPPARAMS*);
|
void call_sink(ConnectionPoint*,DISPID,DISPPARAMS*);
|
||||||
HRESULT navigate_url(DocHost*,LPCWSTR,const VARIANT*,const VARIANT*,VARIANT*,VARIANT*);
|
HRESULT navigate_url(DocHost*,LPCWSTR,const VARIANT*,const VARIANT*,VARIANT*,VARIANT*);
|
||||||
|
HRESULT go_home(DocHost*);
|
||||||
|
|
||||||
HRESULT InternetExplorer_Create(IUnknown*,REFIID,void**);
|
HRESULT InternetExplorer_Create(IUnknown*,REFIID,void**);
|
||||||
void InternetExplorer_WebBrowser_Init(InternetExplorer*);
|
void InternetExplorer_WebBrowser_Init(InternetExplorer*);
|
||||||
|
|
|
@ -210,8 +210,8 @@ static HRESULT WINAPI WebBrowser_GoForward(IWebBrowser2 *iface)
|
||||||
static HRESULT WINAPI WebBrowser_GoHome(IWebBrowser2 *iface)
|
static HRESULT WINAPI WebBrowser_GoHome(IWebBrowser2 *iface)
|
||||||
{
|
{
|
||||||
WebBrowser *This = WEBBROWSER_THIS(iface);
|
WebBrowser *This = WEBBROWSER_THIS(iface);
|
||||||
FIXME("(%p)\n", This);
|
TRACE("(%p)\n", This);
|
||||||
return E_NOTIMPL;
|
return go_home(&This->doc_host);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI WebBrowser_GoSearch(IWebBrowser2 *iface)
|
static HRESULT WINAPI WebBrowser_GoSearch(IWebBrowser2 *iface)
|
||||||
|
|
Loading…
Reference in New Issue