36 nsres = nsIDOMDocument_GetDefaultView(nsdoc, &nswindow);
44 nsIDOMWindow_Release(nswindow);
49 window->frame_element = frame;
62 return IHTMLDOMNode_QueryInterface(&
This->element.node.IHTMLDOMNode_iface,
riid,
ppv);
69 return IHTMLDOMNode_AddRef(&
This->element.node.IHTMLDOMNode_iface);
76 return IHTMLDOMNode_Release(&
This->element.node.IHTMLDOMNode_iface);
83 return IDispatchEx_GetTypeInfoCount(&
This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
91 return IDispatchEx_GetTypeInfo(&
This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
100 return IDispatchEx_GetIDsOfNames(&
This->element.node.event_target.dispex.IDispatchEx_iface,
riid, rgszNames,
101 cNames, lcid, rgDispId);
106 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
UINT *puArgErr)
110 return IDispatchEx_Invoke(&
This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember,
riid,
111 lcid,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
120 if(!
This->content_window || !
This->element.node.doc || !
This->element.node.doc->basedoc.window) {
126 nsres = nsIDOMHTMLFrameElement_SetSrc(
This->nsframe, &nsstr);
128 nsres = nsIDOMHTMLIFrameElement_SetSrc(
This->nsiframe, &nsstr);
131 ERR(
"SetSrc failed: %08x\n", nsres);
149 if(!
This->nsframe && !
This->nsiframe) {
150 ERR(
"No attached frame object\n");
156 nsres = nsIDOMHTMLFrameElement_GetSrc(
This->nsframe, &nsstr);
158 nsres = nsIDOMHTMLIFrameElement_GetSrc(
This->nsiframe, &nsstr);
170 if(!
This->nsframe && !
This->nsiframe) {
171 ERR(
"No attached ns frame object\n");
177 nsres = nsIDOMHTMLFrameElement_SetName(
This->nsframe, &name_str);
179 nsres = nsIDOMHTMLIFrameElement_SetName(
This->nsiframe, &name_str);
182 ERR(
"SetName failed: %08x\n", nsres);
197 if(!
This->nsframe && !
This->nsiframe) {
198 ERR(
"No attached ns frame object\n");
204 nsres = nsIDOMHTMLFrameElement_GetName(
This->nsframe, &nsstr);
206 nsres = nsIDOMHTMLIFrameElement_GetName(
This->nsiframe, &nsstr);
232 if(!
This->nsframe && !
This->nsiframe) {
233 ERR(
"No attached ns frame object\n");
239 nsres = nsIDOMHTMLFrameElement_SetFrameBorder(
This->nsframe, &nsstr);
241 nsres = nsIDOMHTMLIFrameElement_SetFrameBorder(
This->nsiframe, &nsstr);
244 ERR(
"SetFrameBorder failed: %08x\n", nsres);
259 if(!
This->nsframe && !
This->nsiframe) {
260 ERR(
"No attached ns frame object\n");
266 nsres = nsIDOMHTMLFrameElement_GetFrameBorder(
This->nsframe, &nsstr);
268 nsres = nsIDOMHTMLIFrameElement_GetFrameBorder(
This->nsiframe, &nsstr);
301 nsres = nsIDOMHTMLFrameElement_SetMarginWidth(
This->nsframe, &nsstr);
303 nsres = nsIDOMHTMLIFrameElement_SetMarginWidth(
This->nsiframe, &nsstr);
319 nsres = nsIDOMHTMLFrameElement_GetMarginWidth(
This->nsframe, &nsstr);
321 nsres = nsIDOMHTMLIFrameElement_GetMarginWidth(
This->nsiframe, &nsstr);
345 ERR(
"GetMarginWidth failed: %08x\n", nsres);
368 nsres = nsIDOMHTMLFrameElement_SetMarginHeight(
This->nsframe, &nsstr);
370 nsres = nsIDOMHTMLIFrameElement_SetMarginHeight(
This->nsiframe, &nsstr);
386 nsres = nsIDOMHTMLFrameElement_GetMarginHeight(
This->nsframe, &nsstr);
388 nsres = nsIDOMHTMLIFrameElement_GetMarginHeight(
This->nsiframe, &nsstr);
412 ERR(
"SetMarginHeight failed: %08x\n", nsres);
447 nsres = nsIDOMHTMLFrameElement_SetScrolling(
This->nsframe, &nsstr);
448 }
else if(
This->nsiframe) {
450 nsres = nsIDOMHTMLIFrameElement_SetScrolling(
This->nsiframe, &nsstr);
452 ERR(
"No attached ns frame object\n");
458 ERR(
"SetScrolling failed: 0x%08x\n", nsres);
476 nsres = nsIDOMHTMLFrameElement_GetScrolling(
This->nsframe, &nsstr);
477 }
else if(
This->nsiframe) {
479 nsres = nsIDOMHTMLIFrameElement_GetScrolling(
This->nsiframe, &nsstr);
481 ERR(
"No attached ns frame object\n");
486 ERR(
"GetScrolling failed: 0x%08x\n", nsres);
540 return IHTMLDOMNode_QueryInterface(&
This->element.node.IHTMLDOMNode_iface,
riid,
ppv);
547 return IHTMLDOMNode_AddRef(&
This->element.node.IHTMLDOMNode_iface);
554 return IHTMLDOMNode_Release(&
This->element.node.IHTMLDOMNode_iface);
582 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
UINT *puArgErr)
595 if(
This->content_window) {
596 IHTMLWindow2_AddRef(&
This->content_window->base.IHTMLWindow2_iface);
597 *
p = &
This->content_window->base.IHTMLWindow2_iface;
599 WARN(
"NULL content window\n");
643 if(!
This->content_window || !
This->content_window->base.inner_window->doc) {
644 FIXME(
"no document associated\n");
648 return IHTMLDocument2_get_readyState(&
This->content_window->base.inner_window->doc->basedoc.IHTMLDocument2_iface,
p);
692 *
ppv = &
This->IHTMLFrameBase_iface;
695 *
ppv = &
This->IHTMLFrameBase2_iface;
706 if(
This->content_window)
707 This->content_window->frame_element =
NULL;
722 nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLFrameElement, (
void**)&
This->nsframe);
725 nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLIFrameElement, (
void**)&
This->nsiframe);
#define BINDING_NAVIGATED
static HRESULT navigate_url(HHInfo *info, LPCWSTR surl)
void HTMLElement_destructor(HTMLDOMNode *iface)
void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
static HRESULT get_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
static HRESULT set_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
static HRESULT WINAPI HTMLFrameBase_put_src(IHTMLFrameBase *iface, BSTR v)
static const WCHAR yesW[]
static HRESULT WINAPI HTMLFrameBase_get_border(IHTMLFrameBase *iface, VARIANT *p)
static HRESULT WINAPI HTMLFrameBase_get_scrolling(IHTMLFrameBase *iface, BSTR *p)
static HRESULT WINAPI HTMLFrameBase2_get_onload(IHTMLFrameBase2 *iface, VARIANT *p)
static HRESULT WINAPI HTMLFrameBase_put_frameSpacing(IHTMLFrameBase *iface, VARIANT v)
static HRESULT WINAPI HTMLFrameBase_put_marginWidth(IHTMLFrameBase *iface, VARIANT v)
static HRESULT WINAPI HTMLFrameBase2_Invoke(IHTMLFrameBase2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI HTMLFrameBase2_get_readyState(IHTMLFrameBase2 *iface, BSTR *p)
static HTMLFrameBase * impl_from_IHTMLFrameBase(IHTMLFrameBase *iface)
static HRESULT WINAPI HTMLFrameBase2_put_onload(IHTMLFrameBase2 *iface, VARIANT v)
static HRESULT WINAPI HTMLFrameBase_get_frameSpacing(IHTMLFrameBase *iface, VARIANT *p)
static HRESULT WINAPI HTMLFrameBase_get_marginHeight(IHTMLFrameBase *iface, VARIANT *p)
static HRESULT WINAPI HTMLFrameBase_put_marginHeight(IHTMLFrameBase *iface, VARIANT v)
static HRESULT WINAPI HTMLFrameBase2_QueryInterface(IHTMLFrameBase2 *iface, REFIID riid, void **ppv)
static ULONG WINAPI HTMLFrameBase2_AddRef(IHTMLFrameBase2 *iface)
static HRESULT WINAPI HTMLFrameBase2_get_contentWindow(IHTMLFrameBase2 *iface, IHTMLWindow2 **p)
static ULONG WINAPI HTMLFrameBase2_Release(IHTMLFrameBase2 *iface)
static HRESULT WINAPI HTMLFrameBase2_GetTypeInfoCount(IHTMLFrameBase2 *iface, UINT *pctinfo)
static HRESULT WINAPI HTMLFrameBase2_GetTypeInfo(IHTMLFrameBase2 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static HRESULT WINAPI HTMLFrameBase2_GetIDsOfNames(IHTMLFrameBase2 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static const IHTMLFrameBase2Vtbl HTMLFrameBase2Vtbl
static HRESULT WINAPI HTMLFrameBase_get_marginWidth(IHTMLFrameBase *iface, VARIANT *p)
static HRESULT WINAPI HTMLFrameBase_put_scrolling(IHTMLFrameBase *iface, BSTR v)
static HRESULT WINAPI HTMLFrameBase_get_name(IHTMLFrameBase *iface, BSTR *p)
static HRESULT WINAPI HTMLFrameBase_put_name(IHTMLFrameBase *iface, BSTR v)
static HRESULT WINAPI HTMLFrameBase_Invoke(IHTMLFrameBase *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI HTMLFrameBase_GetTypeInfoCount(IHTMLFrameBase *iface, UINT *pctinfo)
static const WCHAR autoW[]
static HTMLFrameBase * impl_from_IHTMLFrameBase2(IHTMLFrameBase2 *iface)
static ULONG WINAPI HTMLFrameBase_AddRef(IHTMLFrameBase *iface)
static HRESULT WINAPI HTMLFrameBase2_get_allowTransparency(IHTMLFrameBase2 *iface, VARIANT_BOOL *p)
static HRESULT WINAPI HTMLFrameBase_get_src(IHTMLFrameBase *iface, BSTR *p)
static HRESULT WINAPI HTMLFrameBase2_put_onreadystatechange(IHTMLFrameBase2 *iface, VARIANT v)
void HTMLFrameBase_Init(HTMLFrameBase *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
HRESULT set_frame_doc(HTMLFrameBase *frame, nsIDOMDocument *nsdoc)
static HRESULT WINAPI HTMLFrameBase_put_frameBorder(IHTMLFrameBase *iface, BSTR v)
static HRESULT WINAPI HTMLFrameBase_GetIDsOfNames(IHTMLFrameBase *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static HRESULT WINAPI HTMLFrameBase2_put_allowTransparency(IHTMLFrameBase2 *iface, VARIANT_BOOL v)
static HRESULT WINAPI HTMLFrameBase_get_noResize(IHTMLFrameBase *iface, VARIANT_BOOL *p)
static HRESULT WINAPI HTMLFrameBase_put_noResize(IHTMLFrameBase *iface, VARIANT_BOOL v)
static const IHTMLFrameBaseVtbl HTMLFrameBaseVtbl
static HRESULT WINAPI HTMLFrameBase_get_frameBorder(IHTMLFrameBase *iface, BSTR *p)
void HTMLFrameBase_destructor(HTMLFrameBase *This)
static ULONG WINAPI HTMLFrameBase_Release(IHTMLFrameBase *iface)
static HRESULT WINAPI HTMLFrameBase_GetTypeInfo(IHTMLFrameBase *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
HRESULT HTMLFrameBase_QI(HTMLFrameBase *This, REFIID riid, void **ppv)
static HRESULT WINAPI HTMLFrameBase_put_border(IHTMLFrameBase *iface, VARIANT v)
static HRESULT WINAPI HTMLFrameBase_QueryInterface(IHTMLFrameBase *iface, REFIID riid, void **ppv)
static HRESULT WINAPI HTMLFrameBase2_get_onreadystatechange(IHTMLFrameBase2 *iface, VARIANT *p)
HRESULT HTMLOuterWindow_Create(HTMLDocumentObj *doc_obj, nsIDOMWindow *nswindow, HTMLOuterWindow *parent, HTMLOuterWindow **ret)
HTMLOuterWindow * nswindow_to_window(const nsIDOMWindow *nswindow)
static const char * debugstr_variant(const VARIANT *var)
static IHTMLWindow2 * window
static VARIANTARG static DISPID
interface IHTMLWindow2 IHTMLWindow2
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
#define NS_SUCCEEDED(res)
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
BSTR WINAPI SysAllocString(LPCOLESTR str)
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
#define IsEqualGUID(rguid1, rguid2)
HTMLDocumentObj * doc_obj
HTMLOuterWindow * content_window
#define CONTAINING_RECORD(address, type, field)
_In_ DWORD _Out_ _In_ WORD wFlags