ieframe: Added GoForward implementation.

oldstable
Jacek Caban 2013-04-02 17:40:14 +02:00 committed by Alexandre Julliard
parent 0f5badf44f
commit 0d30e51084
4 changed files with 15 additions and 4 deletions

View File

@ -149,8 +149,8 @@ static HRESULT WINAPI InternetExplorer_GoBack(IWebBrowser2 *iface)
static HRESULT WINAPI InternetExplorer_GoForward(IWebBrowser2 *iface)
{
InternetExplorer *This = impl_from_IWebBrowser2(iface);
FIXME("(%p)\n", This);
return E_NOTIMPL;
TRACE("(%p)\n", This);
return go_forward(&This->doc_host->doc_host);
}
static HRESULT WINAPI InternetExplorer_GoHome(IWebBrowser2 *iface)

View File

@ -269,6 +269,7 @@ void call_sink(ConnectionPoint*,DISPID,DISPPARAMS*) DECLSPEC_HIDDEN;
HRESULT navigate_url(DocHost*,LPCWSTR,const VARIANT*,const VARIANT*,VARIANT*,VARIANT*) DECLSPEC_HIDDEN;
HRESULT go_home(DocHost*) DECLSPEC_HIDDEN;
HRESULT go_back(DocHost*) DECLSPEC_HIDDEN;
HRESULT go_forward(DocHost*) DECLSPEC_HIDDEN;
HRESULT refresh_document(DocHost*) DECLSPEC_HIDDEN;
HRESULT get_location_url(DocHost*,BSTR*) DECLSPEC_HIDDEN;
HRESULT set_dochost_url(DocHost*,const WCHAR*) DECLSPEC_HIDDEN;

View File

@ -1099,6 +1099,16 @@ HRESULT go_back(DocHost *This)
return navigate_history(This, This->travellog.position-1);
}
HRESULT go_forward(DocHost *This)
{
if(This->travellog.position >= This->travellog.length) {
WARN("No history available\n");
return E_FAIL;
}
return navigate_history(This, This->travellog.position+1);
}
HRESULT get_location_url(DocHost *This, BSTR *ret)
{
FIXME("semi-stub\n");

View File

@ -259,8 +259,8 @@ static HRESULT WINAPI WebBrowser_GoBack(IWebBrowser2 *iface)
static HRESULT WINAPI WebBrowser_GoForward(IWebBrowser2 *iface)
{
WebBrowser *This = impl_from_IWebBrowser2(iface);
FIXME("(%p)\n", This);
return E_NOTIMPL;
TRACE("(%p)\n", This);
return go_forward(&This->doc_host);
}
static HRESULT WINAPI WebBrowser_GoHome(IWebBrowser2 *iface)