Commit aaf3202d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

ieframe: Added IHTMLWindow2 stub implementation.

mshtml/ieframe separation is ugly designed. ieframe needs its own IHTMLWindow2 wrapper-like implementation.
parent f31391c7
......@@ -10,6 +10,7 @@ C_SRCS = \
frame.c \
ie.c \
ieframe_main.c \
iehtmlwnd.c \
iexplore.c \
intshcut.c \
navigate.c \
......
......@@ -887,6 +887,7 @@ void DocHost_Init(DocHost *This, IDispatch *disp, const IDocHostContainerVtbl* c
DocHost_Frame_Init(This);
ConnectionPointContainer_Init(&This->cps, (IUnknown*)disp);
IEHTMLWindow_Init(This);
}
void DocHost_Release(DocHost *This)
......
......@@ -731,6 +731,12 @@ static HRESULT WINAPI IEServiceProvider_QueryService(IServiceProvider *iface,
REFGUID guidService, REFIID riid, void **ppv)
{
InternetExplorer *This = impl_from_IServiceProvider(iface);
if(IsEqualGUID(&SID_SHTMLWindow, riid)) {
TRACE("(%p)->(SID_SHTMLWindow)\n", This);
return IHTMLWindow2_QueryInterface(&This->doc_host->doc_host.html_window.IHTMLWindow2_iface, riid, ppv);
}
FIXME("(%p)->(%s, %s %p)\n", This, debugstr_guid(guidService), debugstr_guid(riid), ppv);
*ppv = NULL;
return E_NOINTERFACE;
......
......@@ -84,6 +84,11 @@ typedef struct {
DocHost *doc_host;
} ShellBrowser;
typedef struct {
IHTMLWindow2 IHTMLWindow2_iface;
DocHost *doc_host;
} IEHTMLWindow;
typedef struct _IDocHostContainerVtbl
{
ULONG (*addref)(DocHost*);
......@@ -139,6 +144,7 @@ struct DocHost {
ShellBrowser *browser_service;
ConnectionPointContainer cps;
IEHTMLWindow html_window;
};
struct WebBrowser {
......@@ -226,6 +232,8 @@ void DocHost_ClientSite_Release(DocHost*) DECLSPEC_HIDDEN;
void DocHost_Frame_Init(DocHost*) DECLSPEC_HIDDEN;
void release_dochost_client(DocHost*) DECLSPEC_HIDDEN;
void IEHTMLWindow_Init(DocHost*) DECLSPEC_HIDDEN;
void HlinkFrame_Init(HlinkFrame*,IUnknown*,DocHost*) DECLSPEC_HIDDEN;
BOOL HlinkFrame_QI(HlinkFrame*,REFIID,void**) DECLSPEC_HIDDEN;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment