ieframe: Moved CUrlHistory implementation to ieframe.
This commit is contained in:
parent
6191469bc2
commit
a40345cf84
|
@ -4,6 +4,7 @@ IMPORTS = uuid urlmon shell32 ole32 advapi32
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
ieframe_main.c \
|
ieframe_main.c \
|
||||||
intshcut.c
|
intshcut.c \
|
||||||
|
urlhist.c
|
||||||
|
|
||||||
@MAKE_DLL_RULES@
|
@MAKE_DLL_RULES@
|
||||||
|
|
|
@ -32,7 +32,8 @@
|
||||||
|
|
||||||
#include "wine/unicode.h"
|
#include "wine/unicode.h"
|
||||||
|
|
||||||
HRESULT WINAPI InternetShortcut_Create(IClassFactory*,IUnknown*,REFIID,void**);
|
HRESULT WINAPI CUrlHistory_Create(IClassFactory*,IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
|
||||||
|
HRESULT WINAPI InternetShortcut_Create(IClassFactory*,IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
extern LONG module_ref DECLSPEC_HIDDEN;
|
extern LONG module_ref DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
#include "ieframe.h"
|
#include "ieframe.h"
|
||||||
|
|
||||||
|
#include "shlguid.h"
|
||||||
#include "isguids.h"
|
#include "isguids.h"
|
||||||
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
|
@ -75,6 +76,16 @@ static const IClassFactoryVtbl InternetShortcutFactoryVtbl = {
|
||||||
|
|
||||||
static IClassFactory InternetShortcutFactory = { &InternetShortcutFactoryVtbl };
|
static IClassFactory InternetShortcutFactory = { &InternetShortcutFactoryVtbl };
|
||||||
|
|
||||||
|
static const IClassFactoryVtbl CUrlHistoryFactoryVtbl = {
|
||||||
|
ClassFactory_QueryInterface,
|
||||||
|
ClassFactory_AddRef,
|
||||||
|
ClassFactory_Release,
|
||||||
|
CUrlHistory_Create,
|
||||||
|
ClassFactory_LockServer
|
||||||
|
};
|
||||||
|
|
||||||
|
static IClassFactory CUrlHistoryFactory = { &CUrlHistoryFactoryVtbl };
|
||||||
|
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
* DllMain (ieframe.@)
|
* DllMain (ieframe.@)
|
||||||
*/
|
*/
|
||||||
|
@ -104,6 +115,11 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
|
||||||
return IClassFactory_QueryInterface(&InternetShortcutFactory, riid, ppv);
|
return IClassFactory_QueryInterface(&InternetShortcutFactory, riid, ppv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(IsEqualGUID(&CLSID_CUrlHistory, rclsid)) {
|
||||||
|
TRACE("(CLSID_CUrlHistory %s %p)\n", debugstr_guid(riid), ppv);
|
||||||
|
return IClassFactory_QueryInterface(&CUrlHistoryFactory, riid, ppv);
|
||||||
|
}
|
||||||
|
|
||||||
FIXME("%s %s %p\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
|
FIXME("%s %s %p\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
|
||||||
return CLASS_E_CLASSNOTAVAILABLE;
|
return CLASS_E_CLASSNOTAVAILABLE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,10 +16,11 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "wine/debug.h"
|
#include "ieframe.h"
|
||||||
#include "shdocvw.h"
|
|
||||||
#include "urlhist.h"
|
#include "urlhist.h"
|
||||||
|
|
||||||
|
#include "wine/debug.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
|
WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
|
||||||
|
|
||||||
static HRESULT WINAPI UrlHistoryStg_QueryInterface(IUrlHistoryStg2 *iface, REFIID riid, void **ppv)
|
static HRESULT WINAPI UrlHistoryStg_QueryInterface(IUrlHistoryStg2 *iface, REFIID riid, void **ppv)
|
||||||
|
@ -48,13 +49,13 @@ static HRESULT WINAPI UrlHistoryStg_QueryInterface(IUrlHistoryStg2 *iface, REFII
|
||||||
|
|
||||||
static ULONG WINAPI UrlHistoryStg_AddRef(IUrlHistoryStg2 *iface)
|
static ULONG WINAPI UrlHistoryStg_AddRef(IUrlHistoryStg2 *iface)
|
||||||
{
|
{
|
||||||
SHDOCVW_LockModule();
|
lock_module();
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ULONG WINAPI UrlHistoryStg_Release(IUrlHistoryStg2 *iface)
|
static ULONG WINAPI UrlHistoryStg_Release(IUrlHistoryStg2 *iface)
|
||||||
{
|
{
|
||||||
SHDOCVW_UnlockModule();
|
unlock_module();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,7 +123,7 @@ static const IUrlHistoryStg2Vtbl UrlHistoryStg2Vtbl = {
|
||||||
|
|
||||||
static IUrlHistoryStg2 UrlHistoryStg2 = { &UrlHistoryStg2Vtbl };
|
static IUrlHistoryStg2 UrlHistoryStg2 = { &UrlHistoryStg2Vtbl };
|
||||||
|
|
||||||
HRESULT CUrlHistory_Create(IUnknown *pOuter, REFIID riid, void **ppv)
|
HRESULT WINAPI CUrlHistory_Create(IClassFactory *iface, IUnknown *pOuter, REFIID riid, void **ppv)
|
||||||
{
|
{
|
||||||
if(pOuter)
|
if(pOuter)
|
||||||
return CLASS_E_NOAGGREGATION;
|
return CLASS_E_NOAGGREGATION;
|
|
@ -20,7 +20,6 @@ C_SRCS = \
|
||||||
shellbrowser.c \
|
shellbrowser.c \
|
||||||
shlinstobj.c \
|
shlinstobj.c \
|
||||||
taskbarlist.c \
|
taskbarlist.c \
|
||||||
urlhist.c \
|
|
||||||
view.c \
|
view.c \
|
||||||
webbrowser.c
|
webbrowser.c
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
|
||||||
{
|
{
|
||||||
static IClassFactoryImpl WB1ClassFactory = {{&WBCF_Vtbl}, WebBrowserV1_Create};
|
static IClassFactoryImpl WB1ClassFactory = {{&WBCF_Vtbl}, WebBrowserV1_Create};
|
||||||
static IClassFactoryImpl WB2ClassFactory = {{&WBCF_Vtbl}, WebBrowserV2_Create};
|
static IClassFactoryImpl WB2ClassFactory = {{&WBCF_Vtbl}, WebBrowserV2_Create};
|
||||||
static IClassFactoryImpl CUHClassFactory = {{&WBCF_Vtbl}, CUrlHistory_Create};
|
|
||||||
static IClassFactoryImpl TBLClassFactory = {{&WBCF_Vtbl}, TaskbarList_Create};
|
static IClassFactoryImpl TBLClassFactory = {{&WBCF_Vtbl}, TaskbarList_Create};
|
||||||
|
|
||||||
TRACE("\n");
|
TRACE("\n");
|
||||||
|
@ -165,10 +164,8 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
|
||||||
if(IsEqualGUID(&CLSID_WebBrowser_V1, rclsid))
|
if(IsEqualGUID(&CLSID_WebBrowser_V1, rclsid))
|
||||||
return IClassFactory_QueryInterface(&WB1ClassFactory.IClassFactory_iface, riid, ppv);
|
return IClassFactory_QueryInterface(&WB1ClassFactory.IClassFactory_iface, riid, ppv);
|
||||||
|
|
||||||
if(IsEqualGUID(&CLSID_CUrlHistory, rclsid))
|
if(IsEqualGUID(&CLSID_InternetShortcut, rclsid)
|
||||||
return IClassFactory_QueryInterface(&CUHClassFactory.IClassFactory_iface, riid, ppv);
|
|| IsEqualGUID(&CLSID_CUrlHistory, rclsid))
|
||||||
|
|
||||||
if(IsEqualGUID(&CLSID_InternetShortcut, rclsid))
|
|
||||||
return get_ieframe_object(rclsid, riid, ppv);
|
return get_ieframe_object(rclsid, riid, ppv);
|
||||||
|
|
||||||
if(IsEqualGUID(&CLSID_TaskbarList, rclsid))
|
if(IsEqualGUID(&CLSID_TaskbarList, rclsid))
|
||||||
|
|
|
@ -258,7 +258,6 @@ void InternetExplorer_WebBrowser_Init(InternetExplorer*) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
void released_obj(void) DECLSPEC_HIDDEN;
|
void released_obj(void) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
HRESULT CUrlHistory_Create(IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
|
|
||||||
HRESULT TaskbarList_Create(IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
|
HRESULT TaskbarList_Create(IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
|
|
Loading…
Reference in New Issue