2006-04-19 20:33:32 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2006 Jacek Caban for CodeWeavers
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2006-04-19 20:33:32 +02:00
|
|
|
*/
|
|
|
|
|
2011-07-27 14:46:48 +02:00
|
|
|
#include "ieframe.h"
|
|
|
|
|
2006-04-19 20:33:32 +02:00
|
|
|
#include "wine/debug.h"
|
|
|
|
|
2011-07-29 12:18:33 +02:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(ieframe);
|
2006-04-19 20:33:32 +02:00
|
|
|
|
2010-11-13 17:47:19 +01:00
|
|
|
static inline InternetExplorer *impl_from_IWebBrowser2(IWebBrowser2 *iface)
|
|
|
|
{
|
2010-11-24 14:06:38 +01:00
|
|
|
return CONTAINING_RECORD(iface, InternetExplorer, IWebBrowser2_iface);
|
2010-11-13 17:47:19 +01:00
|
|
|
}
|
2006-04-19 20:33:32 +02:00
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_QueryInterface(IWebBrowser2 *iface, REFIID riid, LPVOID *ppv)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
|
|
|
|
*ppv = NULL;
|
|
|
|
|
|
|
|
if(IsEqualGUID(&IID_IUnknown, riid)) {
|
|
|
|
TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
|
2010-11-13 17:47:19 +01:00
|
|
|
*ppv = &This->IWebBrowser2_iface;
|
2006-04-19 20:33:32 +02:00
|
|
|
}else if(IsEqualGUID(&IID_IDispatch, riid)) {
|
|
|
|
TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
|
2010-11-13 17:47:19 +01:00
|
|
|
*ppv = &This->IWebBrowser2_iface;
|
2006-04-19 20:33:32 +02:00
|
|
|
}else if(IsEqualGUID(&IID_IWebBrowser, riid)) {
|
|
|
|
TRACE("(%p)->(IID_IWebBrowser %p)\n", This, ppv);
|
2010-11-13 17:47:19 +01:00
|
|
|
*ppv = &This->IWebBrowser2_iface;
|
2006-04-19 20:33:32 +02:00
|
|
|
}else if(IsEqualGUID(&IID_IWebBrowserApp, riid)) {
|
|
|
|
TRACE("(%p)->(IID_IWebBrowserApp %p)\n", This, ppv);
|
2010-11-13 17:47:19 +01:00
|
|
|
*ppv = &This->IWebBrowser2_iface;
|
2006-04-19 20:33:32 +02:00
|
|
|
}else if(IsEqualGUID(&IID_IWebBrowser2, riid)) {
|
|
|
|
TRACE("(%p)->(IID_IWebBrowser2 %p)\n", This, ppv);
|
2010-11-13 17:47:19 +01:00
|
|
|
*ppv = &This->IWebBrowser2_iface;
|
2006-05-17 18:27:23 +02:00
|
|
|
}else if(IsEqualGUID(&IID_IConnectionPointContainer, riid)) {
|
|
|
|
TRACE("(%p)->(IID_IConnectionPointContainer %p)\n", This, ppv);
|
2013-05-24 10:39:31 +02:00
|
|
|
*ppv = &This->doc_host.cps.IConnectionPointContainer_iface;
|
2013-05-10 10:42:20 +02:00
|
|
|
}else if(IsEqualGUID(&IID_IExternalConnection, riid)) {
|
|
|
|
TRACE("(%p)->(IID_IExternalConnection %p)\n", This, ppv);
|
|
|
|
*ppv = &This->IExternalConnection_iface;
|
2012-01-06 12:59:23 +01:00
|
|
|
}else if(IsEqualGUID(&IID_IServiceProvider, riid)) {
|
|
|
|
TRACE("(%p)->(IID_IServiceProvider %p)\n", This, ppv);
|
|
|
|
*ppv = &This->IServiceProvider_iface;
|
2010-07-27 18:15:38 +02:00
|
|
|
}else if(HlinkFrame_QI(&This->hlink_frame, riid, ppv)) {
|
|
|
|
return S_OK;
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if(*ppv) {
|
|
|
|
IUnknown_AddRef((IUnknown*)*ppv);
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
WARN("(%p)->(%s %p) interface not supported\n", This, debugstr_guid(riid), ppv);
|
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI InternetExplorer_AddRef(IWebBrowser2 *iface)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
LONG ref = InterlockedIncrement(&This->ref);
|
2022-02-11 08:39:53 +01:00
|
|
|
TRACE("(%p) ref=%ld\n", This, ref);
|
2006-04-19 20:33:32 +02:00
|
|
|
return ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI InternetExplorer_Release(IWebBrowser2 *iface)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
LONG ref = InterlockedDecrement(&This->ref);
|
|
|
|
|
2022-02-11 08:39:53 +01:00
|
|
|
TRACE("(%p) ref=%ld\n", This, ref);
|
2006-04-19 20:33:32 +02:00
|
|
|
|
|
|
|
if(!ref) {
|
2013-05-24 10:39:31 +02:00
|
|
|
deactivate_document(&This->doc_host);
|
|
|
|
DocHost_Release(&This->doc_host);
|
2011-01-07 19:03:23 +01:00
|
|
|
|
|
|
|
if(This->frame_hwnd)
|
|
|
|
DestroyWindow(This->frame_hwnd);
|
2011-01-07 19:07:05 +01:00
|
|
|
list_remove(&This->entry);
|
2007-11-28 00:09:35 +01:00
|
|
|
heap_free(This);
|
2011-01-07 19:03:23 +01:00
|
|
|
|
|
|
|
released_obj();
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_GetTypeInfoCount(IWebBrowser2 *iface, UINT *pctinfo)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2019-10-07 06:30:34 +02:00
|
|
|
|
|
|
|
TRACE("(%p)->(%p)\n", This, pctinfo);
|
|
|
|
|
|
|
|
*pctinfo = 1;
|
|
|
|
return S_OK;
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_GetTypeInfo(IWebBrowser2 *iface, UINT iTInfo, LCID lcid,
|
|
|
|
LPTYPEINFO *ppTInfo)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2019-10-07 06:30:34 +02:00
|
|
|
ITypeInfo *typeinfo;
|
|
|
|
HRESULT hres;
|
|
|
|
|
2022-02-11 08:39:53 +01:00
|
|
|
TRACE("(%p)->(%d %ld %p)\n", This, iTInfo, lcid, ppTInfo);
|
2019-10-07 06:30:34 +02:00
|
|
|
|
|
|
|
hres = get_typeinfo(IWebBrowser2_tid, &typeinfo);
|
|
|
|
if(FAILED(hres))
|
|
|
|
return hres;
|
|
|
|
|
|
|
|
ITypeInfo_AddRef(typeinfo);
|
|
|
|
*ppTInfo = typeinfo;
|
|
|
|
return S_OK;
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_GetIDsOfNames(IWebBrowser2 *iface, REFIID riid,
|
|
|
|
LPOLESTR *rgszNames, UINT cNames,
|
|
|
|
LCID lcid, DISPID *rgDispId)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2019-10-07 06:30:34 +02:00
|
|
|
ITypeInfo *typeinfo;
|
|
|
|
HRESULT hres;
|
|
|
|
|
2022-02-11 08:39:53 +01:00
|
|
|
TRACE("(%p)->(%s %p %d %ld %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
|
2019-10-07 06:30:34 +02:00
|
|
|
lcid, rgDispId);
|
|
|
|
|
|
|
|
hres = get_typeinfo(IWebBrowser2_tid, &typeinfo);
|
|
|
|
if(FAILED(hres))
|
|
|
|
return hres;
|
|
|
|
|
|
|
|
return ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_Invoke(IWebBrowser2 *iface, DISPID dispIdMember,
|
|
|
|
REFIID riid, LCID lcid, WORD wFlags,
|
|
|
|
DISPPARAMS *pDispParams, VARIANT *pVarResult,
|
|
|
|
EXCEPINFO *pExepInfo, UINT *puArgErr)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2019-10-07 06:30:34 +02:00
|
|
|
ITypeInfo *typeinfo;
|
|
|
|
HRESULT hres;
|
|
|
|
|
2022-02-11 08:39:53 +01:00
|
|
|
TRACE("(%p)->(%ld %s %ld %08x %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
|
2006-04-19 20:33:32 +02:00
|
|
|
lcid, wFlags, pDispParams, pVarResult, pExepInfo, puArgErr);
|
2019-10-07 06:30:34 +02:00
|
|
|
|
|
|
|
hres = get_typeinfo(IWebBrowser2_tid, &typeinfo);
|
|
|
|
if(FAILED(hres))
|
|
|
|
return hres;
|
|
|
|
|
|
|
|
return ITypeInfo_Invoke(typeinfo, &This->IWebBrowser2_iface, dispIdMember, wFlags, pDispParams,
|
|
|
|
pVarResult, pExepInfo, puArgErr);
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_GoBack(IWebBrowser2 *iface)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2012-01-20 15:16:26 +01:00
|
|
|
TRACE("(%p)\n", This);
|
2013-05-24 10:39:31 +02:00
|
|
|
return go_back(&This->doc_host);
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_GoForward(IWebBrowser2 *iface)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2013-04-02 17:40:14 +02:00
|
|
|
TRACE("(%p)\n", This);
|
2013-05-24 10:39:31 +02:00
|
|
|
return go_forward(&This->doc_host);
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_GoHome(IWebBrowser2 *iface)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2007-09-09 20:13:31 +02:00
|
|
|
TRACE("(%p)\n", This);
|
2013-05-24 10:39:31 +02:00
|
|
|
return go_home(&This->doc_host);
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_GoSearch(IWebBrowser2 *iface)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)\n", This);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_Navigate(IWebBrowser2 *iface, BSTR szUrl,
|
|
|
|
VARIANT *Flags, VARIANT *TargetFrameName,
|
|
|
|
VARIANT *PostData, VARIANT *Headers)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-10-19 23:15:53 +02:00
|
|
|
|
2015-05-13 20:31:03 +02:00
|
|
|
TRACE("(%p)->(%s %s %s %s %s)\n", This, debugstr_w(szUrl), debugstr_variant(Flags),
|
|
|
|
debugstr_variant(TargetFrameName), debugstr_variant(PostData), debugstr_variant(Headers));
|
2006-10-19 23:15:53 +02:00
|
|
|
|
2013-05-24 10:39:31 +02:00
|
|
|
return navigate_url(&This->doc_host, szUrl, Flags, TargetFrameName, PostData, Headers);
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_Refresh(IWebBrowser2 *iface)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2012-11-12 12:59:20 +01:00
|
|
|
|
|
|
|
TRACE("(%p)\n", This);
|
|
|
|
|
2014-09-25 13:38:24 +02:00
|
|
|
return refresh_document(&This->doc_host, NULL);
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_Refresh2(IWebBrowser2 *iface, VARIANT *Level)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2014-09-25 13:38:24 +02:00
|
|
|
|
2015-05-13 20:31:03 +02:00
|
|
|
TRACE("(%p)->(%s)\n", This, debugstr_variant(Level));
|
2014-09-25 13:38:24 +02:00
|
|
|
|
|
|
|
return refresh_document(&This->doc_host, Level);
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_Stop(IWebBrowser2 *iface)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)\n", This);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_Application(IWebBrowser2 *iface, IDispatch **ppDisp)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, ppDisp);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_Parent(IWebBrowser2 *iface, IDispatch **ppDisp)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, ppDisp);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_Container(IWebBrowser2 *iface, IDispatch **ppDisp)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, ppDisp);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_Document(IWebBrowser2 *iface, IDispatch **ppDisp)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, ppDisp);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_TopLevelContainer(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, pBool);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_Type(IWebBrowser2 *iface, BSTR *Type)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, Type);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2009-03-12 23:04:35 +01:00
|
|
|
static HRESULT WINAPI InternetExplorer_get_Left(IWebBrowser2 *iface, LONG *pl)
|
2006-04-19 20:33:32 +02:00
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, pl);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2009-03-12 23:04:35 +01:00
|
|
|
static HRESULT WINAPI InternetExplorer_put_Left(IWebBrowser2 *iface, LONG Left)
|
2006-04-19 20:33:32 +02:00
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2022-02-11 08:39:53 +01:00
|
|
|
FIXME("(%p)->(%ld)\n", This, Left);
|
2006-04-19 20:33:32 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2009-03-12 23:04:35 +01:00
|
|
|
static HRESULT WINAPI InternetExplorer_get_Top(IWebBrowser2 *iface, LONG *pl)
|
2006-04-19 20:33:32 +02:00
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, pl);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2009-03-12 23:04:35 +01:00
|
|
|
static HRESULT WINAPI InternetExplorer_put_Top(IWebBrowser2 *iface, LONG Top)
|
2006-04-19 20:33:32 +02:00
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2022-02-11 08:39:53 +01:00
|
|
|
FIXME("(%p)->(%ld)\n", This, Top);
|
2006-04-19 20:33:32 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2009-03-12 23:04:35 +01:00
|
|
|
static HRESULT WINAPI InternetExplorer_get_Width(IWebBrowser2 *iface, LONG *pl)
|
2006-04-19 20:33:32 +02:00
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, pl);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2009-03-12 23:04:35 +01:00
|
|
|
static HRESULT WINAPI InternetExplorer_put_Width(IWebBrowser2 *iface, LONG Width)
|
2006-04-19 20:33:32 +02:00
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2022-02-11 08:39:53 +01:00
|
|
|
FIXME("(%p)->(%ld)\n", This, Width);
|
2006-04-19 20:33:32 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2009-03-12 23:04:35 +01:00
|
|
|
static HRESULT WINAPI InternetExplorer_get_Height(IWebBrowser2 *iface, LONG *pl)
|
2006-04-19 20:33:32 +02:00
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, pl);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2009-03-12 23:04:35 +01:00
|
|
|
static HRESULT WINAPI InternetExplorer_put_Height(IWebBrowser2 *iface, LONG Height)
|
2006-04-19 20:33:32 +02:00
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2022-02-11 08:39:53 +01:00
|
|
|
FIXME("(%p)->(%ld)\n", This, Height);
|
2006-04-19 20:33:32 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_LocationName(IWebBrowser2 *iface, BSTR *LocationName)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, LocationName);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_LocationURL(IWebBrowser2 *iface, BSTR *LocationURL)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2010-12-17 03:28:06 +01:00
|
|
|
|
|
|
|
TRACE("(%p)->(%p)\n", This, LocationURL);
|
|
|
|
|
2013-05-24 10:39:31 +02:00
|
|
|
return get_location_url(&This->doc_host, LocationURL);
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_Busy(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2019-10-09 04:43:10 +02:00
|
|
|
|
|
|
|
TRACE("(%p)->(%p)\n", This, pBool);
|
|
|
|
|
|
|
|
*pBool = This->doc_host.busy;
|
|
|
|
return S_OK;
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_Quit(IWebBrowser2 *iface)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)\n", This);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_ClientToWindow(IWebBrowser2 *iface, int *pcx, int *pcy)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p %p)\n", This, pcx, pcy);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_PutProperty(IWebBrowser2 *iface, BSTR szProperty, VARIANT vtValue)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2015-05-13 20:31:03 +02:00
|
|
|
FIXME("(%p)->(%s %s)\n", This, debugstr_w(szProperty), debugstr_variant(&vtValue));
|
2006-04-19 20:33:32 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_GetProperty(IWebBrowser2 *iface, BSTR szProperty, VARIANT *pvtValue)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%s %p)\n", This, debugstr_w(szProperty), pvtValue);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_Name(IWebBrowser2 *iface, BSTR *Name)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, Name);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2013-07-14 12:30:38 +02:00
|
|
|
static HRESULT WINAPI InternetExplorer_get_HWND(IWebBrowser2 *iface, SHANDLE_PTR *pHWND)
|
2006-04-19 20:33:32 +02:00
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2014-05-20 18:30:57 +02:00
|
|
|
|
|
|
|
TRACE("(%p)->(%p)\n", This, pHWND);
|
|
|
|
|
|
|
|
*pHWND = (SHANDLE_PTR)This->frame_hwnd;
|
|
|
|
return S_OK;
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_FullName(IWebBrowser2 *iface, BSTR *FullName)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, FullName);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_Path(IWebBrowser2 *iface, BSTR *Path)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, Path);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_Visible(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2011-01-07 19:05:16 +01:00
|
|
|
|
|
|
|
TRACE("(%p)->(%p)\n", This, pBool);
|
|
|
|
|
|
|
|
*pBool = IsWindowVisible(This->frame_hwnd) ? VARIANT_TRUE : VARIANT_FALSE;
|
|
|
|
return S_OK;
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_put_Visible(IWebBrowser2 *iface, VARIANT_BOOL Value)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:36:32 +02:00
|
|
|
TRACE("(%p)->(%x)\n", This, Value);
|
|
|
|
|
|
|
|
ShowWindow(This->frame_hwnd, Value ? SW_SHOW : SW_HIDE);
|
|
|
|
|
|
|
|
return S_OK;
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_StatusBar(IWebBrowser2 *iface, VARIANT_BOOL *pBool)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, pBool);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_put_StatusBar(IWebBrowser2 *iface, VARIANT_BOOL Value)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%x)\n", This, Value);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_StatusText(IWebBrowser2 *iface, BSTR *StatusText)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, StatusText);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_put_StatusText(IWebBrowser2 *iface, BSTR StatusText)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2010-07-29 13:45:17 +02:00
|
|
|
|
|
|
|
TRACE("(%p)->(%s)\n", This, debugstr_w(StatusText));
|
|
|
|
|
|
|
|
return update_ie_statustext(This, StatusText);
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_ToolBar(IWebBrowser2 *iface, int *Value)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, Value);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_put_ToolBar(IWebBrowser2 *iface, int Value)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%d)\n", This, Value);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_MenuBar(IWebBrowser2 *iface, VARIANT_BOOL *Value)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, Value);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_put_MenuBar(IWebBrowser2 *iface, VARIANT_BOOL Value)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2010-06-20 20:25:34 +02:00
|
|
|
HMENU menu = NULL;
|
|
|
|
|
|
|
|
TRACE("(%p)->(%x)\n", This, Value);
|
|
|
|
|
|
|
|
if(Value)
|
2010-07-29 12:04:46 +02:00
|
|
|
menu = This->menu;
|
2010-06-20 20:25:34 +02:00
|
|
|
|
|
|
|
if(!SetMenu(This->frame_hwnd, menu))
|
|
|
|
return HRESULT_FROM_WIN32(GetLastError());
|
|
|
|
|
|
|
|
return S_OK;
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_FullScreen(IWebBrowser2 *iface, VARIANT_BOOL *pbFullScreen)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, pbFullScreen);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_put_FullScreen(IWebBrowser2 *iface, VARIANT_BOOL bFullScreen)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%x)\n", This, bFullScreen);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_Navigate2(IWebBrowser2 *iface, VARIANT *URL, VARIANT *Flags,
|
|
|
|
VARIANT *TargetFrameName, VARIANT *PostData, VARIANT *Headers)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:40:56 +02:00
|
|
|
|
2015-05-13 20:31:03 +02:00
|
|
|
TRACE("(%p)->(%s %s %s %s %s)\n", This, debugstr_variant(URL), debugstr_variant(Flags),
|
|
|
|
debugstr_variant(TargetFrameName), debugstr_variant(PostData), debugstr_variant(Headers));
|
2006-04-19 20:40:56 +02:00
|
|
|
|
|
|
|
if(!URL)
|
|
|
|
return S_OK;
|
|
|
|
|
2006-10-19 23:14:00 +02:00
|
|
|
if(V_VT(URL) != VT_BSTR) {
|
|
|
|
FIXME("Unsupported V_VT(URL) %d\n", V_VT(URL));
|
2006-04-19 20:40:56 +02:00
|
|
|
return E_INVALIDARG;
|
|
|
|
}
|
|
|
|
|
2013-05-24 10:39:31 +02:00
|
|
|
return navigate_url(&This->doc_host, V_BSTR(URL), Flags, TargetFrameName, PostData, Headers);
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_QueryStatusWB(IWebBrowser2 *iface, OLECMDID cmdID, OLECMDF *pcmdf)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%d %p)\n", This, cmdID, pcmdf);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_ExecWB(IWebBrowser2 *iface, OLECMDID cmdID,
|
|
|
|
OLECMDEXECOPT cmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2015-05-13 20:31:03 +02:00
|
|
|
FIXME("(%p)->(%d %d %s %p)\n", This, cmdID, cmdexecopt, debugstr_variant(pvaIn), pvaOut);
|
2006-04-19 20:33:32 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_ShowBrowserBar(IWebBrowser2 *iface, VARIANT *pvaClsid,
|
|
|
|
VARIANT *pvarShow, VARIANT *pvarSize)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2015-05-13 20:31:03 +02:00
|
|
|
FIXME("(%p)->(%s %s %s)\n", This, debugstr_variant(pvaClsid), debugstr_variant(pvarShow),
|
|
|
|
debugstr_variant(pvarSize));
|
2006-04-19 20:33:32 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_ReadyState(IWebBrowser2 *iface, READYSTATE *lpReadyState)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, lpReadyState);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_Offline(IWebBrowser2 *iface, VARIANT_BOOL *pbOffline)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, pbOffline);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_put_Offline(IWebBrowser2 *iface, VARIANT_BOOL bOffline)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%x)\n", This, bOffline);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_Silent(IWebBrowser2 *iface, VARIANT_BOOL *pbSilent)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, pbSilent);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_put_Silent(IWebBrowser2 *iface, VARIANT_BOOL bSilent)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%x)\n", This, bSilent);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_RegisterAsBrowser(IWebBrowser2 *iface,
|
|
|
|
VARIANT_BOOL *pbRegister)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, pbRegister);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_put_RegisterAsBrowser(IWebBrowser2 *iface,
|
|
|
|
VARIANT_BOOL bRegister)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%x)\n", This, bRegister);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_RegisterAsDropTarget(IWebBrowser2 *iface,
|
|
|
|
VARIANT_BOOL *pbRegister)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, pbRegister);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_put_RegisterAsDropTarget(IWebBrowser2 *iface,
|
|
|
|
VARIANT_BOOL bRegister)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%x)\n", This, bRegister);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_TheaterMode(IWebBrowser2 *iface, VARIANT_BOOL *pbRegister)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, pbRegister);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_put_TheaterMode(IWebBrowser2 *iface, VARIANT_BOOL bRegister)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%x)\n", This, bRegister);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_AddressBar(IWebBrowser2 *iface, VARIANT_BOOL *Value)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, Value);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_put_AddressBar(IWebBrowser2 *iface, VARIANT_BOOL Value)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%x)\n", This, Value);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_get_Resizable(IWebBrowser2 *iface, VARIANT_BOOL *Value)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%p)\n", This, Value);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI InternetExplorer_put_Resizable(IWebBrowser2 *iface, VARIANT_BOOL Value)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
InternetExplorer *This = impl_from_IWebBrowser2(iface);
|
2006-04-19 20:33:32 +02:00
|
|
|
FIXME("(%p)->(%x)\n", This, Value);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const IWebBrowser2Vtbl InternetExplorerVtbl =
|
|
|
|
{
|
|
|
|
InternetExplorer_QueryInterface,
|
|
|
|
InternetExplorer_AddRef,
|
|
|
|
InternetExplorer_Release,
|
|
|
|
InternetExplorer_GetTypeInfoCount,
|
|
|
|
InternetExplorer_GetTypeInfo,
|
|
|
|
InternetExplorer_GetIDsOfNames,
|
|
|
|
InternetExplorer_Invoke,
|
|
|
|
InternetExplorer_GoBack,
|
|
|
|
InternetExplorer_GoForward,
|
|
|
|
InternetExplorer_GoHome,
|
|
|
|
InternetExplorer_GoSearch,
|
|
|
|
InternetExplorer_Navigate,
|
|
|
|
InternetExplorer_Refresh,
|
|
|
|
InternetExplorer_Refresh2,
|
|
|
|
InternetExplorer_Stop,
|
|
|
|
InternetExplorer_get_Application,
|
|
|
|
InternetExplorer_get_Parent,
|
|
|
|
InternetExplorer_get_Container,
|
|
|
|
InternetExplorer_get_Document,
|
|
|
|
InternetExplorer_get_TopLevelContainer,
|
|
|
|
InternetExplorer_get_Type,
|
|
|
|
InternetExplorer_get_Left,
|
|
|
|
InternetExplorer_put_Left,
|
|
|
|
InternetExplorer_get_Top,
|
|
|
|
InternetExplorer_put_Top,
|
|
|
|
InternetExplorer_get_Width,
|
|
|
|
InternetExplorer_put_Width,
|
|
|
|
InternetExplorer_get_Height,
|
|
|
|
InternetExplorer_put_Height,
|
|
|
|
InternetExplorer_get_LocationName,
|
|
|
|
InternetExplorer_get_LocationURL,
|
|
|
|
InternetExplorer_get_Busy,
|
|
|
|
InternetExplorer_Quit,
|
|
|
|
InternetExplorer_ClientToWindow,
|
|
|
|
InternetExplorer_PutProperty,
|
|
|
|
InternetExplorer_GetProperty,
|
|
|
|
InternetExplorer_get_Name,
|
|
|
|
InternetExplorer_get_HWND,
|
|
|
|
InternetExplorer_get_FullName,
|
|
|
|
InternetExplorer_get_Path,
|
|
|
|
InternetExplorer_get_Visible,
|
|
|
|
InternetExplorer_put_Visible,
|
|
|
|
InternetExplorer_get_StatusBar,
|
|
|
|
InternetExplorer_put_StatusBar,
|
|
|
|
InternetExplorer_get_StatusText,
|
|
|
|
InternetExplorer_put_StatusText,
|
|
|
|
InternetExplorer_get_ToolBar,
|
|
|
|
InternetExplorer_put_ToolBar,
|
|
|
|
InternetExplorer_get_MenuBar,
|
|
|
|
InternetExplorer_put_MenuBar,
|
|
|
|
InternetExplorer_get_FullScreen,
|
|
|
|
InternetExplorer_put_FullScreen,
|
|
|
|
InternetExplorer_Navigate2,
|
|
|
|
InternetExplorer_QueryStatusWB,
|
|
|
|
InternetExplorer_ExecWB,
|
|
|
|
InternetExplorer_ShowBrowserBar,
|
|
|
|
InternetExplorer_get_ReadyState,
|
|
|
|
InternetExplorer_get_Offline,
|
|
|
|
InternetExplorer_put_Offline,
|
|
|
|
InternetExplorer_get_Silent,
|
|
|
|
InternetExplorer_put_Silent,
|
|
|
|
InternetExplorer_get_RegisterAsBrowser,
|
|
|
|
InternetExplorer_put_RegisterAsBrowser,
|
|
|
|
InternetExplorer_get_RegisterAsDropTarget,
|
|
|
|
InternetExplorer_put_RegisterAsDropTarget,
|
|
|
|
InternetExplorer_get_TheaterMode,
|
|
|
|
InternetExplorer_put_TheaterMode,
|
|
|
|
InternetExplorer_get_AddressBar,
|
|
|
|
InternetExplorer_put_AddressBar,
|
|
|
|
InternetExplorer_get_Resizable,
|
|
|
|
InternetExplorer_put_Resizable
|
|
|
|
};
|
|
|
|
|
2013-05-10 10:42:20 +02:00
|
|
|
static inline InternetExplorer *impl_from_IExternalConnection(IExternalConnection *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, InternetExplorer, IExternalConnection_iface);
|
|
|
|
}
|
|
|
|
|
2013-05-24 10:39:20 +02:00
|
|
|
/*
|
|
|
|
* Document may keep references to InternetExplorer object causing circular references.
|
|
|
|
* We keep track of external references and release the document object when all
|
|
|
|
* external references are released. A visible main window is also considered as
|
|
|
|
* an external reference.
|
|
|
|
*/
|
|
|
|
DWORD release_extern_ref(InternetExplorer *This, BOOL last_closes)
|
|
|
|
{
|
|
|
|
LONG ref = InterlockedDecrement(&This->extern_ref);
|
|
|
|
|
2022-02-11 08:39:53 +01:00
|
|
|
TRACE("ref = %ld\n", ref);
|
2013-05-24 10:39:20 +02:00
|
|
|
|
|
|
|
if(ref)
|
|
|
|
return ref;
|
|
|
|
|
|
|
|
if(!last_closes) {
|
|
|
|
WARN("Last external connection released with FALSE last_closes.\n");
|
|
|
|
return ref;
|
|
|
|
}
|
|
|
|
|
2013-05-24 10:39:31 +02:00
|
|
|
deactivate_document(&This->doc_host);
|
2013-05-24 10:39:20 +02:00
|
|
|
return ref;
|
|
|
|
}
|
|
|
|
|
2013-05-10 10:42:20 +02:00
|
|
|
static HRESULT WINAPI ExternalConnection_QueryInterface(IExternalConnection *iface, REFIID riid, void **ppv)
|
|
|
|
{
|
|
|
|
InternetExplorer *This = impl_from_IExternalConnection(iface);
|
|
|
|
return IWebBrowser2_QueryInterface(&This->IWebBrowser2_iface, riid, ppv);
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI ExternalConnection_AddRef(IExternalConnection *iface)
|
|
|
|
{
|
|
|
|
InternetExplorer *This = impl_from_IExternalConnection(iface);
|
|
|
|
return IWebBrowser2_AddRef(&This->IWebBrowser2_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI ExternalConnection_Release(IExternalConnection *iface)
|
|
|
|
{
|
|
|
|
InternetExplorer *This = impl_from_IExternalConnection(iface);
|
|
|
|
return IWebBrowser2_Release(&This->IWebBrowser2_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static DWORD WINAPI ExternalConnection_AddConnection(IExternalConnection *iface, DWORD extconn, DWORD reserved)
|
|
|
|
{
|
|
|
|
InternetExplorer *This = impl_from_IExternalConnection(iface);
|
2013-05-24 10:39:20 +02:00
|
|
|
|
2022-02-11 08:39:53 +01:00
|
|
|
TRACE("(%p)->(%lx %lx)\n", This, extconn, reserved);
|
2013-05-24 10:39:20 +02:00
|
|
|
|
|
|
|
if(extconn != EXTCONN_STRONG)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
return InterlockedIncrement(&This->extern_ref);
|
2013-05-10 10:42:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static DWORD WINAPI ExternalConnection_ReleaseConnection(IExternalConnection *iface, DWORD extconn,
|
|
|
|
DWORD reserved, BOOL fLastReleaseCloses)
|
|
|
|
{
|
|
|
|
InternetExplorer *This = impl_from_IExternalConnection(iface);
|
2013-05-24 10:39:20 +02:00
|
|
|
|
2022-02-11 08:39:53 +01:00
|
|
|
TRACE("(%p)->(%lx %lx %x)\n", This, extconn, reserved, fLastReleaseCloses);
|
2013-05-24 10:39:20 +02:00
|
|
|
|
|
|
|
if(extconn != EXTCONN_STRONG)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
return release_extern_ref(This, fLastReleaseCloses);
|
2013-05-10 10:42:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static const IExternalConnectionVtbl ExternalConnectionVtbl = {
|
|
|
|
ExternalConnection_QueryInterface,
|
|
|
|
ExternalConnection_AddRef,
|
|
|
|
ExternalConnection_Release,
|
|
|
|
ExternalConnection_AddConnection,
|
|
|
|
ExternalConnection_ReleaseConnection
|
|
|
|
};
|
|
|
|
|
2012-01-06 12:59:23 +01:00
|
|
|
static inline InternetExplorer *impl_from_IServiceProvider(IServiceProvider *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, InternetExplorer, IServiceProvider_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI IEServiceProvider_QueryInterface(IServiceProvider *iface,
|
|
|
|
REFIID riid, LPVOID *ppv)
|
|
|
|
{
|
|
|
|
InternetExplorer *This = impl_from_IServiceProvider(iface);
|
2012-07-27 11:00:34 +02:00
|
|
|
return IWebBrowser2_QueryInterface(&This->IWebBrowser2_iface, riid, ppv);
|
2012-01-06 12:59:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI IEServiceProvider_AddRef(IServiceProvider *iface)
|
|
|
|
{
|
|
|
|
InternetExplorer *This = impl_from_IServiceProvider(iface);
|
2012-07-27 11:00:34 +02:00
|
|
|
return IWebBrowser2_AddRef(&This->IWebBrowser2_iface);
|
2012-01-06 12:59:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI IEServiceProvider_Release(IServiceProvider *iface)
|
|
|
|
{
|
|
|
|
InternetExplorer *This = impl_from_IServiceProvider(iface);
|
2012-07-27 11:00:34 +02:00
|
|
|
return IWebBrowser2_Release(&This->IWebBrowser2_iface);
|
2012-01-06 12:59:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI IEServiceProvider_QueryService(IServiceProvider *iface,
|
|
|
|
REFGUID guidService, REFIID riid, void **ppv)
|
|
|
|
{
|
|
|
|
InternetExplorer *This = impl_from_IServiceProvider(iface);
|
2012-01-06 12:59:58 +01:00
|
|
|
|
|
|
|
if(IsEqualGUID(&SID_SHTMLWindow, riid)) {
|
|
|
|
TRACE("(%p)->(SID_SHTMLWindow)\n", This);
|
2013-05-24 10:39:31 +02:00
|
|
|
return IHTMLWindow2_QueryInterface(&This->doc_host.html_window.IHTMLWindow2_iface, riid, ppv);
|
2012-01-06 12:59:58 +01:00
|
|
|
}
|
|
|
|
|
2012-01-06 12:59:23 +01:00
|
|
|
FIXME("(%p)->(%s, %s %p)\n", This, debugstr_guid(guidService), debugstr_guid(riid), ppv);
|
|
|
|
*ppv = NULL;
|
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const IServiceProviderVtbl ServiceProviderVtbl =
|
|
|
|
{
|
|
|
|
IEServiceProvider_QueryInterface,
|
|
|
|
IEServiceProvider_AddRef,
|
|
|
|
IEServiceProvider_Release,
|
|
|
|
IEServiceProvider_QueryService
|
|
|
|
};
|
|
|
|
|
2006-04-19 20:33:32 +02:00
|
|
|
void InternetExplorer_WebBrowser_Init(InternetExplorer *This)
|
|
|
|
{
|
2010-11-13 17:47:19 +01:00
|
|
|
This->IWebBrowser2_iface.lpVtbl = &InternetExplorerVtbl;
|
2013-05-10 10:42:20 +02:00
|
|
|
This->IExternalConnection_iface.lpVtbl = &ExternalConnectionVtbl;
|
2012-01-06 12:59:23 +01:00
|
|
|
This->IServiceProvider_iface.lpVtbl = &ServiceProviderVtbl;
|
2006-04-19 20:33:32 +02:00
|
|
|
}
|