Jacek Caban : mshtml: Added IDispatchEx support to HTMLGenericElement.
Alexandre Julliard
julliard at winehq.org
Fri Jun 20 06:22:04 CDT 2008
Module: wine
Branch: master
Commit: d0568d8c5bd3de7cbec2a06505303ae9e116c262
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d0568d8c5bd3de7cbec2a06505303ae9e116c262
Author: Jacek Caban <jacek at codeweavers.com>
Date: Thu Jun 19 16:15:37 2008 -0500
mshtml: Added IDispatchEx support to HTMLGenericElement.
---
dlls/mshtml/dispex.c | 2 ++
dlls/mshtml/htmlgeneric.c | 18 ++++++++++++++++++
dlls/mshtml/mshtml_private.h | 2 ++
3 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/dispex.c b/dlls/mshtml/dispex.c
index e308f3a..25f6214 100644
--- a/dlls/mshtml/dispex.c
+++ b/dlls/mshtml/dispex.c
@@ -70,6 +70,7 @@ static REFIID tid_ids[] = {
&DIID_DispHTMLDocument,
&DIID_DispHTMLDOMTextNode,
&DIID_DispHTMLElementCollection,
+ &DIID_DispHTMLGenericElement,
&DIID_DispHTMLImg,
&DIID_DispHTMLInputElement,
&DIID_DispHTMLOptionElement,
@@ -89,6 +90,7 @@ static REFIID tid_ids[] = {
&IID_IHTMLElement,
&IID_IHTMLElement2,
&IID_IHTMLElementCollection,
+ &IID_IHTMLGenericElement,
&IID_IHTMLImgElement,
&IID_IHTMLInputElement,
&IID_IHTMLOptionElement,
diff --git a/dlls/mshtml/htmlgeneric.c b/dlls/mshtml/htmlgeneric.c
index 71f434d..816c4ae 100644
--- a/dlls/mshtml/htmlgeneric.c
+++ b/dlls/mshtml/htmlgeneric.c
@@ -157,6 +157,23 @@ static const NodeImplVtbl HTMLGenericElementImplVtbl = {
HTMLGenericElement_destructor
};
+static const tid_t HTMLGenericElement_iface_tids[] = {
+ IHTMLDOMNode_tid,
+ IHTMLDOMNode2_tid,
+ IHTMLElement_tid,
+ IHTMLElement2_tid,
+ IHTMLElement2_tid,
+ IHTMLGenericElement_tid,
+ 0
+};
+
+static dispex_static_data_t HTMLGenericElement_dispex = {
+ NULL,
+ DispHTMLGenericElement_tid,
+ NULL,
+ HTMLGenericElement_iface_tids
+};
+
HTMLElement *HTMLGenericElement_Create(nsIDOMHTMLElement *nselem)
{
HTMLGenericElement *ret;
@@ -166,6 +183,7 @@ HTMLElement *HTMLGenericElement_Create(nsIDOMHTMLElement *nselem)
ret->lpHTMLGenericElementVtbl = &HTMLGenericElementVtbl;
ret->element.node.vtbl = &HTMLGenericElementImplVtbl;
+ init_dispex(&ret->element.node.dispex, (IUnknown*)HTMLGENERIC(ret), &HTMLGenericElement_dispex);
HTMLElement_Init(&ret->element);
return &ret->element;
diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h
index e14d946..c42eb6a 100644
--- a/dlls/mshtml/mshtml_private.h
+++ b/dlls/mshtml/mshtml_private.h
@@ -66,6 +66,7 @@ typedef enum {
DispHTMLDocument_tid,
DispHTMLDOMTextNode_tid,
DispHTMLElementCollection_tid,
+ DispHTMLGenericElement_tid,
DispHTMLImg_tid,
DispHTMLInputElement_tid,
DispHTMLOptionElement_tid,
@@ -85,6 +86,7 @@ typedef enum {
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLElementCollection_tid,
+ IHTMLGenericElement_tid,
IHTMLImgElement_tid,
IHTMLInputElement_tid,
IHTMLOptionElement_tid,
More information about the wine-cvs
mailing list