ReactOS 0.4.15-dev-7681-g776c3a3
htmlobject.c
Go to the documentation of this file.
1/*
2 * Copyright 2010 Jacek Caban for CodeWeavers
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#include "mshtml_private.h"
20
21typedef struct {
23
24 IHTMLObjectElement IHTMLObjectElement_iface;
25 IHTMLObjectElement2 IHTMLObjectElement2_iface;
26
29
30static inline HTMLObjectElement *impl_from_IHTMLObjectElement(IHTMLObjectElement *iface)
31{
32 return CONTAINING_RECORD(iface, HTMLObjectElement, IHTMLObjectElement_iface);
33}
34
35static HRESULT WINAPI HTMLObjectElement_QueryInterface(IHTMLObjectElement *iface,
36 REFIID riid, void **ppv)
37{
39
40 return IHTMLDOMNode_QueryInterface(&This->plugin_container.element.node.IHTMLDOMNode_iface,
41 riid, ppv);
42}
43
44static ULONG WINAPI HTMLObjectElement_AddRef(IHTMLObjectElement *iface)
45{
47
48 return IHTMLDOMNode_AddRef(&This->plugin_container.element.node.IHTMLDOMNode_iface);
49}
50
51static ULONG WINAPI HTMLObjectElement_Release(IHTMLObjectElement *iface)
52{
54
55 return IHTMLDOMNode_Release(&This->plugin_container.element.node.IHTMLDOMNode_iface);
56}
57
58static HRESULT WINAPI HTMLObjectElement_GetTypeInfoCount(IHTMLObjectElement *iface, UINT *pctinfo)
59{
61 return IDispatchEx_GetTypeInfoCount(&This->plugin_container.element.node.event_target.dispex.IDispatchEx_iface,
62 pctinfo);
63}
64
65static HRESULT WINAPI HTMLObjectElement_GetTypeInfo(IHTMLObjectElement *iface, UINT iTInfo,
66 LCID lcid, ITypeInfo **ppTInfo)
67{
69 return IDispatchEx_GetTypeInfo(&This->plugin_container.element.node.event_target.dispex.IDispatchEx_iface,
70 iTInfo, lcid, ppTInfo);
71}
72
73static HRESULT WINAPI HTMLObjectElement_GetIDsOfNames(IHTMLObjectElement *iface, REFIID riid,
74 LPOLESTR *rgszNames, UINT cNames,
75 LCID lcid, DISPID *rgDispId)
76{
78 return IDispatchEx_GetIDsOfNames(&This->plugin_container.element.node.event_target.dispex.IDispatchEx_iface,
79 riid, rgszNames, cNames, lcid, rgDispId);
80}
81
82static HRESULT WINAPI HTMLObjectElement_Invoke(IHTMLObjectElement *iface, DISPID dispIdMember,
83 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
84 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
85{
87 return IDispatchEx_Invoke(&This->plugin_container.element.node.event_target.dispex.IDispatchEx_iface,
88 dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
89}
90
91static HRESULT WINAPI HTMLObjectElement_get_object(IHTMLObjectElement *iface, IDispatch **p)
92{
94
95 TRACE("(%p)->(%p)\n", This, p);
96
97 return get_plugin_disp(&This->plugin_container, p);
98}
99
100static HRESULT WINAPI HTMLObjectElement_get_classid(IHTMLObjectElement *iface, BSTR *p)
101{
103
104 TRACE("(%p)->(%p)\n", This, p);
105
106 return IHTMLObjectElement2_get_classid(&This->IHTMLObjectElement2_iface, p);
107}
108
109static HRESULT WINAPI HTMLObjectElement_get_data(IHTMLObjectElement *iface, BSTR *p)
110{
112
113 TRACE("(%p)->(%p)\n", This, p);
114
115 return IHTMLObjectElement2_get_data(&This->IHTMLObjectElement2_iface, p);
116}
117
118static HRESULT WINAPI HTMLObjectElement_put_recordset(IHTMLObjectElement *iface, IDispatch *v)
119{
121 FIXME("(%p)->(%p)\n", This, v);
122 return E_NOTIMPL;
123}
124
125static HRESULT WINAPI HTMLObjectElement_get_recordset(IHTMLObjectElement *iface, IDispatch **p)
126{
128 FIXME("(%p)->(%p)\n", This, p);
129 return E_NOTIMPL;
130}
131
132static HRESULT WINAPI HTMLObjectElement_put_align(IHTMLObjectElement *iface, BSTR v)
133{
135 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
136 return E_NOTIMPL;
137}
138
139static HRESULT WINAPI HTMLObjectElement_get_align(IHTMLObjectElement *iface, BSTR *p)
140{
142 FIXME("(%p)->(%p)\n", This, p);
143 return E_NOTIMPL;
144}
145
146static HRESULT WINAPI HTMLObjectElement_put_name(IHTMLObjectElement *iface, BSTR v)
147{
149 nsAString nsstr;
150 nsresult nsres;
151
152 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
153
154 nsAString_InitDepend(&nsstr, v);
155 nsres = nsIDOMHTMLObjectElement_SetName(This->nsobject, &nsstr);
156 nsAString_Finish(&nsstr);
157 return NS_SUCCEEDED(nsres) ? S_OK : E_FAIL;
158}
159
160static HRESULT WINAPI HTMLObjectElement_get_name(IHTMLObjectElement *iface, BSTR *p)
161{
163 nsAString nsstr;
164 nsresult nsres;
165
166 TRACE("(%p)->(%p)\n", This, p);
167
168 nsAString_Init(&nsstr, NULL);
169 nsres = nsIDOMHTMLObjectElement_GetName(This->nsobject, &nsstr);
170 return return_nsstr(nsres, &nsstr, p);
171}
172
173static HRESULT WINAPI HTMLObjectElement_put_codeBase(IHTMLObjectElement *iface, BSTR v)
174{
176 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
177 return E_NOTIMPL;
178}
179
180static HRESULT WINAPI HTMLObjectElement_get_codeBase(IHTMLObjectElement *iface, BSTR *p)
181{
183 FIXME("(%p)->(%p)\n", This, p);
184 return E_NOTIMPL;
185}
186
187static HRESULT WINAPI HTMLObjectElement_put_codeType(IHTMLObjectElement *iface, BSTR v)
188{
190 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
191 return E_NOTIMPL;
192}
193
194static HRESULT WINAPI HTMLObjectElement_get_codeType(IHTMLObjectElement *iface, BSTR *p)
195{
197 FIXME("(%p)->(%p)\n", This, p);
198 return E_NOTIMPL;
199}
200
201static HRESULT WINAPI HTMLObjectElement_put_code(IHTMLObjectElement *iface, BSTR v)
202{
204 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
205 return E_NOTIMPL;
206}
207
208static HRESULT WINAPI HTMLObjectElement_get_code(IHTMLObjectElement *iface, BSTR *p)
209{
211 FIXME("(%p)->(%p)\n", This, p);
212 return E_NOTIMPL;
213}
214
215static HRESULT WINAPI HTMLObjectElement_get_BaseHref(IHTMLObjectElement *iface, BSTR *p)
216{
218 FIXME("(%p)->(%p)\n", This, p);
219 return E_NOTIMPL;
220}
221
222static HRESULT WINAPI HTMLObjectElement_put_type(IHTMLObjectElement *iface, BSTR v)
223{
225 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
226 return E_NOTIMPL;
227}
228
229static HRESULT WINAPI HTMLObjectElement_get_type(IHTMLObjectElement *iface, BSTR *p)
230{
232 FIXME("(%p)->(%p)\n", This, p);
233 return E_NOTIMPL;
234}
235
236static HRESULT WINAPI HTMLObjectElement_get_form(IHTMLObjectElement *iface, IHTMLFormElement **p)
237{
239 FIXME("(%p)->(%p)\n", This, p);
240 return E_NOTIMPL;
241}
242
243static HRESULT WINAPI HTMLObjectElement_put_width(IHTMLObjectElement *iface, VARIANT v)
244{
246 nsAString width_str;
247 PRUnichar buf[12];
248 nsresult nsres;
249
250 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
251
252 switch(V_VT(&v)) {
253 case VT_I4: {
254 static const WCHAR formatW[] = {'%','d',0};
255 sprintfW(buf, formatW, V_I4(&v));
256 break;
257 }
258 default:
259 FIXME("unimplemented for arg %s\n", debugstr_variant(&v));
260 return E_NOTIMPL;
261 }
262
263 nsAString_InitDepend(&width_str, buf);
264 nsres = nsIDOMHTMLObjectElement_SetWidth(This->nsobject, &width_str);
265 nsAString_Finish(&width_str);
266 if(NS_FAILED(nsres)) {
267 FIXME("SetWidth failed: %08x\n", nsres);
268 return E_FAIL;
269 }
270
271 notif_container_change(&This->plugin_container, DISPID_UNKNOWN);
272 return S_OK;
273}
274
275static HRESULT WINAPI HTMLObjectElement_get_width(IHTMLObjectElement *iface, VARIANT *p)
276{
278 nsAString width_str;
279 nsresult nsres;
281
282 TRACE("(%p)->(%p)\n", This, p);
283
284 nsAString_Init(&width_str, NULL);
285 nsres = nsIDOMHTMLObjectElement_GetWidth(This->nsobject, &width_str);
286 if(NS_SUCCEEDED(nsres)) {
287 const PRUnichar *width;
288
289 nsAString_GetData(&width_str, &width);
290 V_VT(p) = VT_BSTR;
293 }else {
294 ERR("GetWidth failed: %08x\n", nsres);
295 hres = E_FAIL;
296 }
297
298 nsAString_Finish(&width_str);
299 return hres;
300}
301
302static HRESULT WINAPI HTMLObjectElement_put_height(IHTMLObjectElement *iface, VARIANT v)
303{
305 nsAString height_str;
306 PRUnichar buf[12];
307 nsresult nsres;
308
309 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
310
311 switch(V_VT(&v)) {
312 case VT_I4: {
313 static const WCHAR formatW[] = {'%','d',0};
314 sprintfW(buf, formatW, V_I4(&v));
315 break;
316 }
317 default:
318 FIXME("unimplemented for arg %s\n", debugstr_variant(&v));
319 return E_NOTIMPL;
320 }
321
322 nsAString_InitDepend(&height_str, buf);
323 nsres = nsIDOMHTMLObjectElement_SetHeight(This->nsobject, &height_str);
324 nsAString_Finish(&height_str);
325 if(NS_FAILED(nsres)) {
326 FIXME("SetHeight failed: %08x\n", nsres);
327 return E_FAIL;
328 }
329
330 notif_container_change(&This->plugin_container, DISPID_UNKNOWN);
331 return S_OK;
332}
333
334static HRESULT WINAPI HTMLObjectElement_get_height(IHTMLObjectElement *iface, VARIANT *p)
335{
337 nsAString height_str;
338 nsresult nsres;
340
341 TRACE("(%p)->(%p)\n", This, p);
342
343 nsAString_Init(&height_str, NULL);
344 nsres = nsIDOMHTMLObjectElement_GetHeight(This->nsobject, &height_str);
345 if(NS_SUCCEEDED(nsres)) {
346 const PRUnichar *height;
347
348 nsAString_GetData(&height_str, &height);
349 V_VT(p) = VT_BSTR;
352 }else {
353 ERR("GetHeight failed: %08x\n", nsres);
354 hres = E_FAIL;
355 }
356
357 nsAString_Finish(&height_str);
358 return hres;
359}
360
361static HRESULT WINAPI HTMLObjectElement_get_readyState(IHTMLObjectElement *iface, LONG *p)
362{
364 FIXME("(%p)->(%p)\n", This, p);
365 return E_NOTIMPL;
366}
367
369{
371 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
372 return E_NOTIMPL;
373}
374
376{
378 FIXME("(%p)->(%p)\n", This, p);
379 return E_NOTIMPL;
380}
381
382static HRESULT WINAPI HTMLObjectElement_put_onerror(IHTMLObjectElement *iface, VARIANT v)
383{
385 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
386 return E_NOTIMPL;
387}
388
389static HRESULT WINAPI HTMLObjectElement_get_onerror(IHTMLObjectElement *iface, VARIANT *p)
390{
392 FIXME("(%p)->(%p)\n", This, p);
393 return E_NOTIMPL;
394}
395
396static HRESULT WINAPI HTMLObjectElement_put_altHtml(IHTMLObjectElement *iface, BSTR v)
397{
399 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
400 return E_NOTIMPL;
401}
402
403static HRESULT WINAPI HTMLObjectElement_get_altHtml(IHTMLObjectElement *iface, BSTR *p)
404{
406 FIXME("(%p)->(%p)\n", This, p);
407 return E_NOTIMPL;
408}
409
410static HRESULT WINAPI HTMLObjectElement_put_vspace(IHTMLObjectElement *iface, LONG v)
411{
413 FIXME("(%p)->(%d)\n", This, v);
414 return E_NOTIMPL;
415}
416
417static HRESULT WINAPI HTMLObjectElement_get_vspace(IHTMLObjectElement *iface, LONG *p)
418{
420 nsresult nsres;
421
422 TRACE("(%p)->(%p)\n", This, p);
423
424 nsres = nsIDOMHTMLObjectElement_GetVspace(This->nsobject, p);
425 if(NS_FAILED(nsres)) {
426 ERR("GetVspace failed: %08x\n", nsres);
427 return E_FAIL;
428 }
429
430 return S_OK;
431}
432
433static HRESULT WINAPI HTMLObjectElement_put_hspace(IHTMLObjectElement *iface, LONG v)
434{
436 FIXME("(%p)->(%d)\n", This, v);
437 return E_NOTIMPL;
438}
439
440static HRESULT WINAPI HTMLObjectElement_get_hspace(IHTMLObjectElement *iface, LONG *p)
441{
443 FIXME("(%p)->(%p)\n", This, p);
444 return E_NOTIMPL;
445}
446
447static const IHTMLObjectElementVtbl HTMLObjectElementVtbl = {
489};
490
491static inline HTMLObjectElement *impl_from_IHTMLObjectElement2(IHTMLObjectElement2 *iface)
492{
493 return CONTAINING_RECORD(iface, HTMLObjectElement, IHTMLObjectElement2_iface);
494}
495
496static HRESULT WINAPI HTMLObjectElement2_QueryInterface(IHTMLObjectElement2 *iface,
497 REFIID riid, void **ppv)
498{
500
501 return IHTMLDOMNode_QueryInterface(&This->plugin_container.element.node.IHTMLDOMNode_iface,
502 riid, ppv);
503}
504
505static ULONG WINAPI HTMLObjectElement2_AddRef(IHTMLObjectElement2 *iface)
506{
508
509 return IHTMLDOMNode_AddRef(&This->plugin_container.element.node.IHTMLDOMNode_iface);
510}
511
512static ULONG WINAPI HTMLObjectElement2_Release(IHTMLObjectElement2 *iface)
513{
515
516 return IHTMLDOMNode_Release(&This->plugin_container.element.node.IHTMLDOMNode_iface);
517}
518
519static HRESULT WINAPI HTMLObjectElement2_GetTypeInfoCount(IHTMLObjectElement2 *iface, UINT *pctinfo)
520{
522 return IDispatchEx_GetTypeInfoCount(&This->plugin_container.element.node.event_target.dispex.IDispatchEx_iface,
523 pctinfo);
524}
525
526static HRESULT WINAPI HTMLObjectElement2_GetTypeInfo(IHTMLObjectElement2 *iface, UINT iTInfo,
527 LCID lcid, ITypeInfo **ppTInfo)
528{
530 return IDispatchEx_GetTypeInfo(&This->plugin_container.element.node.event_target.dispex.IDispatchEx_iface,
531 iTInfo, lcid, ppTInfo);
532}
533
534static HRESULT WINAPI HTMLObjectElement2_GetIDsOfNames(IHTMLObjectElement2 *iface, REFIID riid,
535 LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
536{
538 return IDispatchEx_GetIDsOfNames(&This->plugin_container.element.node.event_target.dispex.IDispatchEx_iface,
539 riid, rgszNames, cNames, lcid, rgDispId);
540}
541
542static HRESULT WINAPI HTMLObjectElement2_Invoke(IHTMLObjectElement2 *iface, DISPID dispIdMember,
543 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult,
544 EXCEPINFO *pExcepInfo, UINT *puArgErr)
545{
547 return IDispatchEx_Invoke(&This->plugin_container.element.node.event_target.dispex.IDispatchEx_iface,
548 dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
549}
550
551static HRESULT WINAPI HTMLObjectElement2_namedRecordset(IHTMLObjectElement2 *iface, BSTR dataMember,
552 VARIANT *hierarchy, IDispatch **ppRecordset)
553{
555 FIXME("(%p)->(%s %p %p)\n", This, debugstr_w(dataMember), hierarchy, ppRecordset);
556 return E_NOTIMPL;
557}
558
559static HRESULT WINAPI HTMLObjectElement2_put_classid(IHTMLObjectElement2 *iface, BSTR v)
560{
563
564 static const WCHAR classidW[] = {'c','l','a','s','s','i','d',0};
565
566 FIXME("(%p)->(%s) semi-stub\n", This, debugstr_w(v));
567
568 hres = elem_string_attr_setter(&This->plugin_container.element, classidW, v);
569 if(FAILED(hres))
570 return hres;
571
572 if(This->plugin_container.plugin_host) {
573 FIXME("Host already associated.\n");
574 return E_NOTIMPL;
575 }
576
577 /*
578 * NOTE:
579 * If the element is not yet in DOM tree, we should embed it as soon as it's added.
580 * However, Gecko for some reason decides not to create NP plugin in this case,
581 * so this won't work.
582 */
583
584 return create_plugin_host(This->plugin_container.element.node.doc, &This->plugin_container);
585}
586
587static HRESULT WINAPI HTMLObjectElement2_get_classid(IHTMLObjectElement2 *iface, BSTR *p)
588{
590 FIXME("(%p)->(%p)\n", This, p);
591 return E_NOTIMPL;
592}
593
594static HRESULT WINAPI HTMLObjectElement2_put_data(IHTMLObjectElement2 *iface, BSTR v)
595{
597 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
598 return E_NOTIMPL;
599}
600
601static HRESULT WINAPI HTMLObjectElement2_get_data(IHTMLObjectElement2 *iface, BSTR *p)
602{
604 FIXME("(%p)->(%p)\n", This, p);
605 return E_NOTIMPL;
606}
607
608static const IHTMLObjectElement2Vtbl HTMLObjectElement2Vtbl = {
621};
622
624{
625 return CONTAINING_RECORD(iface, HTMLObjectElement, plugin_container.element.node);
626}
627
629{
631
632 TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
633
635 *ppv = &This->IHTMLObjectElement_iface;
636 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
637 *ppv = &This->IHTMLObjectElement_iface;
638 }else if(IsEqualGUID(&IID_IHTMLObjectElement, riid)) {
639 *ppv = &This->IHTMLObjectElement_iface;
640 }else if(IsEqualGUID(&IID_IHTMLObjectElement2, riid)) {
641 *ppv = &This->IHTMLObjectElement2_iface;
642 }else if(IsEqualGUID(&IID_HTMLPluginContainer, riid)) {
643 /* Special pseudo-interface returning HTMLPluginContainse struct. */
644 *ppv = &This->plugin_container;
645 node_addref(&This->plugin_container.element.node);
646 return S_OK;
647 }else {
649
650 hres = HTMLElement_QI(&This->plugin_container.element.node, riid, ppv);
651 if(hres == E_NOINTERFACE && This->plugin_container.plugin_host && This->plugin_container.plugin_host->plugin_unk) {
652 IUnknown *plugin_iface, *ret;
653
654 hres = IUnknown_QueryInterface(This->plugin_container.plugin_host->plugin_unk, riid, (void**)&plugin_iface);
655 if(hres == S_OK) {
656 hres = wrap_iface(plugin_iface, (IUnknown*)&This->IHTMLObjectElement_iface, &ret);
657 IUnknown_Release(plugin_iface);
658 if(FAILED(hres))
659 return hres;
660
661 TRACE("returning plugin iface %p wrapped to %p\n", plugin_iface, ret);
662 *ppv = ret;
663 return S_OK;
664 }
665 }
666
667 return hres;
668 }
669
670 IUnknown_AddRef((IUnknown*)*ppv);
671 return S_OK;
672}
673
675{
677
678 if(This->plugin_container.plugin_host)
679 detach_plugin_host(This->plugin_container.plugin_host);
680
681 HTMLElement_destructor(&This->plugin_container.element.node);
682}
683
685{
687 FIXME("(%p)->(%p)\n", This, p);
688 return E_NOTIMPL;
689}
690
692 DWORD grfdex, DISPID *pid)
693{
695
696 TRACE("(%p)->(%s %x %p)\n", This, debugstr_w(name), grfdex, pid);
697
698 return get_plugin_dispid(&This->plugin_container, name, pid);
699}
700
702 WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei, IServiceProvider *caller)
703{
705
706 TRACE("(%p)->(%d)\n", This, id);
707
708 return invoke_plugin_prop(&This->plugin_container, id, lcid, flags, params, res, ei);
709}
710
712{
714
715 if(This->nsobject)
716 note_cc_edge((nsISupports*)This->nsobject, "This->nsobject", cb);
717}
718
720{
722
723 if(This->nsobject) {
724 nsIDOMHTMLObjectElement *nsobject = This->nsobject;
725
726 This->nsobject = NULL;
727 nsIDOMHTMLObjectElement_Release(nsobject);
728 }
729}
730
738 NULL,
739 NULL,
740 NULL,
741 NULL,
742 NULL,
746 NULL,
749};
750
752 IHTMLObjectElement2_tid,
753 IHTMLObjectElement_tid,
755 0
756};
758 NULL,
759 DispHTMLObjectElement_tid,
760 NULL,
762};
763
765{
767 nsresult nsres;
768
769 ret = heap_alloc_zero(sizeof(*ret));
770 if(!ret)
771 return E_OUTOFMEMORY;
772
773 ret->IHTMLObjectElement_iface.lpVtbl = &HTMLObjectElementVtbl;
774 ret->IHTMLObjectElement2_iface.lpVtbl = &HTMLObjectElement2Vtbl;
775 ret->plugin_container.element.node.vtbl = &HTMLObjectElementImplVtbl;
776
777 HTMLElement_Init(&ret->plugin_container.element, doc, nselem, &HTMLObjectElement_dispex);
778
779 nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLObjectElement, (void**)&ret->nsobject);
780 assert(nsres == NS_OK);
781
782 *elem = &ret->plugin_container.element;
783 return S_OK;
784}
const GUID IID_IUnknown
#define FIXME(fmt,...)
Definition: debug.h:111
#define ERR(fmt,...)
Definition: debug.h:110
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define E_NOTIMPL
Definition: ddrawi.h:99
#define E_FAIL
Definition: ddrawi.h:102
#define NULL
Definition: types.h:112
OLECHAR * BSTR
Definition: compat.h:2293
@ VT_BSTR
Definition: compat.h:2303
@ VT_I4
Definition: compat.h:2298
const char * debugstr_mshtml_guid(const GUID *iid)
Definition: main.c:542
#define assert(x)
Definition: debug.h:53
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
const GLdouble * v
Definition: gl.h:2040
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
GLint GLint GLsizei width
Definition: gl.h:1546
GLuint res
Definition: glext.h:9613
GLenum const GLfloat * params
Definition: glext.h:5645
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
GLbitfield flags
Definition: glext.h:7161
GLfloat GLfloat p
Definition: glext.h:8902
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
Definition: htmlelem.c:3793
void HTMLElement_destructor(HTMLDOMNode *iface)
Definition: htmlelem.c:3764
HRESULT HTMLElement_handle_event(HTMLDOMNode *iface, DWORD eid, nsIDOMEvent *event, BOOL *prevent_default)
Definition: htmlelem.c:3815
HRESULT elem_string_attr_setter(HTMLElement *elem, const WCHAR *name, const WCHAR *value)
Definition: htmlelem.c:186
const cpc_entry_t HTMLElement_cpc[]
Definition: htmlelem.c:3847
void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
Definition: htmlelem.c:4008
HRESULT HTMLElement_get_attr_col(HTMLDOMNode *iface, HTMLAttributeCollection **ac)
Definition: htmlelem.c:4827
HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlelem.c:3738
static HRESULT WINAPI HTMLObjectElement_get_type(IHTMLObjectElement *iface, BSTR *p)
Definition: htmlobject.c:229
static HRESULT WINAPI HTMLObjectElement_put_height(IHTMLObjectElement *iface, VARIANT v)
Definition: htmlobject.c:302
static void HTMLObjectElement_destructor(HTMLDOMNode *iface)
Definition: htmlobject.c:674
static const IHTMLObjectElementVtbl HTMLObjectElementVtbl
Definition: htmlobject.c:447
static HTMLObjectElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmlobject.c:623
static HRESULT WINAPI HTMLObjectElement2_put_classid(IHTMLObjectElement2 *iface, BSTR v)
Definition: htmlobject.c:559
static HRESULT WINAPI HTMLObjectElement_get_readyState(IHTMLObjectElement *iface, LONG *p)
Definition: htmlobject.c:361
static const tid_t HTMLObjectElement_iface_tids[]
Definition: htmlobject.c:751
static HRESULT WINAPI HTMLObjectElement_get_codeType(IHTMLObjectElement *iface, BSTR *p)
Definition: htmlobject.c:194
static HTMLObjectElement * impl_from_IHTMLObjectElement(IHTMLObjectElement *iface)
Definition: htmlobject.c:30
static HRESULT WINAPI HTMLObjectElement2_get_data(IHTMLObjectElement2 *iface, BSTR *p)
Definition: htmlobject.c:601
static HRESULT WINAPI HTMLObjectElement_put_name(IHTMLObjectElement *iface, BSTR v)
Definition: htmlobject.c:146
static HRESULT WINAPI HTMLObjectElement2_Invoke(IHTMLObjectElement2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmlobject.c:542
static ULONG WINAPI HTMLObjectElement2_AddRef(IHTMLObjectElement2 *iface)
Definition: htmlobject.c:505
static HRESULT WINAPI HTMLObjectElement_put_codeBase(IHTMLObjectElement *iface, BSTR v)
Definition: htmlobject.c:173
static HRESULT WINAPI HTMLObjectElement_get_code(IHTMLObjectElement *iface, BSTR *p)
Definition: htmlobject.c:208
static HRESULT WINAPI HTMLObjectElement2_namedRecordset(IHTMLObjectElement2 *iface, BSTR dataMember, VARIANT *hierarchy, IDispatch **ppRecordset)
Definition: htmlobject.c:551
static HRESULT WINAPI HTMLObjectElement_GetIDsOfNames(IHTMLObjectElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmlobject.c:73
static HRESULT WINAPI HTMLObjectElement_GetTypeInfo(IHTMLObjectElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmlobject.c:65
static HRESULT WINAPI HTMLObjectElement_get_BaseHref(IHTMLObjectElement *iface, BSTR *p)
Definition: htmlobject.c:215
static HRESULT WINAPI HTMLObjectElement2_QueryInterface(IHTMLObjectElement2 *iface, REFIID riid, void **ppv)
Definition: htmlobject.c:496
static HRESULT WINAPI HTMLObjectElement_put_hspace(IHTMLObjectElement *iface, LONG v)
Definition: htmlobject.c:433
static HRESULT HTMLObjectElement_invoke(HTMLDOMNode *iface, DISPID id, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei, IServiceProvider *caller)
Definition: htmlobject.c:701
static HRESULT HTMLObjectElement_get_dispid(HTMLDOMNode *iface, BSTR name, DWORD grfdex, DISPID *pid)
Definition: htmlobject.c:691
static HRESULT WINAPI HTMLObjectElement_get_name(IHTMLObjectElement *iface, BSTR *p)
Definition: htmlobject.c:160
static HRESULT HTMLObjectElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlobject.c:628
static ULONG WINAPI HTMLObjectElement_Release(IHTMLObjectElement *iface)
Definition: htmlobject.c:51
static HRESULT WINAPI HTMLObjectElement_get_form(IHTMLObjectElement *iface, IHTMLFormElement **p)
Definition: htmlobject.c:236
static HRESULT WINAPI HTMLObjectElement_put_recordset(IHTMLObjectElement *iface, IDispatch *v)
Definition: htmlobject.c:118
static HRESULT WINAPI HTMLObjectElement_get_width(IHTMLObjectElement *iface, VARIANT *p)
Definition: htmlobject.c:275
static HRESULT WINAPI HTMLObjectElement_QueryInterface(IHTMLObjectElement *iface, REFIID riid, void **ppv)
Definition: htmlobject.c:35
static HRESULT WINAPI HTMLObjectElement2_get_classid(IHTMLObjectElement2 *iface, BSTR *p)
Definition: htmlobject.c:587
static HRESULT WINAPI HTMLObjectElement_get_object(IHTMLObjectElement *iface, IDispatch **p)
Definition: htmlobject.c:91
static HRESULT WINAPI HTMLObjectElement_get_hspace(IHTMLObjectElement *iface, LONG *p)
Definition: htmlobject.c:440
static HRESULT WINAPI HTMLObjectElement_get_altHtml(IHTMLObjectElement *iface, BSTR *p)
Definition: htmlobject.c:403
static HRESULT WINAPI HTMLObjectElement2_GetIDsOfNames(IHTMLObjectElement2 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmlobject.c:534
static HRESULT WINAPI HTMLObjectElement_put_type(IHTMLObjectElement *iface, BSTR v)
Definition: htmlobject.c:222
static HRESULT WINAPI HTMLObjectElement_GetTypeInfoCount(IHTMLObjectElement *iface, UINT *pctinfo)
Definition: htmlobject.c:58
static HRESULT WINAPI HTMLObjectElement_get_onreadystatechange(IHTMLObjectElement *iface, VARIANT *p)
Definition: htmlobject.c:375
static HRESULT WINAPI HTMLObjectElement_get_codeBase(IHTMLObjectElement *iface, BSTR *p)
Definition: htmlobject.c:180
static HRESULT WINAPI HTMLObjectElement_get_data(IHTMLObjectElement *iface, BSTR *p)
Definition: htmlobject.c:109
static HRESULT WINAPI HTMLObjectElement2_GetTypeInfoCount(IHTMLObjectElement2 *iface, UINT *pctinfo)
Definition: htmlobject.c:519
static HRESULT WINAPI HTMLObjectElement2_GetTypeInfo(IHTMLObjectElement2 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmlobject.c:526
static HRESULT WINAPI HTMLObjectElement_get_onerror(IHTMLObjectElement *iface, VARIANT *p)
Definition: htmlobject.c:389
static HRESULT WINAPI HTMLObjectElement_put_codeType(IHTMLObjectElement *iface, BSTR v)
Definition: htmlobject.c:187
static HTMLObjectElement * impl_from_IHTMLObjectElement2(IHTMLObjectElement2 *iface)
Definition: htmlobject.c:491
static const IHTMLObjectElement2Vtbl HTMLObjectElement2Vtbl
Definition: htmlobject.c:608
static HRESULT HTMLObjectElement_get_readystate(HTMLDOMNode *iface, BSTR *p)
Definition: htmlobject.c:684
static HRESULT WINAPI HTMLObjectElement_put_onerror(IHTMLObjectElement *iface, VARIANT v)
Definition: htmlobject.c:382
static HRESULT WINAPI HTMLObjectElement_put_vspace(IHTMLObjectElement *iface, LONG v)
Definition: htmlobject.c:410
static HRESULT WINAPI HTMLObjectElement_put_altHtml(IHTMLObjectElement *iface, BSTR v)
Definition: htmlobject.c:396
HRESULT HTMLObjectElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmlobject.c:764
static HRESULT WINAPI HTMLObjectElement_put_onreadystatechange(IHTMLObjectElement *iface, VARIANT v)
Definition: htmlobject.c:368
static HRESULT WINAPI HTMLObjectElement_get_vspace(IHTMLObjectElement *iface, LONG *p)
Definition: htmlobject.c:417
static HRESULT WINAPI HTMLObjectElement_get_classid(IHTMLObjectElement *iface, BSTR *p)
Definition: htmlobject.c:100
static void HTMLObjectElement_unlink(HTMLDOMNode *iface)
Definition: htmlobject.c:719
static ULONG WINAPI HTMLObjectElement_AddRef(IHTMLObjectElement *iface)
Definition: htmlobject.c:44
static const NodeImplVtbl HTMLObjectElementImplVtbl
Definition: htmlobject.c:731
static ULONG WINAPI HTMLObjectElement2_Release(IHTMLObjectElement2 *iface)
Definition: htmlobject.c:512
static HRESULT WINAPI HTMLObjectElement_Invoke(IHTMLObjectElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmlobject.c:82
static void HTMLObjectElement_traverse(HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
Definition: htmlobject.c:711
static HRESULT WINAPI HTMLObjectElement_put_align(IHTMLObjectElement *iface, BSTR v)
Definition: htmlobject.c:132
static HRESULT WINAPI HTMLObjectElement_get_recordset(IHTMLObjectElement *iface, IDispatch **p)
Definition: htmlobject.c:125
static HRESULT WINAPI HTMLObjectElement2_put_data(IHTMLObjectElement2 *iface, BSTR v)
Definition: htmlobject.c:594
static dispex_static_data_t HTMLObjectElement_dispex
Definition: htmlobject.c:757
static HRESULT WINAPI HTMLObjectElement_put_width(IHTMLObjectElement *iface, VARIANT v)
Definition: htmlobject.c:243
static HRESULT WINAPI HTMLObjectElement_get_height(IHTMLObjectElement *iface, VARIANT *p)
Definition: htmlobject.c:334
static HRESULT WINAPI HTMLObjectElement_put_code(IHTMLObjectElement *iface, BSTR v)
Definition: htmlobject.c:201
static HRESULT WINAPI HTMLObjectElement_get_align(IHTMLObjectElement *iface, BSTR *p)
Definition: htmlobject.c:139
tid_t
Definition: ieframe.h:311
HRESULT wrap_iface(IUnknown *iface, IUnknown *ref_unk, IUnknown **ret)
Definition: ifacewrap.c:311
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define S_OK
Definition: intsafe.h:52
#define FAILED(hr)
Definition: intsafe.h:51
#define debugstr_w
Definition: kernel32.h:32
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
HRESULT hres
Definition: protocol.c:465
static HMODULE MODULEINFO DWORD cb
Definition: module.c:33
static size_t elem
Definition: string.c:68
static LPOLESTR
Definition: stg_prop.c:27
static VARIANTARG static DISPID
Definition: ordinal.c:52
static const h_entry hierarchy[]
Definition: dialog.c:66
#define NS_OK
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
Definition: nsembed.c:831
#define HTMLELEMENT_TIDS
static void node_addref(HTMLDOMNode *node)
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
struct nsCycleCollectionTraversalCallback nsCycleCollectionTraversalCallback
#define NS_SUCCEEDED(res)
#define NS_FAILED(res)
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841
unsigned int UINT
Definition: ndis.h:50
WCHAR PRUnichar
Definition: nsiface.idl:48
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:238
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226
#define V_I4(A)
Definition: oleauto.h:247
const GUID IID_IDispatch
long LONG
Definition: pedump.c:60
HRESULT invoke_plugin_prop(HTMLPluginContainer *plugin_container, DISPID id, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei)
Definition: pluginhost.c:428
HRESULT get_plugin_disp(HTMLPluginContainer *plugin_container, IDispatch **ret)
Definition: pluginhost.c:352
void notif_container_change(HTMLPluginContainer *plugin_container, DISPID dispid)
Definition: pluginhost.c:335
HRESULT get_plugin_dispid(HTMLPluginContainer *plugin_container, WCHAR *name, DISPID *ret)
Definition: pluginhost.c:377
void detach_plugin_host(PluginHost *host)
Definition: pluginhost.c:1988
HRESULT create_plugin_host(HTMLDocumentNode *doc, HTMLPluginContainer *container)
Definition: pluginhost.c:2048
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define REFIID
Definition: guiddef.h:118
#define sprintfW
Definition: unicode.h:58
DWORD LCID
Definition: nls.h:13
#define TRACE(s)
Definition: solgame.cpp:4
nsIDOMHTMLObjectElement * nsobject
Definition: htmlobject.c:27
HTMLPluginContainer plugin_container
Definition: htmlobject.c:22
IHTMLObjectElement2 IHTMLObjectElement2_iface
Definition: htmlobject.c:25
IHTMLObjectElement IHTMLObjectElement_iface
Definition: htmlobject.c:24
Definition: name.c:39
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260
uint32_t ULONG
Definition: typedefs.h:59
int ret
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:531
_In_ ULONG_PTR _In_ ULONG _Out_ ULONG_PTR * pid
Definition: winddi.h:3837
#define WINAPI
Definition: msvc.h:6
#define E_NOINTERFACE
Definition: winerror.h:2364
__wchar_t WCHAR
Definition: xmlstorage.h:180