shdocvw: Move offline and silent variables to DocHost.

This commit is contained in:
Jacek Caban 2007-03-09 16:52:16 +01:00 committed by Alexandre Julliard
parent 207608c73e
commit 1f92fba5cc
3 changed files with 10 additions and 8 deletions

View File

@ -493,6 +493,9 @@ void DocHost_Init(DocHost *This, IDispatch *disp)
This->frame_hwnd = NULL;
This->url = NULL;
This->silent = VARIANT_FALSE;
This->offline = VARIANT_FALSE;
DocHost_ClientSite_Init(This);
DocHost_Frame_Init(This);

View File

@ -83,6 +83,9 @@ typedef struct {
LPOLESTR url;
VARIANT_BOOL silent;
VARIANT_BOOL offline;
ConnectionPointContainer cps;
} DocHost;
@ -126,8 +129,6 @@ struct WebBrowser {
VARIANT_BOOL address_bar;
VARIANT_BOOL status_bar;
VARIANT_BOOL tool_bar;
VARIANT_BOOL silent;
VARIANT_BOOL offline;
DocHost doc_host;
};

View File

@ -706,7 +706,7 @@ static HRESULT WINAPI WebBrowser_get_Offline(IWebBrowser2 *iface, VARIANT_BOOL *
TRACE("(%p)->(%p)\n", This, pbOffline);
*pbOffline = This->offline;
*pbOffline = This->doc_host.offline;
return S_OK;
}
@ -716,7 +716,7 @@ static HRESULT WINAPI WebBrowser_put_Offline(IWebBrowser2 *iface, VARIANT_BOOL b
TRACE("(%p)->(%x)\n", This, bOffline);
This->offline = bOffline ? VARIANT_TRUE : VARIANT_FALSE;
This->doc_host.offline = bOffline ? VARIANT_TRUE : VARIANT_FALSE;
return S_OK;
}
@ -726,7 +726,7 @@ static HRESULT WINAPI WebBrowser_get_Silent(IWebBrowser2 *iface, VARIANT_BOOL *p
TRACE("(%p)->(%p)\n", This, pbSilent);
*pbSilent = This->silent;
*pbSilent = This->doc_host.silent;
return S_OK;
}
@ -736,7 +736,7 @@ static HRESULT WINAPI WebBrowser_put_Silent(IWebBrowser2 *iface, VARIANT_BOOL bS
TRACE("(%p)->(%x)\n", This, bSilent);
This->silent = bSilent ? VARIANT_TRUE : VARIANT_FALSE;
This->doc_host.silent = bSilent ? VARIANT_TRUE : VARIANT_FALSE;
return S_OK;
}
@ -927,8 +927,6 @@ static HRESULT WebBrowser_Create(INT version, IUnknown *pOuter, REFIID riid, voi
ret->address_bar = VARIANT_TRUE;
ret->status_bar = VARIANT_TRUE;
ret->tool_bar = VARIANT_TRUE;
ret->silent = VARIANT_FALSE;
ret->offline = VARIANT_FALSE;
WebBrowser_OleObject_Init(ret);
WebBrowser_ViewObject_Init(ret);