Jacek Caban : mshtml: Added IProvideMultipleTypeInfo implementation for HTMLElement object.
Alexandre Julliard
julliard at winehq.org
Fri Apr 21 15:18:16 CDT 2017
Module: wine
Branch: master
Commit: 2b8b15c22e3f31d3dc6c478ef63a4e7682d1144e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2b8b15c22e3f31d3dc6c478ef63a4e7682d1144e
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri Apr 21 13:50:03 2017 +0200
mshtml: Added IProvideMultipleTypeInfo implementation for HTMLElement object.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mshtml/htmlelem.c | 71 ++++++++++++++++++++++++++++++++++++++++++++
dlls/mshtml/mshtml_private.h | 1 +
2 files changed, 72 insertions(+)
diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c
index 42674a3..c6632b1 100644
--- a/dlls/mshtml/htmlelem.c
+++ b/dlls/mshtml/htmlelem.c
@@ -4832,6 +4832,70 @@ static const IElementSelectorVtbl ElementSelectorVtbl = {
ElementSelector_querySelectorAll
};
+static inline HTMLElement *impl_from_IProvideMultipleClassInfo(IProvideMultipleClassInfo *iface)
+{
+ return CONTAINING_RECORD(iface, HTMLElement, IProvideMultipleClassInfo_iface);
+}
+
+static HRESULT WINAPI ProvideClassInfo_QueryInterface(IProvideMultipleClassInfo *iface,
+ REFIID riid, void **ppv)
+{
+ HTMLElement *This = impl_from_IProvideMultipleClassInfo(iface);
+ return IHTMLElement_QueryInterface(&This->IHTMLElement_iface, riid, ppv);
+}
+
+static ULONG WINAPI ProvideClassInfo_AddRef(IProvideMultipleClassInfo *iface)
+{
+ HTMLElement *This = impl_from_IProvideMultipleClassInfo(iface);
+ return IHTMLElement_AddRef(&This->IHTMLElement_iface);
+}
+
+static ULONG WINAPI ProvideClassInfo_Release(IProvideMultipleClassInfo *iface)
+{
+ HTMLElement *This = impl_from_IProvideMultipleClassInfo(iface);
+ return IHTMLElement_Release(&This->IHTMLElement_iface);
+}
+
+static HRESULT WINAPI ProvideClassInfo_GetClassInfo(IProvideMultipleClassInfo *iface, ITypeInfo **ppTI)
+{
+ HTMLElement *This = impl_from_IProvideMultipleClassInfo(iface);
+ FIXME("(%p)->(%p)\n", This, ppTI);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI ProvideClassInfo2_GetGUID(IProvideMultipleClassInfo *iface, DWORD dwGuidKind, GUID *pGUID)
+{
+ HTMLElement *This = impl_from_IProvideMultipleClassInfo(iface);
+ FIXME("(%p)->(%u %p)\n", This, dwGuidKind, pGUID);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI ProvideMultipleClassInfo_GetMultiTypeInfoCount(IProvideMultipleClassInfo *iface, ULONG *pcti)
+{
+ HTMLElement *This = impl_from_IProvideMultipleClassInfo(iface);
+ FIXME("(%p)->(%p)\n", This, pcti);
+ *pcti = 1;
+ return S_OK;
+}
+
+static HRESULT WINAPI ProvideMultipleClassInfo_GetInfoOfIndex(IProvideMultipleClassInfo *iface, ULONG iti,
+ DWORD dwFlags, ITypeInfo **pptiCoClass, DWORD *pdwTIFlags, ULONG *pcdispidReserved, IID *piidPrimary, IID *piidSource)
+{
+ HTMLElement *This = impl_from_IProvideMultipleClassInfo(iface);
+ FIXME("(%p)->(%u %x %p %p %p %p %p)\n", This, iti, dwFlags, pptiCoClass, pdwTIFlags, pcdispidReserved, piidPrimary, piidSource);
+ return E_NOTIMPL;
+}
+
+static const IProvideMultipleClassInfoVtbl ProvideMultipleClassInfoVtbl = {
+ ProvideClassInfo_QueryInterface,
+ ProvideClassInfo_AddRef,
+ ProvideClassInfo_Release,
+ ProvideClassInfo_GetClassInfo,
+ ProvideClassInfo2_GetGUID,
+ ProvideMultipleClassInfo_GetMultiTypeInfoCount,
+ ProvideMultipleClassInfo_GetInfoOfIndex
+};
+
static inline HTMLElement *impl_from_HTMLDOMNode(HTMLDOMNode *iface)
{
return CONTAINING_RECORD(iface, HTMLElement, node);
@@ -4861,6 +4925,12 @@ HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
*ppv = &This->IElementSelector_iface;
}else if(IsEqualGUID(&IID_IConnectionPointContainer, riid)) {
*ppv = &This->cp_container.IConnectionPointContainer_iface;
+ }else if(IsEqualGUID(&IID_IProvideClassInfo, riid)) {
+ *ppv = &This->IProvideMultipleClassInfo_iface;
+ }else if(IsEqualGUID(&IID_IProvideClassInfo2, riid)) {
+ *ppv = &This->IProvideMultipleClassInfo_iface;
+ }else if(IsEqualGUID(&IID_IProvideMultipleClassInfo, riid)) {
+ *ppv = &This->IProvideMultipleClassInfo_iface;
}else {
return HTMLDOMNode_QI(&This->node, riid, ppv);
}
@@ -5137,6 +5207,7 @@ void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElemen
This->IHTMLElement6_iface.lpVtbl = &HTMLElement6Vtbl;
This->IHTMLUniqueName_iface.lpVtbl = &HTMLUniqueNameVtbl;
This->IElementSelector_iface.lpVtbl = &ElementSelectorVtbl;
+ This->IProvideMultipleClassInfo_iface.lpVtbl = &ProvideMultipleClassInfoVtbl;
if(dispex_data && !dispex_data->vtbl)
dispex_data->vtbl = &HTMLElement_dispex_vtbl;
diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h
index e710a48..4a4bc7f 100644
--- a/dlls/mshtml/mshtml_private.h
+++ b/dlls/mshtml/mshtml_private.h
@@ -745,6 +745,7 @@ typedef struct {
IHTMLElement6 IHTMLElement6_iface;
IHTMLUniqueName IHTMLUniqueName_iface;
IElementSelector IElementSelector_iface;
+ IProvideMultipleClassInfo IProvideMultipleClassInfo_iface;
nsIDOMHTMLElement *nselem;
HTMLStyle *style;
More information about the wine-cvs
mailing list