mshtml: Added IDispatchEx support to HTMLInputElement.
This commit is contained in:
parent
1597967417
commit
7582518e18
@ -54,6 +54,7 @@ static REFIID tid_ids[] = {
|
|||||||
&DIID_DispHTMLDocument,
|
&DIID_DispHTMLDocument,
|
||||||
&DIID_DispHTMLDOMTextNode,
|
&DIID_DispHTMLDOMTextNode,
|
||||||
&DIID_DispHTMLElementCollection,
|
&DIID_DispHTMLElementCollection,
|
||||||
|
&DIID_DispHTMLInputElement,
|
||||||
&DIID_DispHTMLUnknownElement,
|
&DIID_DispHTMLUnknownElement,
|
||||||
&DIID_DispHTMLWindow2,
|
&DIID_DispHTMLWindow2,
|
||||||
&IID_IHTMLDocument2,
|
&IID_IHTMLDocument2,
|
||||||
@ -66,6 +67,7 @@ static REFIID tid_ids[] = {
|
|||||||
&IID_IHTMLElement,
|
&IID_IHTMLElement,
|
||||||
&IID_IHTMLElement2,
|
&IID_IHTMLElement2,
|
||||||
&IID_IHTMLElementCollection,
|
&IID_IHTMLElementCollection,
|
||||||
|
&IID_IHTMLInputElement,
|
||||||
&IID_IHTMLWindow2,
|
&IID_IHTMLWindow2,
|
||||||
&IID_IHTMLWindow3,
|
&IID_IHTMLWindow3,
|
||||||
&IID_IOmNavigator
|
&IID_IOmNavigator
|
||||||
|
@ -1059,6 +1059,20 @@ static const NodeImplVtbl HTMLInputElementImplVtbl = {
|
|||||||
HTMLInputElement_destructor
|
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)
|
HTMLElement *HTMLInputElement_Create(nsIDOMHTMLElement *nselem)
|
||||||
{
|
{
|
||||||
HTMLInputElement *ret = heap_alloc_zero(sizeof(HTMLInputElement));
|
HTMLInputElement *ret = heap_alloc_zero(sizeof(HTMLInputElement));
|
||||||
@ -1069,6 +1083,8 @@ HTMLElement *HTMLInputElement_Create(nsIDOMHTMLElement *nselem)
|
|||||||
ret->lpHTMLInputElementVtbl = &HTMLInputElementVtbl;
|
ret->lpHTMLInputElementVtbl = &HTMLInputElementVtbl;
|
||||||
ret->element.node.vtbl = &HTMLInputElementImplVtbl;
|
ret->element.node.vtbl = &HTMLInputElementImplVtbl;
|
||||||
|
|
||||||
|
init_dispex(&ret->element.node.dispex, (IUnknown*)HTMLINPUT(ret), &HTMLInputElement_dispex);
|
||||||
|
|
||||||
nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLInputElement,
|
nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLInputElement,
|
||||||
(void**)&ret->nsinput);
|
(void**)&ret->nsinput);
|
||||||
if(NS_FAILED(nsres))
|
if(NS_FAILED(nsres))
|
||||||
|
@ -64,6 +64,7 @@ typedef enum {
|
|||||||
DispHTMLDocument_tid,
|
DispHTMLDocument_tid,
|
||||||
DispHTMLDOMTextNode_tid,
|
DispHTMLDOMTextNode_tid,
|
||||||
DispHTMLElementCollection_tid,
|
DispHTMLElementCollection_tid,
|
||||||
|
DispHTMLInputElement_tid,
|
||||||
DispHTMLUnknownElement_tid,
|
DispHTMLUnknownElement_tid,
|
||||||
DispHTMLWindow2_tid,
|
DispHTMLWindow2_tid,
|
||||||
IHTMLDocument2_tid,
|
IHTMLDocument2_tid,
|
||||||
@ -76,6 +77,7 @@ typedef enum {
|
|||||||
IHTMLElement_tid,
|
IHTMLElement_tid,
|
||||||
IHTMLElement2_tid,
|
IHTMLElement2_tid,
|
||||||
IHTMLElementCollection_tid,
|
IHTMLElementCollection_tid,
|
||||||
|
IHTMLInputElement_tid,
|
||||||
IHTMLWindow2_tid,
|
IHTMLWindow2_tid,
|
||||||
IHTMLWindow3_tid,
|
IHTMLWindow3_tid,
|
||||||
IOmNavigator_tid,
|
IOmNavigator_tid,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user