mshtml: Added IDispatchEx support to HTMLInputElement.

This commit is contained in:
Jacek Caban 2008-04-29 01:39:09 +02:00 committed by Alexandre Julliard
parent 1597967417
commit 7582518e18
3 changed files with 20 additions and 0 deletions

View File

@ -54,6 +54,7 @@ static REFIID tid_ids[] = {
&DIID_DispHTMLDocument,
&DIID_DispHTMLDOMTextNode,
&DIID_DispHTMLElementCollection,
&DIID_DispHTMLInputElement,
&DIID_DispHTMLUnknownElement,
&DIID_DispHTMLWindow2,
&IID_IHTMLDocument2,
@ -66,6 +67,7 @@ static REFIID tid_ids[] = {
&IID_IHTMLElement,
&IID_IHTMLElement2,
&IID_IHTMLElementCollection,
&IID_IHTMLInputElement,
&IID_IHTMLWindow2,
&IID_IHTMLWindow3,
&IID_IOmNavigator

View File

@ -1059,6 +1059,20 @@ static const NodeImplVtbl HTMLInputElementImplVtbl = {
HTMLInputElement_destructor
};
static dispex_static_data_t HTMLInputElement_dispex = {
NULL,
DispHTMLInputElement_tid,
NULL,
{
IHTMLDOMNode_tid,
IHTMLDOMNode2_tid,
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLInputElement_tid,
0
}
};
HTMLElement *HTMLInputElement_Create(nsIDOMHTMLElement *nselem)
{
HTMLInputElement *ret = heap_alloc_zero(sizeof(HTMLInputElement));
@ -1069,6 +1083,8 @@ HTMLElement *HTMLInputElement_Create(nsIDOMHTMLElement *nselem)
ret->lpHTMLInputElementVtbl = &HTMLInputElementVtbl;
ret->element.node.vtbl = &HTMLInputElementImplVtbl;
init_dispex(&ret->element.node.dispex, (IUnknown*)HTMLINPUT(ret), &HTMLInputElement_dispex);
nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLInputElement,
(void**)&ret->nsinput);
if(NS_FAILED(nsres))

View File

@ -64,6 +64,7 @@ typedef enum {
DispHTMLDocument_tid,
DispHTMLDOMTextNode_tid,
DispHTMLElementCollection_tid,
DispHTMLInputElement_tid,
DispHTMLUnknownElement_tid,
DispHTMLWindow2_tid,
IHTMLDocument2_tid,
@ -76,6 +77,7 @@ typedef enum {
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLElementCollection_tid,
IHTMLInputElement_tid,
IHTMLWindow2_tid,
IHTMLWindow3_tid,
IOmNavigator_tid,