49 return IHTMLDOMNode_QueryInterface(&
This->element.node.IHTMLDOMNode_iface,
riid,
ppv);
56 return IHTMLDOMNode_AddRef(&
This->element.node.IHTMLDOMNode_iface);
63 return IHTMLDOMNode_Release(&
This->element.node.IHTMLDOMNode_iface);
70 return IDispatchEx_GetTypeInfoCount(&
This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
78 return IDispatchEx_GetTypeInfo(&
This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
88 return IDispatchEx_GetIDsOfNames(&
This->element.node.event_target.dispex.IDispatchEx_iface,
riid, rgszNames,
89 cNames, lcid, rgDispId);
94 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
UINT *puArgErr)
98 return IDispatchEx_Invoke(&
This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember,
riid,
99 lcid,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
115 nsres = nsIDOMHTMLInputElement_SetType(
This->nsinput, &type_str);
118 ERR(
"SetType failed: %08x\n", nsres);
134 nsres = nsIDOMHTMLInputElement_GetType(
This->nsinput, &type_str);
147 nsres = nsIDOMHTMLInputElement_SetValue(
This->nsinput, &val_str);
150 ERR(
"SetValue failed: %08x\n", nsres);
164 nsres = nsIDOMHTMLInputElement_GetValue(
This->nsinput, &
value_str);
177 nsres = nsIDOMHTMLInputElement_SetName(
This->nsinput, &name_str);
180 ERR(
"SetName failed: %08x\n", nsres);
196 nsres = nsIDOMHTMLInputElement_GetName(
This->nsinput, &name_str);
221 nsres = nsIDOMHTMLInputElement_SetDisabled(
This->nsinput,
v != VARIANT_FALSE);
223 ERR(
"SetDisabled failed: %08x\n", nsres);
235 nsIDOMHTMLInputElement_GetDisabled(
This->nsinput, &disabled);
237 *
p = disabled ? VARIANT_TRUE : VARIANT_FALSE;
252 nsres = nsIDOMHTMLInputElement_GetForm(
This->nsinput, &nsform);
254 ERR(
"GetForm failed: %08x, nsform: %p\n", nsres, nsform);
259 nsres = nsIDOMHTMLFormElement_QueryInterface(nsform, &IID_nsIDOMNode, (
void**)&form_node);
260 nsIDOMHTMLFormElement_Release(nsform);
264 nsIDOMNode_Release(form_node);
268 hres = IHTMLDOMNode_QueryInterface(&
node->IHTMLDOMNode_iface, &IID_IHTMLElement, (
void**)
p);
284 nsres = nsIDOMHTMLInputElement_SetSize(
This->nsinput,
val);
286 ERR(
"Set Size(%u) failed: %08x\n",
val, nsres);
302 nsres = nsIDOMHTMLInputElement_GetSize(
This->nsinput, &
val);
304 ERR(
"Get Size failed: %08x\n", nsres);
318 nsres = nsIDOMHTMLInputElement_SetMaxLength(
This->nsinput,
v);
321 FIXME(
"SetMaxLength failed\n");
336 nsres = nsIDOMHTMLInputElement_GetMaxLength(
This->nsinput, &max_length);
340 *
p = max_length == -1 ?
INT_MAX : max_length;
351 nsres = nsIDOMHTMLInputElement_Select(
This->nsinput);
353 ERR(
"Select failed: %08x\n", nsres);
401 nsres = nsIDOMHTMLInputElement_SetDefaultValue(
This->nsinput, &nsstr);
404 ERR(
"SetValue failed: %08x\n", nsres);
420 nsres = nsIDOMHTMLInputElement_GetDefaultValue(
This->nsinput, &nsstr);
431 nsres = nsIDOMHTMLInputElement_SetReadOnly(
This->nsinput,
v != VARIANT_FALSE);
433 ERR(
"Set ReadOnly Failed: %08x\n", nsres);
447 nsres = nsIDOMHTMLInputElement_GetReadOnly(
This->nsinput, &
b);
449 ERR(
"Get ReadOnly Failed: %08x\n", nsres);
452 *
p =
b ? VARIANT_TRUE : VARIANT_FALSE;
484 nsres = nsIDOMHTMLInputElement_SetDefaultChecked(
This->nsinput,
v != VARIANT_FALSE);
486 ERR(
"SetDefaultChecked failed: %08x\n", nsres);
501 nsres = nsIDOMHTMLInputElement_GetDefaultChecked(
This->nsinput, &default_checked);
503 ERR(
"GetDefaultChecked failed: %08x\n", nsres);
507 *
p = default_checked ? VARIANT_TRUE : VARIANT_FALSE;
518 nsres = nsIDOMHTMLInputElement_SetChecked(
This->nsinput,
v != VARIANT_FALSE);
520 ERR(
"SetChecked failed: %08x\n", nsres);
535 nsres = nsIDOMHTMLInputElement_GetChecked(
This->nsinput, &checked);
537 ERR(
"GetChecked failed: %08x\n", nsres);
541 *
p = checked ? VARIANT_TRUE : VARIANT_FALSE;
542 TRACE(
"checked=%x\n", *
p);
611 nsres = nsIDOMHTMLInputElement_SetSrc(
This->nsinput, &nsstr);
614 ERR(
"SetSrc failed: %08x\n", nsres);
630 nsres = nsIDOMHTMLInputElement_GetSrc(
This->nsinput, &src_str);
632 ERR(
"GetSrc failed: %08x\n", nsres);
891 return IHTMLDOMNode_QueryInterface(&
This->element.node.IHTMLDOMNode_iface,
riid,
ppv);
898 return IHTMLDOMNode_AddRef(&
This->element.node.IHTMLDOMNode_iface);
905 return IHTMLDOMNode_Release(&
This->element.node.IHTMLDOMNode_iface);
911 return IDispatchEx_GetTypeInfoCount(&
This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
918 return IDispatchEx_GetTypeInfo(&
This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
926 return IDispatchEx_GetIDsOfNames(&
This->element.node.event_target.dispex.IDispatchEx_iface,
riid, rgszNames,
927 cNames, lcid, rgDispId);
932 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
UINT *puArgErr)
935 return IDispatchEx_Invoke(&
This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember,
riid,
936 lcid,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
945 return IHTMLInputElement_get_type(&
This->IHTMLInputElement_iface,
p);
954 return IHTMLInputElement_put_value(&
This->IHTMLInputElement_iface,
v);
963 return IHTMLInputElement_get_value(&
This->IHTMLInputElement_iface,
p);
972 return IHTMLInputElement_put_name(&
This->IHTMLInputElement_iface,
v);
981 return IHTMLInputElement_get_name(&
This->IHTMLInputElement_iface,
p);
1004 return IHTMLInputElement_put_disabled(&
This->IHTMLInputElement_iface,
v);
1013 return IHTMLInputElement_get_disabled(&
This->IHTMLInputElement_iface,
p);
1022 return IHTMLInputElement_get_form(&
This->IHTMLInputElement_iface,
p);
1031 return IHTMLInputElement_put_defaultValue(&
This->IHTMLInputElement_iface,
v);
1040 return IHTMLInputElement_get_defaultValue(&
This->IHTMLInputElement_iface,
p);
1049 return IHTMLInputElement_put_size(&
This->IHTMLInputElement_iface,
v);
1058 return IHTMLInputElement_get_size(&
This->IHTMLInputElement_iface,
p);
1067 return IHTMLInputElement_put_maxLength(&
This->IHTMLInputElement_iface,
v);
1076 return IHTMLInputElement_get_maxLength(&
This->IHTMLInputElement_iface,
p);
1085 return IHTMLInputElement_select(&
This->IHTMLInputElement_iface);
1094 return IHTMLInputElement_put_onchange(&
This->IHTMLInputElement_iface,
v);
1103 return IHTMLInputElement_get_onchange(&
This->IHTMLInputElement_iface,
p);
1112 return IHTMLInputElement_put_onselect(&
This->IHTMLInputElement_iface,
v);
1121 return IHTMLInputElement_get_onselect(&
This->IHTMLInputElement_iface,
p);
1130 return IHTMLInputElement_put_readOnly(&
This->IHTMLInputElement_iface,
v);
1139 return IHTMLInputElement_get_readOnly(&
This->IHTMLInputElement_iface,
p);
1148 return IHTMLInputElement_createTextRange(&
This->IHTMLInputElement_iface,
range);
1198 *
ppv = &
This->IHTMLInputElement_iface;
1201 *
ppv = &
This->IHTMLInputElement_iface;
1203 TRACE(
"(%p)->(IID_IHTMLInputElement %p)\n",
This,
ppv);
1204 *
ppv = &
This->IHTMLInputElement_iface;
1206 TRACE(
"(%p)->(IID_IHTMLInputTextElement %p)\n",
This,
ppv);
1207 *
ppv = &
This->IHTMLInputTextElement_iface;
1231 nsres = nsIDOMHTMLElement_Click(
This->element.nselem);
1233 ERR(
"Click failed: %08x\n", nsres);
1244 return IHTMLInputElement_put_disabled(&
This->IHTMLInputElement_iface,
v);
1250 return IHTMLInputElement_get_disabled(&
This->IHTMLInputElement_iface,
p);
1261 static const WCHAR buttonW[] = {
'b',
'u',
't',
't',
'o',
'n',0};
1262 static const WCHAR hiddenW[] = {
'h',
'i',
'd',
'd',
'e',
'n',0};
1263 static const WCHAR passwordW[] = {
'p',
'a',
's',
's',
'w',
'o',
'r',
'd',0};
1264 static const WCHAR resetW[] = {
'r',
'e',
's',
'e',
't',0};
1265 static const WCHAR submitW[] = {
's',
'u',
'b',
'm',
'i',
't',0};
1266 static const WCHAR textW[] = {
't',
'e',
'x',
't',0};
1269 nsres = nsIDOMHTMLInputElement_GetType(
This->nsinput, &nsstr);
1295 nsIDOMHTMLInputElement_Release(nsinput);
1322 IHTMLInputElement_tid,
1327 DispHTMLInputElement_tid,
1347 nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLInputElement, (
void**)&
ret->nsinput);
1370 return IHTMLDOMNode_QueryInterface(&
This->element.node.IHTMLDOMNode_iface,
riid,
ppv);
1377 return IHTMLDOMNode_AddRef(&
This->element.node.IHTMLDOMNode_iface);
1384 return IHTMLDOMNode_Release(&
This->element.node.IHTMLDOMNode_iface);
1391 return IDispatchEx_GetTypeInfoCount(&
This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
1399 return IDispatchEx_GetTypeInfo(&
This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
1407 return IDispatchEx_GetIDsOfNames(&
This->element.node.event_target.dispex.IDispatchEx_iface,
riid, rgszNames,
1408 cNames, lcid, rgDispId);
1413 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
UINT *puArgErr)
1417 return IDispatchEx_Invoke(&
This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember,
riid,
1418 lcid,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
1431 nsres = nsIDOMHTMLElement_SetAttribute(
This->element.nselem, &for_str, &val_str);
1435 ERR(
"SetAttribute failed: %08x\n", nsres);
1492 *
ppv = &
This->IHTMLLabelElement_iface;
1494 TRACE(
"(%p)->(IID_IHTMLLabelElement %p)\n",
This,
ppv);
1495 *
ppv = &
This->IHTMLLabelElement_iface;
1515 IHTMLLabelElement_tid,
1521 DispHTMLLabelElement_tid,
1530 ret = heap_alloc_zero(
sizeof(*
ret));
1560 return IHTMLDOMNode_QueryInterface(&
This->element.node.IHTMLDOMNode_iface,
riid,
ppv);
1567 return IHTMLDOMNode_AddRef(&
This->element.node.IHTMLDOMNode_iface);
1574 return IHTMLDOMNode_Release(&
This->element.node.IHTMLDOMNode_iface);
1581 return IDispatchEx_GetTypeInfoCount(&
This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
1589 return IDispatchEx_GetTypeInfo(&
This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
1597 return IDispatchEx_GetIDsOfNames(&
This->element.node.event_target.dispex.IDispatchEx_iface,
riid, rgszNames,
1598 cNames, lcid, rgDispId);
1603 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
UINT *puArgErr)
1607 return IDispatchEx_Invoke(&
This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember,
riid,
1608 lcid,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
1641 nsres = nsIDOMHTMLButtonElement_SetName(
This->nsbutton, &name_str);
1644 ERR(
"SetName failed: %08x\n", nsres);
1660 nsres = nsIDOMHTMLButtonElement_GetName(
This->nsbutton, &name_str);
1685 nsres = nsIDOMHTMLButtonElement_SetDisabled(
This->nsbutton, !!
v);
1687 ERR(
"SetDisabled failed: %08x\n", nsres);
1702 nsres = nsIDOMHTMLButtonElement_GetDisabled(
This->nsbutton, &disabled);
1704 ERR(
"GetDisabled failed: %08x\n", nsres);
1708 *
p = disabled ? VARIANT_TRUE : VARIANT_FALSE;
1760 *
ppv = &
This->IHTMLButtonElement_iface;
1762 TRACE(
"(%p)->(IID_IHTMLButtonElement %p)\n",
This,
ppv);
1763 *
ppv = &
This->IHTMLButtonElement_iface;
1775 return IHTMLButtonElement_put_disabled(&
This->IHTMLButtonElement_iface,
v);
1781 return IHTMLButtonElement_get_disabled(&
This->IHTMLButtonElement_iface,
p);
1801 if(
This->nsbutton) {
1805 nsIDOMHTMLButtonElement_Release(nsbutton);
1832 IHTMLButtonElement_tid,
1838 DispHTMLButtonElement_tid,
1848 ret = heap_alloc_zero(
sizeof(*
ret));
1857 nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLButtonElement, (
void**)&
ret->nsbutton);
GLuint GLuint GLsizei GLenum type
GLboolean GLboolean GLboolean b
static const WCHAR hiddenW[]
HRESULT elem_string_attr_getter(HTMLElement *elem, const WCHAR *name, BOOL use_null, BSTR *p)
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
void HTMLElement_destructor(HTMLDOMNode *iface)
HRESULT HTMLElement_handle_event(HTMLDOMNode *iface, DWORD eid, nsIDOMEvent *event, BOOL *prevent_default)
static const WCHAR buttonW[]
const cpc_entry_t HTMLElement_cpc[]
void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
HRESULT HTMLElement_get_attr_col(HTMLDOMNode *iface, HTMLAttributeCollection **ac)
HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
static const WCHAR submitW[]
static HRESULT get_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
static HRESULT set_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
HRESULT get_node(HTMLDocumentNode *This, nsIDOMNode *nsnode, BOOL create, HTMLDOMNode **ret)
static const WCHAR textW[]
static const char * debugstr_variant(const VARIANT *var)
static HMODULE MODULEINFO DWORD cb
static UNICODE_STRING value_str
static VARIANTARG static DISPID
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
HRESULT nsuri_to_url(LPCWSTR, BOOL, BSTR *) DECLSPEC_HIDDEN
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
static void node_release(HTMLDOMNode *node)
struct nsCycleCollectionTraversalCallback nsCycleCollectionTraversalCallback
#define NS_SUCCEEDED(res)
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
#define CTL_E_INVALIDPROPERTYVALUE
#define IsEqualGUID(rguid1, rguid2)
IHTMLLabelElement IHTMLLabelElement_iface
#define CONTAINING_RECORD(address, type, field)
_In_ DWORD _Out_ _In_ WORD wFlags