ReactOS 0.4.15-dev-7958-gcd0bb1a
htmlarea.c File Reference
#include "mshtml_private.h"
Include dependency graph for htmlarea.c:

Go to the source code of this file.

Classes

struct  HTMLAreaElement
 

Functions

static HTMLAreaElementimpl_from_IHTMLAreaElement (IHTMLAreaElement *iface)
 
static HRESULT WINAPI HTMLAreaElement_QueryInterface (IHTMLAreaElement *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLAreaElement_AddRef (IHTMLAreaElement *iface)
 
static ULONG WINAPI HTMLAreaElement_Release (IHTMLAreaElement *iface)
 
static HRESULT WINAPI HTMLAreaElement_GetTypeInfoCount (IHTMLAreaElement *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLAreaElement_GetTypeInfo (IHTMLAreaElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLAreaElement_GetIDsOfNames (IHTMLAreaElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLAreaElement_Invoke (IHTMLAreaElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLAreaElement_put_shape (IHTMLAreaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLAreaElement_get_shape (IHTMLAreaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLAreaElement_put_coords (IHTMLAreaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLAreaElement_get_coords (IHTMLAreaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLAreaElement_put_href (IHTMLAreaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLAreaElement_get_href (IHTMLAreaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLAreaElement_put_target (IHTMLAreaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLAreaElement_get_target (IHTMLAreaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLAreaElement_put_alt (IHTMLAreaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLAreaElement_get_alt (IHTMLAreaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLAreaElement_put_noHref (IHTMLAreaElement *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLAreaElement_get_noHref (IHTMLAreaElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLAreaElement_put_host (IHTMLAreaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLAreaElement_get_host (IHTMLAreaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLAreaElement_put_hostname (IHTMLAreaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLAreaElement_get_hostname (IHTMLAreaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLAreaElement_put_pathname (IHTMLAreaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLAreaElement_get_pathname (IHTMLAreaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLAreaElement_put_port (IHTMLAreaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLAreaElement_get_port (IHTMLAreaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLAreaElement_put_protocol (IHTMLAreaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLAreaElement_get_protocol (IHTMLAreaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLAreaElement_put_search (IHTMLAreaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLAreaElement_get_search (IHTMLAreaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLAreaElement_put_hash (IHTMLAreaElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLAreaElement_get_hash (IHTMLAreaElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLAreaElement_put_onblur (IHTMLAreaElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLAreaElement_get_onblur (IHTMLAreaElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLAreaElement_put_onfocus (IHTMLAreaElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLAreaElement_get_onfocus (IHTMLAreaElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLAreaElement_put_tabIndex (IHTMLAreaElement *iface, short v)
 
static HRESULT WINAPI HTMLAreaElement_get_tabIndex (IHTMLAreaElement *iface, short *p)
 
static HRESULT WINAPI HTMLAreaElement_focus (IHTMLAreaElement *iface)
 
static HRESULT WINAPI HTMLAreaElement_blur (IHTMLAreaElement *iface)
 
static HTMLAreaElementimpl_from_HTMLDOMNode (HTMLDOMNode *iface)
 
static HRESULT HTMLAreaElement_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
static HRESULT HTMLAreaElement_handle_event (HTMLDOMNode *iface, DWORD eid, nsIDOMEvent *event, BOOL *prevent_default)
 
HRESULT HTMLAreaElement_Create (HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
 

Variables

static const IHTMLAreaElementVtbl HTMLAreaElementVtbl
 
static const NodeImplVtbl HTMLAreaElementImplVtbl
 
static const tid_t HTMLAreaElement_iface_tids []
 
static dispex_static_data_t HTMLAreaElement_dispex
 

Function Documentation

◆ HTMLAreaElement_AddRef()

static ULONG WINAPI HTMLAreaElement_AddRef ( IHTMLAreaElement *  iface)
static

Definition at line 41 of file htmlarea.c.

42{
44
45 return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
46}
static HTMLAreaElement * impl_from_IHTMLAreaElement(IHTMLAreaElement *iface)
Definition: htmlarea.c:29

◆ HTMLAreaElement_blur()

static HRESULT WINAPI HTMLAreaElement_blur ( IHTMLAreaElement *  iface)
static

Definition at line 318 of file htmlarea.c.

319{
321 FIXME("(%p)\n", This);
322 return E_NOTIMPL;
323}
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLAreaElement_Create()

HRESULT HTMLAreaElement_Create ( HTMLDocumentNode doc,
nsIDOMHTMLElement nselem,
HTMLElement **  elem 
)

Definition at line 443 of file htmlarea.c.

444{
446 nsresult nsres;
447
448 ret = heap_alloc_zero(sizeof(HTMLAreaElement));
449 if(!ret)
450 return E_OUTOFMEMORY;
451
452 ret->IHTMLAreaElement_iface.lpVtbl = &HTMLAreaElementVtbl;
453 ret->element.node.vtbl = &HTMLAreaElementImplVtbl;
454
455 HTMLElement_Init(&ret->element, doc, nselem, &HTMLAreaElement_dispex);
456
457 nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLAreaElement, (void**)&ret->nsarea);
458 assert(nsres == NS_OK);
459
460 *elem = &ret->element;
461 return S_OK;
462}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define assert(x)
Definition: debug.h:53
static dispex_static_data_t HTMLAreaElement_dispex
Definition: htmlarea.c:436
static const IHTMLAreaElementVtbl HTMLAreaElementVtbl
Definition: htmlarea.c:325
static const NodeImplVtbl HTMLAreaElementImplVtbl
Definition: htmlarea.c:422
void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
Definition: htmlelem.c:4008
#define S_OK
Definition: intsafe.h:52
static size_t elem
Definition: string.c:68
#define NS_OK
int ret

◆ HTMLAreaElement_focus()

static HRESULT WINAPI HTMLAreaElement_focus ( IHTMLAreaElement *  iface)
static

Definition at line 311 of file htmlarea.c.

312{
314 FIXME("(%p)\n", This);
315 return E_NOTIMPL;
316}

◆ HTMLAreaElement_get_alt()

static HRESULT WINAPI HTMLAreaElement_get_alt ( IHTMLAreaElement *  iface,
BSTR p 
)
static

Definition at line 150 of file htmlarea.c.

151{
153 FIXME("(%p)->(%p)\n", This, p);
154 return E_NOTIMPL;
155}
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLAreaElement_get_coords()

static HRESULT WINAPI HTMLAreaElement_get_coords ( IHTMLAreaElement *  iface,
BSTR p 
)
static

Definition at line 108 of file htmlarea.c.

109{
111 FIXME("(%p)->(%p)\n", This, p);
112 return E_NOTIMPL;
113}

◆ HTMLAreaElement_get_hash()

static HRESULT WINAPI HTMLAreaElement_get_hash ( IHTMLAreaElement *  iface,
BSTR p 
)
static

Definition at line 262 of file htmlarea.c.

263{
265 FIXME("(%p)->(%p)\n", This, p);
266 return E_NOTIMPL;
267}

◆ HTMLAreaElement_get_host()

static HRESULT WINAPI HTMLAreaElement_get_host ( IHTMLAreaElement *  iface,
BSTR p 
)
static

Definition at line 178 of file htmlarea.c.

179{
181 FIXME("(%p)->(%p)\n", This, p);
182 return E_NOTIMPL;
183}

◆ HTMLAreaElement_get_hostname()

static HRESULT WINAPI HTMLAreaElement_get_hostname ( IHTMLAreaElement *  iface,
BSTR p 
)
static

Definition at line 192 of file htmlarea.c.

193{
195 FIXME("(%p)->(%p)\n", This, p);
196 return E_NOTIMPL;
197}

◆ HTMLAreaElement_get_href()

static HRESULT WINAPI HTMLAreaElement_get_href ( IHTMLAreaElement *  iface,
BSTR p 
)
static

Definition at line 122 of file htmlarea.c.

123{
125 FIXME("(%p)->(%p)\n", This, p);
126 return E_NOTIMPL;
127}

◆ HTMLAreaElement_get_noHref()

static HRESULT WINAPI HTMLAreaElement_get_noHref ( IHTMLAreaElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 164 of file htmlarea.c.

165{
167 FIXME("(%p)->(%p)\n", This, p);
168 return E_NOTIMPL;
169}

◆ HTMLAreaElement_get_onblur()

static HRESULT WINAPI HTMLAreaElement_get_onblur ( IHTMLAreaElement *  iface,
VARIANT p 
)
static

Definition at line 276 of file htmlarea.c.

277{
279 FIXME("(%p)->(%p)\n", This, p);
280 return E_NOTIMPL;
281}

◆ HTMLAreaElement_get_onfocus()

static HRESULT WINAPI HTMLAreaElement_get_onfocus ( IHTMLAreaElement *  iface,
VARIANT p 
)
static

Definition at line 290 of file htmlarea.c.

291{
293 FIXME("(%p)->(%p)\n", This, p);
294 return E_NOTIMPL;
295}

◆ HTMLAreaElement_get_pathname()

static HRESULT WINAPI HTMLAreaElement_get_pathname ( IHTMLAreaElement *  iface,
BSTR p 
)
static

Definition at line 206 of file htmlarea.c.

207{
209 FIXME("(%p)->(%p)\n", This, p);
210 return E_NOTIMPL;
211}

◆ HTMLAreaElement_get_port()

static HRESULT WINAPI HTMLAreaElement_get_port ( IHTMLAreaElement *  iface,
BSTR p 
)
static

Definition at line 220 of file htmlarea.c.

221{
223 FIXME("(%p)->(%p)\n", This, p);
224 return E_NOTIMPL;
225}

◆ HTMLAreaElement_get_protocol()

static HRESULT WINAPI HTMLAreaElement_get_protocol ( IHTMLAreaElement *  iface,
BSTR p 
)
static

Definition at line 234 of file htmlarea.c.

235{
237 FIXME("(%p)->(%p)\n", This, p);
238 return E_NOTIMPL;
239}

◆ HTMLAreaElement_get_search()

static HRESULT WINAPI HTMLAreaElement_get_search ( IHTMLAreaElement *  iface,
BSTR p 
)
static

Definition at line 248 of file htmlarea.c.

249{
251 FIXME("(%p)->(%p)\n", This, p);
252 return E_NOTIMPL;
253}

◆ HTMLAreaElement_get_shape()

static HRESULT WINAPI HTMLAreaElement_get_shape ( IHTMLAreaElement *  iface,
BSTR p 
)
static

Definition at line 94 of file htmlarea.c.

95{
97 FIXME("(%p)->(%p)\n", This, p);
98 return E_NOTIMPL;
99}

◆ HTMLAreaElement_get_tabIndex()

static HRESULT WINAPI HTMLAreaElement_get_tabIndex ( IHTMLAreaElement *  iface,
short p 
)
static

Definition at line 304 of file htmlarea.c.

305{
307 FIXME("(%p)->(%p)\n", This, p);
308 return E_NOTIMPL;
309}

◆ HTMLAreaElement_get_target()

static HRESULT WINAPI HTMLAreaElement_get_target ( IHTMLAreaElement *  iface,
BSTR p 
)
static

Definition at line 136 of file htmlarea.c.

137{
139 FIXME("(%p)->(%p)\n", This, p);
140 return E_NOTIMPL;
141}

◆ HTMLAreaElement_GetIDsOfNames()

static HRESULT WINAPI HTMLAreaElement_GetIDsOfNames ( IHTMLAreaElement *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 69 of file htmlarea.c.

72{
74 return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
75 cNames, lcid, rgDispId);
76}
REFIID riid
Definition: atlbase.h:39

◆ HTMLAreaElement_GetTypeInfo()

static HRESULT WINAPI HTMLAreaElement_GetTypeInfo ( IHTMLAreaElement *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 61 of file htmlarea.c.

63{
65 return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
66 ppTInfo);
67}

◆ HTMLAreaElement_GetTypeInfoCount()

static HRESULT WINAPI HTMLAreaElement_GetTypeInfoCount ( IHTMLAreaElement *  iface,
UINT pctinfo 
)
static

Definition at line 55 of file htmlarea.c.

56{
58 return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
59}

◆ HTMLAreaElement_handle_event()

static HRESULT HTMLAreaElement_handle_event ( HTMLDOMNode iface,
DWORD  eid,
nsIDOMEvent event,
BOOL prevent_default 
)
static

Definition at line 391 of file htmlarea.c.

392{
394 nsAString href_str, target_str;
395 nsresult nsres;
396
397 if(eid == EVENTID_CLICK) {
398 nsAString_Init(&href_str, NULL);
399 nsres = nsIDOMHTMLAreaElement_GetHref(This->nsarea, &href_str);
400 if (NS_FAILED(nsres)) {
401 ERR("Could not get area href: %08x\n", nsres);
402 goto fallback;
403 }
404
405 nsAString_Init(&target_str, NULL);
406 nsres = nsIDOMHTMLAreaElement_GetTarget(This->nsarea, &target_str);
407 if (NS_FAILED(nsres)) {
408 ERR("Could not get area target: %08x\n", nsres);
409 goto fallback;
410 }
411
412 return handle_link_click_event(&This->element, &href_str, &target_str, event, prevent_default);
413
414fallback:
415 nsAString_Finish(&href_str);
416 nsAString_Finish(&target_str);
417 }
418
419 return HTMLElement_handle_event(&This->element.node, eid, event, prevent_default);
420}
#define ERR(fmt,...)
Definition: debug.h:110
#define NULL
Definition: types.h:112
struct _cl_event * event
Definition: glext.h:7739
HRESULT handle_link_click_event(HTMLElement *element, nsAString *href_str, nsAString *target_str, nsIDOMEvent *event, BOOL *prevent_default)
Definition: htmlanchor.c:123
static HTMLAreaElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmlarea.c:369
HRESULT HTMLElement_handle_event(HTMLDOMNode *iface, DWORD eid, nsIDOMEvent *event, BOOL *prevent_default)
Definition: htmlelem.c:3815
@ EVENTID_CLICK
Definition: htmlevent.h:26
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
#define NS_FAILED(res)

◆ HTMLAreaElement_Invoke()

static HRESULT WINAPI HTMLAreaElement_Invoke ( IHTMLAreaElement *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 78 of file htmlarea.c.

81{
83 return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
84 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
85}
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:531

◆ HTMLAreaElement_put_alt()

static HRESULT WINAPI HTMLAreaElement_put_alt ( IHTMLAreaElement *  iface,
BSTR  v 
)
static

Definition at line 143 of file htmlarea.c.

144{
146 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
147 return E_NOTIMPL;
148}
const GLdouble * v
Definition: gl.h:2040
#define debugstr_w
Definition: kernel32.h:32

◆ HTMLAreaElement_put_coords()

static HRESULT WINAPI HTMLAreaElement_put_coords ( IHTMLAreaElement *  iface,
BSTR  v 
)
static

Definition at line 101 of file htmlarea.c.

102{
104 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
105 return E_NOTIMPL;
106}

◆ HTMLAreaElement_put_hash()

static HRESULT WINAPI HTMLAreaElement_put_hash ( IHTMLAreaElement *  iface,
BSTR  v 
)
static

Definition at line 255 of file htmlarea.c.

256{
258 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
259 return E_NOTIMPL;
260}

◆ HTMLAreaElement_put_host()

static HRESULT WINAPI HTMLAreaElement_put_host ( IHTMLAreaElement *  iface,
BSTR  v 
)
static

Definition at line 171 of file htmlarea.c.

172{
174 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
175 return E_NOTIMPL;
176}

◆ HTMLAreaElement_put_hostname()

static HRESULT WINAPI HTMLAreaElement_put_hostname ( IHTMLAreaElement *  iface,
BSTR  v 
)
static

Definition at line 185 of file htmlarea.c.

186{
188 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
189 return E_NOTIMPL;
190}

◆ HTMLAreaElement_put_href()

static HRESULT WINAPI HTMLAreaElement_put_href ( IHTMLAreaElement *  iface,
BSTR  v 
)
static

Definition at line 115 of file htmlarea.c.

116{
118 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
119 return E_NOTIMPL;
120}

◆ HTMLAreaElement_put_noHref()

static HRESULT WINAPI HTMLAreaElement_put_noHref ( IHTMLAreaElement *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 157 of file htmlarea.c.

158{
160 FIXME("(%p)->(%i)\n", This, v);
161 return E_NOTIMPL;
162}

◆ HTMLAreaElement_put_onblur()

static HRESULT WINAPI HTMLAreaElement_put_onblur ( IHTMLAreaElement *  iface,
VARIANT  v 
)
static

Definition at line 269 of file htmlarea.c.

270{
272 FIXME("(%p)->(%p)\n", This, &v);
273 return E_NOTIMPL;
274}

◆ HTMLAreaElement_put_onfocus()

static HRESULT WINAPI HTMLAreaElement_put_onfocus ( IHTMLAreaElement *  iface,
VARIANT  v 
)
static

Definition at line 283 of file htmlarea.c.

284{
286 FIXME("(%p)->(%p)\n", This, &v);
287 return E_NOTIMPL;
288}

◆ HTMLAreaElement_put_pathname()

static HRESULT WINAPI HTMLAreaElement_put_pathname ( IHTMLAreaElement *  iface,
BSTR  v 
)
static

Definition at line 199 of file htmlarea.c.

200{
202 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
203 return E_NOTIMPL;
204}

◆ HTMLAreaElement_put_port()

static HRESULT WINAPI HTMLAreaElement_put_port ( IHTMLAreaElement *  iface,
BSTR  v 
)
static

Definition at line 213 of file htmlarea.c.

214{
216 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
217 return E_NOTIMPL;
218}

◆ HTMLAreaElement_put_protocol()

static HRESULT WINAPI HTMLAreaElement_put_protocol ( IHTMLAreaElement *  iface,
BSTR  v 
)
static

Definition at line 227 of file htmlarea.c.

228{
230 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
231 return E_NOTIMPL;
232}

◆ HTMLAreaElement_put_search()

static HRESULT WINAPI HTMLAreaElement_put_search ( IHTMLAreaElement *  iface,
BSTR  v 
)
static

Definition at line 241 of file htmlarea.c.

242{
244 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
245 return E_NOTIMPL;
246}

◆ HTMLAreaElement_put_shape()

static HRESULT WINAPI HTMLAreaElement_put_shape ( IHTMLAreaElement *  iface,
BSTR  v 
)
static

Definition at line 87 of file htmlarea.c.

88{
90 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
91 return E_NOTIMPL;
92}

◆ HTMLAreaElement_put_tabIndex()

static HRESULT WINAPI HTMLAreaElement_put_tabIndex ( IHTMLAreaElement *  iface,
short  v 
)
static

Definition at line 297 of file htmlarea.c.

298{
300 FIXME("(%p)->(%i)\n", This, v);
301 return E_NOTIMPL;
302}

◆ HTMLAreaElement_put_target()

static HRESULT WINAPI HTMLAreaElement_put_target ( IHTMLAreaElement *  iface,
BSTR  v 
)
static

Definition at line 129 of file htmlarea.c.

130{
132 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
133 return E_NOTIMPL;
134}

◆ HTMLAreaElement_QI()

static HRESULT HTMLAreaElement_QI ( HTMLDOMNode iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 374 of file htmlarea.c.

375{
377
378 *ppv = NULL;
379
380 if(IsEqualGUID(&IID_IHTMLAreaElement, riid)) {
381 TRACE("(%p)->(IID_IHTMLAreaElement %p)\n", This, ppv);
382 *ppv = &This->IHTMLAreaElement_iface;
383 }else {
384 return HTMLElement_QI(&This->element.node, riid, ppv);
385 }
386
387 IUnknown_AddRef((IUnknown*)*ppv);
388 return S_OK;
389}
HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlelem.c:3738
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define TRACE(s)
Definition: solgame.cpp:4

◆ HTMLAreaElement_QueryInterface()

static HRESULT WINAPI HTMLAreaElement_QueryInterface ( IHTMLAreaElement *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 34 of file htmlarea.c.

35{
37
38 return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
39}

◆ HTMLAreaElement_Release()

static ULONG WINAPI HTMLAreaElement_Release ( IHTMLAreaElement *  iface)
static

Definition at line 48 of file htmlarea.c.

49{
51
52 return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
53}

◆ impl_from_HTMLDOMNode()

static HTMLAreaElement * impl_from_HTMLDOMNode ( HTMLDOMNode iface)
inlinestatic

Definition at line 369 of file htmlarea.c.

370{
371 return CONTAINING_RECORD(iface, HTMLAreaElement, element.node);
372}
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260

Referenced by HTMLAreaElement_handle_event(), and HTMLAreaElement_QI().

◆ impl_from_IHTMLAreaElement()

Variable Documentation

◆ HTMLAreaElement_dispex

dispex_static_data_t HTMLAreaElement_dispex
static
Initial value:
= {
DispHTMLAreaElement_tid,
}
static const tid_t HTMLAreaElement_iface_tids[]
Definition: htmlarea.c:431

Definition at line 436 of file htmlarea.c.

Referenced by HTMLAreaElement_Create().

◆ HTMLAreaElement_iface_tids

const tid_t HTMLAreaElement_iface_tids[]
static
Initial value:
= {
IHTMLAreaElement_tid,
0
}
#define HTMLELEMENT_TIDS

Definition at line 431 of file htmlarea.c.

◆ HTMLAreaElementImplVtbl

const NodeImplVtbl HTMLAreaElementImplVtbl
static
Initial value:
= {
}
static HRESULT HTMLAreaElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlarea.c:374
static HRESULT HTMLAreaElement_handle_event(HTMLDOMNode *iface, DWORD eid, nsIDOMEvent *event, BOOL *prevent_default)
Definition: htmlarea.c:391
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
Definition: htmlelem.c:3793
void HTMLElement_destructor(HTMLDOMNode *iface)
Definition: htmlelem.c:3764
const cpc_entry_t HTMLElement_cpc[]
Definition: htmlelem.c:3847
HRESULT HTMLElement_get_attr_col(HTMLDOMNode *iface, HTMLAttributeCollection **ac)
Definition: htmlelem.c:4827

Definition at line 422 of file htmlarea.c.

Referenced by HTMLAreaElement_Create().

◆ HTMLAreaElementVtbl

const IHTMLAreaElementVtbl HTMLAreaElementVtbl
static

Definition at line 325 of file htmlarea.c.

Referenced by HTMLAreaElement_Create().