mshtml: Added IDispatchEx support to HTMLOptionElement.

This commit is contained in:
Jacek Caban 2008-04-29 01:39:38 +02:00 committed by Alexandre Julliard
parent 7582518e18
commit 928914c81e
4 changed files with 22 additions and 2 deletions

View File

@ -55,6 +55,7 @@ static REFIID tid_ids[] = {
&DIID_DispHTMLDOMTextNode,
&DIID_DispHTMLElementCollection,
&DIID_DispHTMLInputElement,
&DIID_DispHTMLOptionElement,
&DIID_DispHTMLUnknownElement,
&DIID_DispHTMLWindow2,
&IID_IHTMLDocument2,
@ -68,6 +69,7 @@ static REFIID tid_ids[] = {
&IID_IHTMLElement2,
&IID_IHTMLElementCollection,
&IID_IHTMLInputElement,
&IID_IHTMLOptionElement,
&IID_IHTMLWindow2,
&IID_IHTMLWindow3,
&IID_IOmNavigator

View File

@ -331,6 +331,20 @@ static const NodeImplVtbl HTMLOptionElementImplVtbl = {
HTMLOptionElement_destructor
};
static dispex_static_data_t HTMLOptionElement_dispex = {
NULL,
DispHTMLOptionElement_tid,
NULL,
{
IHTMLDOMNode_tid,
IHTMLDOMNode2_tid,
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLOptionElement_tid,
0
}
};
HTMLElement *HTMLOptionElement_Create(nsIDOMHTMLElement *nselem)
{
HTMLOptionElement *ret = heap_alloc_zero(sizeof(HTMLOptionElement));
@ -345,6 +359,8 @@ HTMLElement *HTMLOptionElement_Create(nsIDOMHTMLElement *nselem)
if(NS_FAILED(nsres))
ERR("Could not get nsIDOMHTMLOptionElement interface: %08x\n", nsres);
init_dispex(&ret->element.node.dispex, (IUnknown*)HTMLOPTION(ret), &HTMLOptionElement_dispex);
return &ret->element;
}

View File

@ -65,6 +65,7 @@ typedef enum {
DispHTMLDOMTextNode_tid,
DispHTMLElementCollection_tid,
DispHTMLInputElement_tid,
DispHTMLOptionElement_tid,
DispHTMLUnknownElement_tid,
DispHTMLWindow2_tid,
IHTMLDocument2_tid,
@ -78,6 +79,7 @@ typedef enum {
IHTMLElement2_tid,
IHTMLElementCollection_tid,
IHTMLInputElement_tid,
IHTMLOptionElement_tid,
IHTMLWindow2_tid,
IHTMLWindow3_tid,
IOmNavigator_tid,

View File

@ -221,10 +221,10 @@ static const elem_type_info_t elem_type_infos[] = {
{"TITLE", elem_iids, NULL},
{"BODY", body_iids, NULL},
{"A", anchor_iids, NULL},
{"INPUT", input_iids, NULL},
{"INPUT", input_iids, &DIID_DispHTMLInputElement},
{"SELECT", select_iids, NULL},
{"TEXTAREA", textarea_iids, NULL},
{"OPTION", option_iids, NULL},
{"OPTION", option_iids, &DIID_DispHTMLOptionElement},
{"STYLE", elem_iids, NULL},
{"BLOCKQUOTE",elem_iids, NULL},
{"P", elem_iids, NULL},