ReactOS  0.4.12-dev-36-g472787f
htmlwindow.c File Reference
#include "mshtml_private.h"
#include <exdispid.h>
Include dependency graph for htmlwindow.c:

Go to the source code of this file.

Classes

struct  prompt_arg
 

Macros

#define MAX_MESSAGE_LEN   2000
 

Functions

static BOOL is_outer_window (HTMLWindow *window)
 
static void release_children (HTMLOuterWindow *This)
 
static HRESULT get_location (HTMLInnerWindow *This, HTMLLocation **ret)
 
void get_top_window (HTMLOuterWindow *window, HTMLOuterWindow **ret)
 
static HRESULT set_window_event (HTMLWindow *window, eventid_t eid, VARIANT *var)
 
static HRESULT get_window_event (HTMLWindow *window, eventid_t eid, VARIANT *var)
 
static void detach_inner_window (HTMLInnerWindow *window)
 
static HTMLWindowimpl_from_IHTMLWindow2 (IHTMLWindow2 *iface)
 
static HRESULT WINAPI HTMLWindow2_QueryInterface (IHTMLWindow2 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLWindow2_AddRef (IHTMLWindow2 *iface)
 
static void release_outer_window (HTMLOuterWindow *This)
 
static void release_inner_window (HTMLInnerWindow *This)
 
static ULONG WINAPI HTMLWindow2_Release (IHTMLWindow2 *iface)
 
static HRESULT WINAPI HTMLWindow2_GetTypeInfoCount (IHTMLWindow2 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLWindow2_GetTypeInfo (IHTMLWindow2 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLWindow2_GetIDsOfNames (IHTMLWindow2 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLWindow2_Invoke (IHTMLWindow2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT get_frame_by_index (HTMLOuterWindow *This, UINT32 index, HTMLOuterWindow **ret)
 
HRESULT get_frame_by_name (HTMLOuterWindow *This, const WCHAR *name, BOOL deep, HTMLOuterWindow **ret)
 
static HRESULT WINAPI HTMLWindow2_item (IHTMLWindow2 *iface, VARIANT *pvarIndex, VARIANT *pvarResult)
 
static HRESULT WINAPI HTMLWindow2_get_length (IHTMLWindow2 *iface, LONG *p)
 
static HRESULT WINAPI HTMLWindow2_get_frames (IHTMLWindow2 *iface, IHTMLFramesCollection2 **p)
 
static HRESULT WINAPI HTMLWindow2_put_defaultStatus (IHTMLWindow2 *iface, BSTR v)
 
static HRESULT WINAPI HTMLWindow2_get_defaultStatus (IHTMLWindow2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLWindow2_put_status (IHTMLWindow2 *iface, BSTR v)
 
static HRESULT WINAPI HTMLWindow2_get_status (IHTMLWindow2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLWindow2_setTimeout (IHTMLWindow2 *iface, BSTR expression, LONG msec, VARIANT *language, LONG *timerID)
 
static HRESULT WINAPI HTMLWindow2_clearTimeout (IHTMLWindow2 *iface, LONG timerID)
 
static HRESULT WINAPI HTMLWindow2_alert (IHTMLWindow2 *iface, BSTR message)
 
static HRESULT WINAPI HTMLWindow2_confirm (IHTMLWindow2 *iface, BSTR message, VARIANT_BOOL *confirmed)
 
static INT_PTR CALLBACK prompt_dlgproc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
 
static HRESULT WINAPI HTMLWindow2_prompt (IHTMLWindow2 *iface, BSTR message, BSTR dststr, VARIANT *textdata)
 
static HRESULT WINAPI HTMLWindow2_get_Image (IHTMLWindow2 *iface, IHTMLImageElementFactory **p)
 
static HRESULT WINAPI HTMLWindow2_get_location (IHTMLWindow2 *iface, IHTMLLocation **p)
 
static HRESULT WINAPI HTMLWindow2_get_history (IHTMLWindow2 *iface, IOmHistory **p)
 
static BOOL notify_webbrowser_close (HTMLOuterWindow *window, HTMLDocumentObj *doc)
 
static HRESULT WINAPI HTMLWindow2_close (IHTMLWindow2 *iface)
 
static HRESULT WINAPI HTMLWindow2_put_opener (IHTMLWindow2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLWindow2_get_opener (IHTMLWindow2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLWindow2_get_navigator (IHTMLWindow2 *iface, IOmNavigator **p)
 
static HRESULT WINAPI HTMLWindow2_put_name (IHTMLWindow2 *iface, BSTR v)
 
static HRESULT WINAPI HTMLWindow2_get_name (IHTMLWindow2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLWindow2_get_parent (IHTMLWindow2 *iface, IHTMLWindow2 **p)
 
static HRESULT WINAPI HTMLWindow2_open (IHTMLWindow2 *iface, BSTR url, BSTR name, BSTR features, VARIANT_BOOL replace, IHTMLWindow2 **pomWindowResult)
 
static HRESULT WINAPI HTMLWindow2_get_self (IHTMLWindow2 *iface, IHTMLWindow2 **p)
 
static HRESULT WINAPI HTMLWindow2_get_top (IHTMLWindow2 *iface, IHTMLWindow2 **p)
 
static HRESULT WINAPI HTMLWindow2_get_window (IHTMLWindow2 *iface, IHTMLWindow2 **p)
 
static HRESULT WINAPI HTMLWindow2_navigate (IHTMLWindow2 *iface, BSTR url)
 
static HRESULT WINAPI HTMLWindow2_put_onfocus (IHTMLWindow2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLWindow2_get_onfocus (IHTMLWindow2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLWindow2_put_onblur (IHTMLWindow2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLWindow2_get_onblur (IHTMLWindow2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLWindow2_put_onload (IHTMLWindow2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLWindow2_get_onload (IHTMLWindow2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLWindow2_put_onbeforeunload (IHTMLWindow2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLWindow2_get_onbeforeunload (IHTMLWindow2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLWindow2_put_onunload (IHTMLWindow2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLWindow2_get_onunload (IHTMLWindow2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLWindow2_put_onhelp (IHTMLWindow2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLWindow2_get_onhelp (IHTMLWindow2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLWindow2_put_onerror (IHTMLWindow2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLWindow2_get_onerror (IHTMLWindow2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLWindow2_put_onresize (IHTMLWindow2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLWindow2_get_onresize (IHTMLWindow2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLWindow2_put_onscroll (IHTMLWindow2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLWindow2_get_onscroll (IHTMLWindow2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLWindow2_get_document (IHTMLWindow2 *iface, IHTMLDocument2 **p)
 
static HRESULT WINAPI HTMLWindow2_get_event (IHTMLWindow2 *iface, IHTMLEventObj **p)
 
static HRESULT WINAPI HTMLWindow2_get__newEnum (IHTMLWindow2 *iface, IUnknown **p)
 
static HRESULT WINAPI HTMLWindow2_showModalDialog (IHTMLWindow2 *iface, BSTR dialog, VARIANT *varArgIn, VARIANT *varOptions, VARIANT *varArgOut)
 
static HRESULT WINAPI HTMLWindow2_showHelp (IHTMLWindow2 *iface, BSTR helpURL, VARIANT helpArg, BSTR features)
 
static HRESULT WINAPI HTMLWindow2_get_screen (IHTMLWindow2 *iface, IHTMLScreen **p)
 
static HRESULT WINAPI HTMLWindow2_get_Option (IHTMLWindow2 *iface, IHTMLOptionElementFactory **p)
 
static HRESULT WINAPI HTMLWindow2_focus (IHTMLWindow2 *iface)
 
static HRESULT WINAPI HTMLWindow2_get_closed (IHTMLWindow2 *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLWindow2_blur (IHTMLWindow2 *iface)
 
static HRESULT WINAPI HTMLWindow2_scroll (IHTMLWindow2 *iface, LONG x, LONG y)
 
static HRESULT WINAPI HTMLWindow2_get_clientInformation (IHTMLWindow2 *iface, IOmNavigator **p)
 
static HRESULT WINAPI HTMLWindow2_setInterval (IHTMLWindow2 *iface, BSTR expression, LONG msec, VARIANT *language, LONG *timerID)
 
static HRESULT WINAPI HTMLWindow2_clearInterval (IHTMLWindow2 *iface, LONG timerID)
 
static HRESULT WINAPI HTMLWindow2_put_offscreenBuffering (IHTMLWindow2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLWindow2_get_offscreenBuffering (IHTMLWindow2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLWindow2_execScript (IHTMLWindow2 *iface, BSTR scode, BSTR language, VARIANT *pvarRet)
 
static HRESULT WINAPI HTMLWindow2_toString (IHTMLWindow2 *iface, BSTR *String)
 
static HRESULT WINAPI HTMLWindow2_scrollBy (IHTMLWindow2 *iface, LONG x, LONG y)
 
static HRESULT WINAPI HTMLWindow2_scrollTo (IHTMLWindow2 *iface, LONG x, LONG y)
 
static HRESULT WINAPI HTMLWindow2_moveTo (IHTMLWindow2 *iface, LONG x, LONG y)
 
static HRESULT WINAPI HTMLWindow2_moveBy (IHTMLWindow2 *iface, LONG x, LONG y)
 
static HRESULT WINAPI HTMLWindow2_resizeTo (IHTMLWindow2 *iface, LONG x, LONG y)
 
static HRESULT WINAPI HTMLWindow2_resizeBy (IHTMLWindow2 *iface, LONG x, LONG y)
 
static HRESULT WINAPI HTMLWindow2_get_external (IHTMLWindow2 *iface, IDispatch **p)
 
static HTMLWindowimpl_from_IHTMLWindow3 (IHTMLWindow3 *iface)
 
static HRESULT WINAPI HTMLWindow3_QueryInterface (IHTMLWindow3 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLWindow3_AddRef (IHTMLWindow3 *iface)
 
static ULONG WINAPI HTMLWindow3_Release (IHTMLWindow3 *iface)
 
static HRESULT WINAPI HTMLWindow3_GetTypeInfoCount (IHTMLWindow3 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLWindow3_GetTypeInfo (IHTMLWindow3 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLWindow3_GetIDsOfNames (IHTMLWindow3 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLWindow3_Invoke (IHTMLWindow3 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLWindow3_get_screenLeft (IHTMLWindow3 *iface, LONG *p)
 
static HRESULT WINAPI HTMLWindow3_get_screenTop (IHTMLWindow3 *iface, LONG *p)
 
static HRESULT WINAPI HTMLWindow3_attachEvent (IHTMLWindow3 *iface, BSTR event, IDispatch *pDisp, VARIANT_BOOL *pfResult)
 
static HRESULT WINAPI HTMLWindow3_detachEvent (IHTMLWindow3 *iface, BSTR event, IDispatch *pDisp)
 
static HRESULT window_set_timer (HTMLInnerWindow *This, VARIANT *expr, LONG msec, VARIANT *language, BOOL interval, LONG *timer_id)
 
static HRESULT WINAPI HTMLWindow3_setTimeout (IHTMLWindow3 *iface, VARIANT *expression, LONG msec, VARIANT *language, LONG *timerID)
 
static HRESULT WINAPI HTMLWindow3_setInterval (IHTMLWindow3 *iface, VARIANT *expression, LONG msec, VARIANT *language, LONG *timerID)
 
static HRESULT WINAPI HTMLWindow3_print (IHTMLWindow3 *iface)
 
static HRESULT WINAPI HTMLWindow3_put_onbeforeprint (IHTMLWindow3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLWindow3_get_onbeforeprint (IHTMLWindow3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLWindow3_put_onafterprint (IHTMLWindow3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLWindow3_get_onafterprint (IHTMLWindow3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLWindow3_get_clipboardData (IHTMLWindow3 *iface, IHTMLDataTransfer **p)
 
static HRESULT WINAPI HTMLWindow3_showModelessDialog (IHTMLWindow3 *iface, BSTR url, VARIANT *varArgIn, VARIANT *options, IHTMLWindow2 **pDialog)
 
static HTMLWindowimpl_from_IHTMLWindow4 (IHTMLWindow4 *iface)
 
static HRESULT WINAPI HTMLWindow4_QueryInterface (IHTMLWindow4 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLWindow4_AddRef (IHTMLWindow4 *iface)
 
static ULONG WINAPI HTMLWindow4_Release (IHTMLWindow4 *iface)
 
static HRESULT WINAPI HTMLWindow4_GetTypeInfoCount (IHTMLWindow4 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLWindow4_GetTypeInfo (IHTMLWindow4 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLWindow4_GetIDsOfNames (IHTMLWindow4 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLWindow4_Invoke (IHTMLWindow4 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLWindow4_createPopup (IHTMLWindow4 *iface, VARIANT *varArgIn, IDispatch **ppPopup)
 
static HRESULT WINAPI HTMLWindow4_get_frameElement (IHTMLWindow4 *iface, IHTMLFrameBase **p)
 
static HTMLWindowimpl_from_IHTMLWindow5 (IHTMLWindow5 *iface)
 
static HRESULT WINAPI HTMLWindow5_QueryInterface (IHTMLWindow5 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLWindow5_AddRef (IHTMLWindow5 *iface)
 
static ULONG WINAPI HTMLWindow5_Release (IHTMLWindow5 *iface)
 
static HRESULT WINAPI HTMLWindow5_GetTypeInfoCount (IHTMLWindow5 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLWindow5_GetTypeInfo (IHTMLWindow5 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLWindow5_GetIDsOfNames (IHTMLWindow5 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLWindow5_Invoke (IHTMLWindow5 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLWindow5_put_XMLHttpRequest (IHTMLWindow5 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLWindow5_get_XMLHttpRequest (IHTMLWindow5 *iface, VARIANT *p)
 
static HTMLWindowimpl_from_IHTMLWindow6 (IHTMLWindow6 *iface)
 
static HRESULT WINAPI HTMLWindow6_QueryInterface (IHTMLWindow6 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLWindow6_AddRef (IHTMLWindow6 *iface)
 
static ULONG WINAPI HTMLWindow6_Release (IHTMLWindow6 *iface)
 
static HRESULT WINAPI HTMLWindow6_GetTypeInfoCount (IHTMLWindow6 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLWindow6_GetTypeInfo (IHTMLWindow6 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLWindow6_GetIDsOfNames (IHTMLWindow6 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLWindow6_Invoke (IHTMLWindow6 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLWindow6_put_XDomainRequest (IHTMLWindow6 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLWindow6_get_XDomainRequest (IHTMLWindow6 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLWindow6_get_sessionStorage (IHTMLWindow6 *iface, IHTMLStorage **p)
 
static HRESULT WINAPI HTMLWindow6_get_localStorage (IHTMLWindow6 *iface, IHTMLStorage **p)
 
static HRESULT WINAPI HTMLWindow6_put_onhashchange (IHTMLWindow6 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLWindow6_get_onhashchange (IHTMLWindow6 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLWindow6_get_maxConnectionsPerServer (IHTMLWindow6 *iface, LONG *p)
 
static HRESULT WINAPI HTMLWindow6_postMessage (IHTMLWindow6 *iface, BSTR msg, VARIANT targetOrigin)
 
static HRESULT WINAPI HTMLWindow6_toStaticHTML (IHTMLWindow6 *iface, BSTR bstrHTML, BSTR *pbstrStaticHTML)
 
static HRESULT WINAPI HTMLWindow6_put_onmessage (IHTMLWindow6 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLWindow6_get_onmessage (IHTMLWindow6 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLWindow6_msWriteProfilerMark (IHTMLWindow6 *iface, BSTR bstrProfilerMark)
 
static HTMLWindowimpl_from_IHTMLPrivateWindow (IHTMLPrivateWindow *iface)
 
static HRESULT WINAPI HTMLPrivateWindow_QueryInterface (IHTMLPrivateWindow *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLPrivateWindow_AddRef (IHTMLPrivateWindow *iface)
 
static ULONG WINAPI HTMLPrivateWindow_Release (IHTMLPrivateWindow *iface)
 
static HRESULT WINAPI HTMLPrivateWindow_SuperNavigate (IHTMLPrivateWindow *iface, BSTR url, BSTR arg2, BSTR arg3, BSTR arg4, VARIANT *post_data_var, VARIANT *headers_var, ULONG flags)
 
static HRESULT WINAPI HTMLPrivateWindow_GetPendingUrl (IHTMLPrivateWindow *iface, BSTR *url)
 
static HRESULT WINAPI HTMLPrivateWindow_SetPICSTarget (IHTMLPrivateWindow *iface, IOleCommandTarget *cmdtrg)
 
static HRESULT WINAPI HTMLPrivateWindow_PICSComplete (IHTMLPrivateWindow *iface, int arg)
 
static HRESULT WINAPI HTMLPrivateWindow_FindWindowByName (IHTMLPrivateWindow *iface, LPCWSTR name, IHTMLWindow2 **ret)
 
static HRESULT WINAPI HTMLPrivateWindow_GetAddressBarUrl (IHTMLPrivateWindow *iface, BSTR *url)
 
static HTMLWindowimpl_from_ITravelLogClient (ITravelLogClient *iface)
 
static HRESULT WINAPI TravelLogClient_QueryInterface (ITravelLogClient *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI TravelLogClient_AddRef (ITravelLogClient *iface)
 
static ULONG WINAPI TravelLogClient_Release (ITravelLogClient *iface)
 
static HRESULT WINAPI TravelLogClient_FindWindowByIndex (ITravelLogClient *iface, DWORD dwID, IUnknown **ppunk)
 
static HRESULT WINAPI TravelLogClient_GetWindowData (ITravelLogClient *iface, IStream *pStream, LPWINDOWDATA pWinData)
 
static HRESULT WINAPI TravelLogClient_LoadHistoryPosition (ITravelLogClient *iface, LPWSTR pszUrlLocation, DWORD dwPosition)
 
static HTMLWindowimpl_from_IObjectIdentity (IObjectIdentity *iface)
 
static HRESULT WINAPI ObjectIdentity_QueryInterface (IObjectIdentity *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI ObjectIdentity_AddRef (IObjectIdentity *iface)
 
static ULONG WINAPI ObjectIdentity_Release (IObjectIdentity *iface)
 
static HRESULT WINAPI ObjectIdentity_IsEqualObject (IObjectIdentity *iface, IUnknown *unk)
 
static HTMLWindowimpl_from_IDispatchEx (IDispatchEx *iface)
 
static HRESULT WINAPI WindowDispEx_QueryInterface (IDispatchEx *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI WindowDispEx_AddRef (IDispatchEx *iface)
 
static ULONG WINAPI WindowDispEx_Release (IDispatchEx *iface)
 
static HRESULT WINAPI WindowDispEx_GetTypeInfoCount (IDispatchEx *iface, UINT *pctinfo)
 
static HRESULT WINAPI WindowDispEx_GetTypeInfo (IDispatchEx *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI WindowDispEx_GetIDsOfNames (IDispatchEx *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI WindowDispEx_Invoke (IDispatchEx *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static global_prop_talloc_global_prop (HTMLInnerWindow *This, global_prop_type_t type, BSTR name)
 
static DWORD prop_to_dispid (HTMLInnerWindow *This, global_prop_t *prop)
 
HRESULT search_window_props (HTMLInnerWindow *This, BSTR bstrName, DWORD grfdex, DISPID *pid)
 
static HRESULT WINAPI WindowDispEx_GetDispID (IDispatchEx *iface, BSTR bstrName, DWORD grfdex, DISPID *pid)
 
static HRESULT WINAPI WindowDispEx_InvokeEx (IDispatchEx *iface, DISPID id, LCID lcid, WORD wFlags, DISPPARAMS *pdp, VARIANT *pvarRes, EXCEPINFO *pei, IServiceProvider *pspCaller)
 
static HRESULT WINAPI WindowDispEx_DeleteMemberByName (IDispatchEx *iface, BSTR bstrName, DWORD grfdex)
 
static HRESULT WINAPI WindowDispEx_DeleteMemberByDispID (IDispatchEx *iface, DISPID id)
 
static HRESULT WINAPI WindowDispEx_GetMemberProperties (IDispatchEx *iface, DISPID id, DWORD grfdexFetch, DWORD *pgrfdex)
 
static HRESULT WINAPI WindowDispEx_GetMemberName (IDispatchEx *iface, DISPID id, BSTR *pbstrName)
 
static HRESULT WINAPI WindowDispEx_GetNextDispID (IDispatchEx *iface, DWORD grfdex, DISPID id, DISPID *pid)
 
static HRESULT WINAPI WindowDispEx_GetNameSpaceParent (IDispatchEx *iface, IUnknown **ppunk)
 
static HTMLWindowimpl_from_IServiceProvider (IServiceProvider *iface)
 
static HRESULT WINAPI HTMLWindowSP_QueryInterface (IServiceProvider *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLWindowSP_AddRef (IServiceProvider *iface)
 
static ULONG WINAPI HTMLWindowSP_Release (IServiceProvider *iface)
 
static HRESULT WINAPI HTMLWindowSP_QueryService (IServiceProvider *iface, REFGUID guidService, REFIID riid, void **ppv)
 
static HTMLInnerWindowimpl_from_DispatchEx (DispatchEx *iface)
 
static HRESULT HTMLWindow_invoke (DispatchEx *dispex, DISPID id, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei, IServiceProvider *caller)
 
static event_target_t ** HTMLWindow_get_event_target_ptr (DispatchEx *dispex)
 
static void HTMLWindow_bind_event (DispatchEx *dispex, int eid)
 
static voidalloc_window (size_t size)
 
static HRESULT create_inner_window (HTMLOuterWindow *outer_window, IMoniker *mon, HTMLInnerWindow **ret)
 
HRESULT HTMLOuterWindow_Create (HTMLDocumentObj *doc_obj, nsIDOMWindow *nswindow, HTMLOuterWindow *parent, HTMLOuterWindow **ret)
 
HRESULT create_pending_window (HTMLOuterWindow *outer_window, nsChannelBSC *channelbsc)
 
HRESULT update_window_doc (HTMLInnerWindow *window)
 
HTMLOuterWindownswindow_to_window (const nsIDOMWindow *nswindow)
 

Variables

static struct list window_list = LIST_INIT(window_list)
 
static const IHTMLWindow2Vtbl HTMLWindow2Vtbl
 
static const IHTMLWindow3Vtbl HTMLWindow3Vtbl
 
static const IHTMLWindow4Vtbl HTMLWindow4Vtbl
 
static const IHTMLWindow5Vtbl HTMLWindow5Vtbl
 
static const IHTMLWindow6Vtbl HTMLWindow6Vtbl
 
static const IHTMLPrivateWindowVtbl HTMLPrivateWindowVtbl
 
static const ITravelLogClientVtbl TravelLogClientVtbl
 
static const IObjectIdentityVtbl ObjectIdentityVtbl
 
static const IDispatchExVtbl WindowDispExVtbl
 
static const IServiceProviderVtbl ServiceProviderVtbl
 
static const dispex_static_data_vtbl_t HTMLWindow_dispex_vtbl
 
static const tid_t HTMLWindow_iface_tids []
 
static dispex_static_data_t HTMLWindow_dispex
 

Macro Definition Documentation

◆ MAX_MESSAGE_LEN

#define MAX_MESSAGE_LEN   2000

Definition at line 566 of file htmlwindow.c.

Referenced by HTMLWindow2_alert().

Function Documentation

◆ alloc_global_prop()

static global_prop_t* alloc_global_prop ( HTMLInnerWindow This,
global_prop_type_t  type,
BSTR  name 
)
static

Definition at line 2481 of file htmlwindow.c.

Referenced by search_window_props(), and WindowDispEx_GetDispID().

2482 {
2483  if(This->global_prop_cnt == This->global_prop_size) {
2484  global_prop_t *new_props;
2485  DWORD new_size;
2486 
2487  if(This->global_props) {
2488  new_size = This->global_prop_size*2;
2489  new_props = heap_realloc(This->global_props, new_size*sizeof(global_prop_t));
2490  }else {
2491  new_size = 16;
2492  new_props = heap_alloc(new_size*sizeof(global_prop_t));
2493  }
2494  if(!new_props)
2495  return NULL;
2496  This->global_props = new_props;
2497  This->global_prop_size = new_size;
2498  }
2499 
2501  if(!This->global_props[This->global_prop_cnt].name)
2502  return NULL;
2503 
2504  This->global_props[This->global_prop_cnt].type = type;
2505  return This->global_props + This->global_prop_cnt++;
2506 }
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
static void * heap_realloc(void *mem, size_t len)
Definition: appwiz.h:70
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
global_prop_type_t type
global_prop_t * global_props
static WCHAR * heap_strdupW(const WCHAR *str)
Definition: propsheet.c:178
smooth NULL
Definition: ftsmooth.c:416
unsigned long DWORD
Definition: ntddk_ex.h:95
Definition: name.c:36

◆ alloc_window()

static void* alloc_window ( size_t  size)
static

Definition at line 2894 of file htmlwindow.c.

Referenced by create_inner_window(), and HTMLOuterWindow_Create().

2895 {
2896  HTMLWindow *window;
2897 
2898  window = heap_alloc_zero(size);
2899  if(!window)
2900  return NULL;
2901 
2902  window->IHTMLWindow2_iface.lpVtbl = &HTMLWindow2Vtbl;
2903  window->IHTMLWindow3_iface.lpVtbl = &HTMLWindow3Vtbl;
2904  window->IHTMLWindow4_iface.lpVtbl = &HTMLWindow4Vtbl;
2905  window->IHTMLWindow5_iface.lpVtbl = &HTMLWindow5Vtbl;
2906  window->IHTMLWindow6_iface.lpVtbl = &HTMLWindow6Vtbl;
2908  window->IDispatchEx_iface.lpVtbl = &WindowDispExVtbl;
2909  window->IServiceProvider_iface.lpVtbl = &ServiceProviderVtbl;
2910  window->ITravelLogClient_iface.lpVtbl = &TravelLogClientVtbl;
2911  window->IObjectIdentity_iface.lpVtbl = &ObjectIdentityVtbl;
2912  window->ref = 1;
2913 
2914  return window;
2915 }
static const IHTMLWindow2Vtbl HTMLWindow2Vtbl
Definition: htmlwindow.c:1463
static const IHTMLWindow3Vtbl HTMLWindow3Vtbl
Definition: htmlwindow.c:1766
IObjectIdentity IObjectIdentity_iface
static const IServiceProviderVtbl ServiceProviderVtbl
Definition: htmlwindow.c:2741
IHTMLWindow5 IHTMLWindow5_iface
IServiceProvider IServiceProvider_iface
static const IHTMLPrivateWindowVtbl HTMLPrivateWindowVtbl
Definition: htmlwindow.c:2279
ITravelLogClient ITravelLogClient_iface
static const ITravelLogClientVtbl TravelLogClientVtbl
Definition: htmlwindow.c:2341
smooth NULL
Definition: ftsmooth.c:416
IDispatchEx IDispatchEx_iface
GLsizeiptr size
Definition: glext.h:5919
IHTMLWindow3 IHTMLWindow3_iface
static IHTMLWindow2 * window
Definition: events.c:77
static const IHTMLWindow6Vtbl HTMLWindow6Vtbl
Definition: htmlwindow.c:2143
static const IHTMLWindow4Vtbl HTMLWindow4Vtbl
Definition: htmlwindow.c:1872
IHTMLWindow6 IHTMLWindow6_iface
static const IHTMLWindow5Vtbl HTMLWindow5Vtbl
Definition: htmlwindow.c:1974
IHTMLWindow4 IHTMLWindow4_iface
IHTMLWindow2 IHTMLWindow2_iface
static const IDispatchExVtbl WindowDispExVtbl
Definition: htmlwindow.c:2682
IHTMLPrivateWindow IHTMLPrivateWindow_iface
static const IObjectIdentityVtbl ObjectIdentityVtbl
Definition: htmlwindow.c:2394

◆ create_inner_window()

static HRESULT create_inner_window ( HTMLOuterWindow outer_window,
IMoniker mon,
HTMLInnerWindow **  ret 
)
static

Definition at line 2917 of file htmlwindow.c.

Referenced by create_pending_window().

2918 {
2920 
2921  window = alloc_window(sizeof(HTMLInnerWindow));
2922  if(!window)
2923  return E_OUTOFMEMORY;
2924 
2925  list_init(&window->script_hosts);
2926  list_init(&window->bindings);
2927  list_init(&window->script_queue);
2928 
2929  window->base.outer_window = outer_window;
2930  window->base.inner_window = window;
2931 
2933 
2934  window->task_magic = get_task_target_magic();
2935 
2936  if(mon) {
2937  IMoniker_AddRef(mon);
2938  window->mon = mon;
2939  }
2940 
2941  *ret = window;
2942  return S_OK;
2943 }
DispatchEx dispex
struct list script_queue
struct list bindings
struct list script_hosts
static dispex_static_data_t HTMLWindow_dispex
Definition: htmlwindow.c:2887
EventTarget event_target
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
HTMLInnerWindow * inner_window
static IHTMLWindow2 * window
Definition: events.c:77
LONG get_task_target_magic(void) DECLSPEC_HIDDEN
Definition: task.c:139
#define S_OK
Definition: intsafe.h:59
HTMLOuterWindow * outer_window
HRESULT init_dispex(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *prototype)
Definition: dispex.c:940
static void * alloc_window(size_t size)
Definition: htmlwindow.c:2894
__WINE_SERVER_LIST_INLINE void list_init(struct list *list)
Definition: list.h:149
IHTMLWindow2 IHTMLWindow2_iface

◆ create_pending_window()

HRESULT create_pending_window ( HTMLOuterWindow outer_window,
nsChannelBSC channelbsc 
)

Definition at line 3009 of file htmlwindow.c.

Referenced by async_open(), HTMLOuterWindow_Create(), return_nsstr_variant(), and set_moniker().

3010 {
3011  HTMLInnerWindow *pending_window;
3012  HRESULT hres;
3013 
3014  hres = create_inner_window(outer_window, outer_window->mon /* FIXME */, &pending_window);
3015  if(FAILED(hres))
3016  return hres;
3017 
3018  if(channelbsc) {
3019  IBindStatusCallback_AddRef(&channelbsc->bsc.IBindStatusCallback_iface);
3020  pending_window->bscallback = channelbsc;
3021  }
3022 
3023  if(outer_window->pending_window) {
3024  abort_window_bindings(outer_window->pending_window);
3025  outer_window->pending_window->base.outer_window = NULL;
3026  IHTMLWindow2_Release(&outer_window->pending_window->base.IHTMLWindow2_iface);
3027  }
3028 
3029  outer_window->pending_window = pending_window;
3030  return S_OK;
3031 }
static HRESULT create_inner_window(HTMLOuterWindow *outer_window, IMoniker *mon, HTMLInnerWindow **ret)
Definition: htmlwindow.c:2917
BSCallback bsc
Definition: binding.h:98
HTMLInnerWindow * pending_window
smooth NULL
Definition: ftsmooth.c:416
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
void abort_window_bindings(HTMLInnerWindow *) DECLSPEC_HIDDEN
Definition: navigate.c:1775
#define S_OK
Definition: intsafe.h:59
nsChannelBSC * bscallback
HTMLOuterWindow * outer_window
IBindStatusCallback IBindStatusCallback_iface
Definition: binding.h:72
IHTMLWindow2 IHTMLWindow2_iface

◆ detach_inner_window()

static void detach_inner_window ( HTMLInnerWindow window)
static

Definition at line 87 of file htmlwindow.c.

Referenced by release_inner_window(), release_outer_window(), and update_window_doc().

88 {
89  HTMLOuterWindow *outer_window = window->base.outer_window;
90 
91  if(outer_window && outer_window->doc_obj && outer_window == outer_window->doc_obj->basedoc.window)
93 
94  if(window->doc) {
95  detach_events(window->doc);
96  while(!list_empty(&window->doc->plugin_hosts))
98  }
99 
100  abort_window_bindings(window);
102  release_script_hosts(window);
103  window->base.outer_window = NULL;
104 
105  if(outer_window && outer_window->base.inner_window == window) {
106  outer_window->base.inner_window = NULL;
107  IHTMLWindow2_Release(&window->base.IHTMLWindow2_iface);
108  }
109 }
struct list plugin_hosts
HTMLDocumentNode * doc
uint8_t entry
Definition: isohybrid.c:63
HTMLOuterWindow * window
HTMLDocument basedoc
__WINE_SERVER_LIST_INLINE struct list * list_head(const struct list *list)
Definition: list.h:131
smooth NULL
Definition: ftsmooth.c:416
void release_script_hosts(HTMLInnerWindow *) DECLSPEC_HIDDEN
Definition: script.c:1583
void remove_target_tasks(LONG) DECLSPEC_HIDDEN
Definition: task.c:107
HTMLInnerWindow * inner_window
HTMLDocument basedoc
ConnectionPointContainer cp_container
void abort_window_bindings(HTMLInnerWindow *) DECLSPEC_HIDDEN
Definition: navigate.c:1775
struct ConnectionPointContainer * forward_container
__WINE_SERVER_LIST_INLINE int list_empty(const struct list *list)
Definition: list.h:143
void detach_events(HTMLDocumentNode *doc)
Definition: htmlevent.c:1341
HTMLDocumentObj * doc_obj
HTMLOuterWindow * outer_window
IHTMLWindow2 IHTMLWindow2_iface
void detach_plugin_host(PluginHost *host)
Definition: pluginhost.c:1988
#define LIST_ENTRY(type)
Definition: queue.h:175

◆ get_frame_by_index()

static HRESULT get_frame_by_index ( HTMLOuterWindow This,
UINT32  index,
HTMLOuterWindow **  ret 
)
static

Definition at line 309 of file htmlwindow.c.

Referenced by HTMLWindow2_item().

310 {
311  nsIDOMWindowCollection *nsframes;
312  nsIDOMWindow *nswindow;
313  UINT32 length;
314  nsresult nsres;
315 
316  nsres = nsIDOMWindow_GetFrames(This->nswindow, &nsframes);
317  if(NS_FAILED(nsres)) {
318  FIXME("nsIDOMWindow_GetFrames failed: 0x%08x\n", nsres);
319  return E_FAIL;
320  }
321 
322  nsres = nsIDOMWindowCollection_GetLength(nsframes, &length);
323  assert(nsres == NS_OK);
324 
325  if(index >= length) {
326  nsIDOMWindowCollection_Release(nsframes);
327  return DISP_E_MEMBERNOTFOUND;
328  }
329 
330  nsres = nsIDOMWindowCollection_Item(nsframes, index, &nswindow);
331  nsIDOMWindowCollection_Release(nsframes);
332  if(NS_FAILED(nsres)) {
333  FIXME("nsIDOMWindowCollection_Item failed: 0x%08x\n", nsres);
334  return E_FAIL;
335  }
336 
337  *ret = nswindow_to_window(nswindow);
338 
339  nsIDOMWindow_Release(nswindow);
340  return S_OK;
341 }
#define DISP_E_MEMBERNOTFOUND
Definition: winerror.h:2512
#define assert(x)
Definition: debug.h:53
#define E_FAIL
Definition: ddrawi.h:102
#define NS_OK
unsigned int UINT32
#define FIXME(fmt,...)
Definition: debug.h:110
HTMLOuterWindow * nswindow_to_window(const nsIDOMWindow *nswindow)
Definition: htmlwindow.c:3099
GLuint index
Definition: glext.h:6031
#define NS_FAILED(res)
GLenum GLuint GLenum GLsizei length
Definition: glext.h:5579
nsIDOMWindow * nswindow
#define S_OK
Definition: intsafe.h:59
HRESULT nsresult
Definition: nsiface.idl:39

◆ get_frame_by_name()

HRESULT get_frame_by_name ( HTMLOuterWindow This,
const WCHAR name,
BOOL  deep,
HTMLOuterWindow **  ret 
)

Definition at line 343 of file htmlwindow.c.

Referenced by get_frame_by_name(), get_target_window(), HTMLWindow2_item(), HTMLWindow_invoke(), and WindowDispEx_GetDispID().

344 {
345  nsIDOMWindowCollection *nsframes;
347  nsIDOMWindow *nswindow;
348  nsAString name_str;
349  UINT32 length, i;
350  nsresult nsres;
351  HRESULT hres = S_OK;
352 
353  nsres = nsIDOMWindow_GetFrames(This->nswindow, &nsframes);
354  if(NS_FAILED(nsres)) {
355  FIXME("nsIDOMWindow_GetFrames failed: 0x%08x\n", nsres);
356  return E_FAIL;
357  }
358 
359  if(!nsframes) {
360  WARN("nsIDOMWindow_GetFrames returned NULL nsframes: %p\n", This->nswindow);
361  return DISP_E_MEMBERNOTFOUND;
362  }
363 
364  nsAString_InitDepend(&name_str, name);
365  nsres = nsIDOMWindowCollection_NamedItem(nsframes, &name_str, &nswindow);
366  nsAString_Finish(&name_str);
367  if(NS_FAILED(nsres)) {
368  nsIDOMWindowCollection_Release(nsframes);
369  return E_FAIL;
370  }
371 
372  if(nswindow) {
373  *ret = nswindow_to_window(nswindow);
374  return S_OK;
375  }
376 
377  nsres = nsIDOMWindowCollection_GetLength(nsframes, &length);
378  assert(nsres == NS_OK);
379 
380  for(i = 0; i < length && !window; ++i) {
381  HTMLOuterWindow *window_iter;
382  BSTR id;
383 
384  nsres = nsIDOMWindowCollection_Item(nsframes, i, &nswindow);
385  if(NS_FAILED(nsres)) {
386  FIXME("nsIDOMWindowCollection_Item failed: 0x%08x\n", nsres);
387  hres = E_FAIL;
388  break;
389  }
390 
391  window_iter = nswindow_to_window(nswindow);
392 
393  nsIDOMWindow_Release(nswindow);
394 
395  if(!window_iter) {
396  WARN("nsIDOMWindow without HTMLOuterWindow: %p\n", nswindow);
397  continue;
398  }
399 
400  hres = IHTMLElement_get_id(&window_iter->frame_element->element.IHTMLElement_iface, &id);
401  if(FAILED(hres)) {
402  FIXME("IHTMLElement_get_id failed: 0x%08x\n", hres);
403  break;
404  }
405 
406  if(id && !strcmpiW(id, name))
407  window = window_iter;
408 
409  SysFreeString(id);
410 
411  if(!window && deep)
412  get_frame_by_name(window_iter, name, TRUE, &window);
413  }
414 
415  nsIDOMWindowCollection_Release(nsframes);
416  if(FAILED(hres))
417  return hres;
418 
419  *ret = window;
420  return NS_OK;
421 }
#define TRUE
Definition: types.h:120
#define WARN(fmt,...)
Definition: debug.h:111
#define DISP_E_MEMBERNOTFOUND
Definition: winerror.h:2512
void WINAPI SysFreeString(BSTR str)
Definition: oleaut.c:275
#define assert(x)
Definition: debug.h:53
OLECHAR * BSTR
Definition: compat.h:1927
#define E_FAIL
Definition: ddrawi.h:102
HTMLFrameBase * frame_element
#define NS_OK
GLenum GLclampf GLint i
Definition: glfuncs.h:14
unsigned int UINT32
#define FIXME(fmt,...)
Definition: debug.h:110
smooth NULL
Definition: ftsmooth.c:416
HTMLOuterWindow * nswindow_to_window(const nsIDOMWindow *nswindow)
Definition: htmlwindow.c:3099
#define NS_FAILED(res)
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
GLenum GLuint GLenum GLsizei length
Definition: glext.h:5579
nsIDOMWindow * nswindow
HTMLElement element
static IHTMLWindow2 * window
Definition: events.c:77
#define strcmpiW(s1, s2)
Definition: unicode.h:39
IHTMLElement IHTMLElement_iface
#define S_OK
Definition: intsafe.h:59
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
Definition: name.c:36
HRESULT nsresult
Definition: nsiface.idl:39
GLenum GLuint id
Definition: glext.h:5579
HRESULT get_frame_by_name(HTMLOuterWindow *This, const WCHAR *name, BOOL deep, HTMLOuterWindow **ret)
Definition: htmlwindow.c:343

◆ get_location()

static HRESULT get_location ( HTMLInnerWindow This,
HTMLLocation **  ret 
)
static

Definition at line 43 of file htmlwindow.c.

Referenced by XMLStorage::XMLReaderBase::clear_errors(), FT_DEFINE_SERVICE(), XMLStorage::XMLReaderBase::get_position(), HTMLWindow2_get_location(), XMLStorage::XMLNode::set_sub_content(), XMLStorage::XMLReaderBase::StartElementHandler(), and WindowDispEx_InvokeEx().

44 {
45  if(This->location) {
46  IHTMLLocation_AddRef(&This->location->IHTMLLocation_iface);
47  }else {
48  HRESULT hres;
49 
50  hres = HTMLLocation_Create(This, &This->location);
51  if(FAILED(hres))
52  return hres;
53  }
54 
55  *ret = This->location;
56  return S_OK;
57 }
HRESULT HTMLLocation_Create(HTMLInnerWindow *window, HTMLLocation **ret)
Definition: htmllocation.c:622
IHTMLLocation IHTMLLocation_iface
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
HTMLLocation * location
#define S_OK
Definition: intsafe.h:59

◆ get_top_window()

void get_top_window ( HTMLOuterWindow window,
HTMLOuterWindow **  ret 
)

Definition at line 59 of file htmlwindow.c.

Referenced by get_target_window(), and HTMLWindow2_get_top().

60 {
61  HTMLOuterWindow *iter;
62 
63  for(iter = window; iter->parent; iter = iter->parent);
64  *ret = iter;
65 }
HTMLOuterWindow * parent

◆ get_window_event()

static HRESULT get_window_event ( HTMLWindow window,
eventid_t  eid,
VARIANT var 
)
inlinestatic

Definition at line 77 of file htmlwindow.c.

Referenced by HTMLWindow2_get_onbeforeunload(), HTMLWindow2_get_onblur(), HTMLWindow2_get_onerror(), HTMLWindow2_get_onfocus(), HTMLWindow2_get_onhelp(), HTMLWindow2_get_onload(), HTMLWindow2_get_onresize(), and HTMLWindow2_get_onscroll().

78 {
79  if(!window->inner_window->doc) {
80  FIXME("No document\n");
81  return E_FAIL;
82  }
83 
84  return get_event_handler(&window->inner_window->event_target, eid, var);
85 }
HTMLDocumentNode * doc
EventTarget event_target
#define E_FAIL
Definition: ddrawi.h:102
#define FIXME(fmt,...)
Definition: debug.h:110
HTMLInnerWindow * inner_window
HRESULT get_event_handler(EventTarget *event_target, eventid_t eid, VARIANT *var)
Definition: htmlevent.c:1447

◆ HTMLOuterWindow_Create()

HRESULT HTMLOuterWindow_Create ( HTMLDocumentObj doc_obj,
nsIDOMWindow nswindow,
HTMLOuterWindow parent,
HTMLOuterWindow **  ret 
)

Definition at line 2945 of file htmlwindow.c.

Referenced by HTMLDocument_Create(), and set_frame_doc().

2947 {
2949  HRESULT hres;
2950 
2951  window = alloc_window(sizeof(HTMLOuterWindow));
2952  if(!window)
2953  return E_OUTOFMEMORY;
2954 
2955  window->base.outer_window = window;
2956  window->base.inner_window = NULL;
2957 
2958  window->window_ref = heap_alloc(sizeof(windowref_t));
2959  if(!window->window_ref) {
2960  heap_free(window);
2961  return E_OUTOFMEMORY;
2962  }
2963 
2964  window->doc_obj = doc_obj;
2965 
2966  window->window_ref->window = window;
2967  window->window_ref->ref = 1;
2968 
2969  if(nswindow) {
2970  nsIDOMWindow_AddRef(nswindow);
2971  window->nswindow = nswindow;
2972  }
2973 
2974  window->scriptmode = parent ? parent->scriptmode : SCRIPTMODE_GECKO;
2975  window->readystate = READYSTATE_UNINITIALIZED;
2976 
2977  hres = create_pending_window(window, NULL);
2978  if(SUCCEEDED(hres))
2979  hres = update_window_doc(window->pending_window);
2980  if(FAILED(hres)) {
2981  IHTMLWindow2_Release(&window->base.IHTMLWindow2_iface);
2982  return hres;
2983  }
2984 
2985  hres = CoInternetCreateSecurityManager(NULL, &window->secmgr, 0);
2986  if(FAILED(hres)) {
2987  IHTMLWindow2_Release(&window->base.IHTMLWindow2_iface);
2988  return hres;
2989  }
2990 
2991  window->task_magic = get_task_target_magic();
2992 
2993  list_init(&window->children);
2994  list_add_head(&window_list, &window->entry);
2995 
2996  if(parent) {
2997  IHTMLWindow2_AddRef(&window->base.IHTMLWindow2_iface);
2998 
2999  window->parent = parent;
3000  list_add_tail(&parent->children, &window->sibling_entry);
3001  }
3002 
3003  TRACE("%p inner_window %p\n", window, window->base.inner_window);
3004 
3005  *ret = window;
3006  return S_OK;
3007 }
static struct list window_list
Definition: htmlwindow.c:23
HRESULT update_window_doc(HTMLInnerWindow *window)
Definition: htmlwindow.c:3033
__WINE_SERVER_LIST_INLINE void list_add_head(struct list *list, struct list *elem)
Definition: list.h:96
SCRIPTMODE scriptmode
struct list entry
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
HTMLOuterWindow * window
__WINE_SERVER_LIST_INLINE void list_add_tail(struct list *list, struct list *elem)
Definition: list.h:102
HTMLOuterWindow * parent
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
HTMLInnerWindow * pending_window
struct list sibling_entry
smooth NULL
Definition: ftsmooth.c:416
HRESULT create_pending_window(HTMLOuterWindow *outer_window, nsChannelBSC *channelbsc)
Definition: htmlwindow.c:3009
HTMLInnerWindow * inner_window
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
r parent
Definition: btrfs.c:2644
LONG HRESULT
Definition: typedefs.h:77
READYSTATE readystate
nsIDOMWindow * nswindow
IInternetSecurityManager * secmgr
static IHTMLWindow2 * window
Definition: events.c:77
LONG get_task_target_magic(void) DECLSPEC_HIDDEN
Definition: task.c:139
HRESULT WINAPI CoInternetCreateSecurityManager(IServiceProvider *pSP, IInternetSecurityManager **ppSM, DWORD dwReserved)
Definition: sec_mgr.c:1845
#define S_OK
Definition: intsafe.h:59
HTMLDocumentObj * doc_obj
HTMLOuterWindow * outer_window
windowref_t * window_ref
static void * alloc_window(size_t size)
Definition: htmlwindow.c:2894
__WINE_SERVER_LIST_INLINE void list_init(struct list *list)
Definition: list.h:149
IHTMLWindow2 IHTMLWindow2_iface
struct list children
#define SUCCEEDED(hr)
Definition: intsafe.h:57
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ HTMLPrivateWindow_AddRef()

static ULONG WINAPI HTMLPrivateWindow_AddRef ( IHTMLPrivateWindow iface)
static

Definition at line 2177 of file htmlwindow.c.

2178 {
2180 
2181  return IHTMLWindow2_AddRef(&This->IHTMLWindow2_iface);
2182 }
static HTMLWindow * impl_from_IHTMLPrivateWindow(IHTMLPrivateWindow *iface)
Definition: htmlwindow.c:2165
IHTMLWindow2 IHTMLWindow2_iface

◆ HTMLPrivateWindow_FindWindowByName()

static HRESULT WINAPI HTMLPrivateWindow_FindWindowByName ( IHTMLPrivateWindow iface,
LPCWSTR  name,
IHTMLWindow2 **  ret 
)
static

Definition at line 2260 of file htmlwindow.c.

2261 {
2263  FIXME("(%p)->(%s %p)\n", This, debugstr_w(name), ret);
2264  return E_NOTIMPL;
2265 }
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLPrivateWindow(IHTMLPrivateWindow *iface)
Definition: htmlwindow.c:2165
int ret
#define E_NOTIMPL
Definition: ddrawi.h:99
Definition: name.c:36

◆ HTMLPrivateWindow_GetAddressBarUrl()

static HRESULT WINAPI HTMLPrivateWindow_GetAddressBarUrl ( IHTMLPrivateWindow iface,
BSTR url 
)
static

Definition at line 2267 of file htmlwindow.c.

2268 {
2270  TRACE("(%p)->(%p)\n", This, url);
2271 
2272  if(!url)
2273  return E_INVALIDARG;
2274 
2275  *url = SysAllocString(This->outer_window->url);
2276  return S_OK;
2277 }
#define E_INVALIDARG
Definition: ddrawi.h:101
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:242
#define TRACE(s)
Definition: solgame.cpp:4
static const WCHAR url[]
Definition: encode.c:1432
static HTMLWindow * impl_from_IHTMLPrivateWindow(IHTMLPrivateWindow *iface)
Definition: htmlwindow.c:2165
#define S_OK
Definition: intsafe.h:59
HTMLOuterWindow * outer_window

◆ HTMLPrivateWindow_GetPendingUrl()

static HRESULT WINAPI HTMLPrivateWindow_GetPendingUrl ( IHTMLPrivateWindow iface,
BSTR url 
)
static

Definition at line 2239 of file htmlwindow.c.

2240 {
2242  FIXME("(%p)->(%p)\n", This, url);
2243  return E_NOTIMPL;
2244 }
#define FIXME(fmt,...)
Definition: debug.h:110
static const WCHAR url[]
Definition: encode.c:1432
static HTMLWindow * impl_from_IHTMLPrivateWindow(IHTMLPrivateWindow *iface)
Definition: htmlwindow.c:2165
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLPrivateWindow_PICSComplete()

static HRESULT WINAPI HTMLPrivateWindow_PICSComplete ( IHTMLPrivateWindow iface,
int  arg 
)
static

Definition at line 2253 of file htmlwindow.c.

2254 {
2256  FIXME("(%p)->(%x)\n", This, arg);
2257  return E_NOTIMPL;
2258 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLPrivateWindow(IHTMLPrivateWindow *iface)
Definition: htmlwindow.c:2165
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLPrivateWindow_QueryInterface()

static HRESULT WINAPI HTMLPrivateWindow_QueryInterface ( IHTMLPrivateWindow iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 2170 of file htmlwindow.c.

2171 {
2173 
2174  return IHTMLWindow2_QueryInterface(&This->IHTMLWindow2_iface, riid, ppv);
2175 }
REFIID riid
Definition: precomp.h:44
static HTMLWindow * impl_from_IHTMLPrivateWindow(IHTMLPrivateWindow *iface)
Definition: htmlwindow.c:2165
IHTMLWindow2 IHTMLWindow2_iface

◆ HTMLPrivateWindow_Release()

static ULONG WINAPI HTMLPrivateWindow_Release ( IHTMLPrivateWindow iface)
static

Definition at line 2184 of file htmlwindow.c.

2185 {
2187 
2188  return IHTMLWindow2_Release(&This->IHTMLWindow2_iface);
2189 }
static HTMLWindow * impl_from_IHTMLPrivateWindow(IHTMLPrivateWindow *iface)
Definition: htmlwindow.c:2165
IHTMLWindow2 IHTMLWindow2_iface

◆ HTMLPrivateWindow_SetPICSTarget()

static HRESULT WINAPI HTMLPrivateWindow_SetPICSTarget ( IHTMLPrivateWindow iface,
IOleCommandTarget cmdtrg 
)
static

Definition at line 2246 of file htmlwindow.c.

2247 {
2249  FIXME("(%p)->(%p)\n", This, cmdtrg);
2250  return E_NOTIMPL;
2251 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLPrivateWindow(IHTMLPrivateWindow *iface)
Definition: htmlwindow.c:2165
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLPrivateWindow_SuperNavigate()

static HRESULT WINAPI HTMLPrivateWindow_SuperNavigate ( IHTMLPrivateWindow iface,
BSTR  url,
BSTR  arg2,
BSTR  arg3,
BSTR  arg4,
VARIANT post_data_var,
VARIANT headers_var,
ULONG  flags 
)
static

Definition at line 2191 of file htmlwindow.c.

2193 {
2196  OLECHAR *translated_url = NULL;
2197  DWORD post_data_size = 0;
2198  BYTE *post_data = NULL;
2199  WCHAR *headers = NULL;
2200  IUri *uri;
2201  HRESULT hres;
2202 
2203  TRACE("(%p)->(%s %s %s %s %s %s %x)\n", This, debugstr_w(url), debugstr_w(arg2), debugstr_w(arg3), debugstr_w(arg4),
2204  debugstr_variant(post_data_var), debugstr_variant(headers_var), flags);
2205 
2206  if(window->doc_obj->hostui) {
2207  hres = IDocHostUIHandler_TranslateUrl(window->doc_obj->hostui, 0, url, &translated_url);
2208  if(hres != S_OK)
2209  translated_url = NULL;
2210  }
2211 
2212  hres = create_uri(translated_url ? translated_url : url, 0, &uri);
2213  CoTaskMemFree(translated_url);
2214  if(FAILED(hres))
2215  return hres;
2216 
2217  if(post_data_var) {
2218  if(V_VT(post_data_var) == (VT_ARRAY|VT_UI1)) {
2219  SafeArrayAccessData(V_ARRAY(post_data_var), (void**)&post_data);
2220  post_data_size = V_ARRAY(post_data_var)->rgsabound[0].cElements;
2221  }
2222  }
2223 
2224  if(headers_var && V_VT(headers_var) != VT_EMPTY && V_VT(headers_var) != VT_ERROR) {
2225  if(V_VT(headers_var) != VT_BSTR)
2226  return E_INVALIDARG;
2227 
2228  headers = V_BSTR(headers_var);
2229  }
2230 
2231  hres = super_navigate(window, uri, BINDING_NAVIGATED|BINDING_NOFRAG, headers, post_data, post_data_size);
2232  IUri_Release(uri);
2233  if(post_data)
2234  SafeArrayUnaccessData(V_ARRAY(post_data_var));
2235 
2236  return hres;
2237 }
WCHAR OLECHAR
Definition: compat.h:1926
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:422
__wchar_t WCHAR
Definition: xmlstorage.h:180
const char * uri
Definition: sec_mgr.c:1594
#define V_ARRAY(A)
Definition: oleauto.h:222
vector< Header * > headers
Definition: sdkparse.cpp:39
GLuint GLuint GLuint GLuint GLuint GLuint GLuint arg2
Definition: glext.h:9514
HRESULT WINAPI SafeArrayAccessData(SAFEARRAY *psa, void **ppvData)
Definition: safearray.c:1139
HRESULT super_navigate(HTMLOuterWindow *, IUri *, DWORD, const WCHAR *, BYTE *, DWORD) DECLSPEC_HIDDEN
Definition: navigate.c:2016
#define debugstr_w
Definition: kernel32.h:32
#define E_INVALIDARG
Definition: ddrawi.h:101
smooth NULL
Definition: ftsmooth.c:416
GLuint GLuint GLuint GLuint GLuint GLuint GLuint GLuint GLuint GLuint arg3
Definition: glext.h:9515
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
static const WCHAR url[]
Definition: encode.c:1432
static HTMLWindow * impl_from_IHTMLPrivateWindow(IHTMLPrivateWindow *iface)
Definition: htmlwindow.c:2165
unsigned long DWORD
Definition: ntddk_ex.h:95
GLbitfield flags
Definition: glext.h:7161
static const CHAR post_data[]
Definition: protocol.c:215
#define V_VT(A)
Definition: oleauto.h:211
static IHTMLWindow2 * window
Definition: events.c:77
#define V_BSTR(A)
Definition: oleauto.h:226
unsigned char BYTE
Definition: ntddk_ex.h:96
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define S_OK
Definition: intsafe.h:59
HTMLDocumentObj * doc_obj
HTMLOuterWindow * outer_window
#define BINDING_NAVIGATED
Definition: binding.h:127
IDocHostUIHandler * hostui
#define BINDING_NOFRAG
Definition: binding.h:132
HRESULT WINAPI SafeArrayUnaccessData(SAFEARRAY *psa)
Definition: safearray.c:1170
HRESULT create_uri(const WCHAR *, DWORD, IUri **) DECLSPEC_HIDDEN
Definition: persist.c:158

◆ HTMLWindow2_AddRef()

static ULONG WINAPI HTMLWindow2_AddRef ( IHTMLWindow2 iface)
static

Definition at line 161 of file htmlwindow.c.

Referenced by HTMLWindow2_get_frames().

162 {
164  LONG ref = InterlockedIncrement(&This->ref);
165 
166  TRACE("(%p) ref=%d\n", This, ref);
167 
168  return ref;
169 }
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedIncrement
Definition: armddk.h:53

◆ HTMLWindow2_alert()

static HRESULT WINAPI HTMLWindow2_alert ( IHTMLWindow2 iface,
BSTR  message 
)
static

Definition at line 568 of file htmlwindow.c.

569 {
571  WCHAR title[100], *msg = message;
572  DWORD len;
573 
574  TRACE("(%p)->(%s)\n", This, debugstr_w(message));
575 
577  sizeof(title)/sizeof(WCHAR))) {
578  WARN("Could not load message box title: %d\n", GetLastError());
579  return S_OK;
580  }
581 
582  len = SysStringLen(message);
583  if(len > MAX_MESSAGE_LEN) {
584  msg = heap_alloc((MAX_MESSAGE_LEN+1)*sizeof(WCHAR));
585  if(!msg)
586  return E_OUTOFMEMORY;
587  memcpy(msg, message, MAX_MESSAGE_LEN*sizeof(WCHAR));
588  msg[MAX_MESSAGE_LEN] = 0;
589  }
590 
591  MessageBoxW(This->outer_window->doc_obj->hwnd, msg, title, MB_ICONWARNING);
592  if(msg != message)
593  heap_free(msg);
594  return S_OK;
595 }
HINSTANCE get_shdoclc(void)
Definition: main.c:155
Definition: tftpd.h:59
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define WARN(fmt,...)
Definition: debug.h:111
GLenum GLuint GLenum GLsizei const GLchar * message
Definition: glext.h:5579
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1059
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
#define MB_ICONWARNING
Definition: winuser.h:780
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define debugstr_w
Definition: kernel32.h:32
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
UINT msg
Definition: msvc.h:92
#define IDS_MESSAGE_BOX_TITLE
Definition: resource.h:32
#define TRACE(s)
Definition: solgame.cpp:4
int WINAPI MessageBoxW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_ UINT)
unsigned long DWORD
Definition: ntddk_ex.h:95
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
GLenum GLsizei len
Definition: glext.h:6722
UINT WINAPI SysStringLen(BSTR str)
Definition: oleaut.c:200
#define S_OK
Definition: intsafe.h:59
HTMLDocumentObj * doc_obj
HTMLOuterWindow * outer_window
static char title[]
Definition: ps.c:92
static BOOL heap_free(void *mem)
Definition: appwiz.h:75
#define MAX_MESSAGE_LEN
Definition: htmlwindow.c:566

◆ HTMLWindow2_blur()

static HRESULT WINAPI HTMLWindow2_blur ( IHTMLWindow2 iface)
static

Definition at line 1302 of file htmlwindow.c.

1303 {
1305  FIXME("(%p)->()\n", This);
1306  return E_NOTIMPL;
1307 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLWindow2_clearInterval()

static HRESULT WINAPI HTMLWindow2_clearInterval ( IHTMLWindow2 iface,
LONG  timerID 
)
static

Definition at line 1345 of file htmlwindow.c.

1346 {
1348 
1349  TRACE("(%p)->(%d)\n", This, timerID);
1350 
1351  return clear_task_timer(This->inner_window, TRUE, timerID);
1352 }
#define TRUE
Definition: types.h:120
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
HTMLInnerWindow * inner_window
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT clear_task_timer(HTMLInnerWindow *, BOOL, DWORD) DECLSPEC_HIDDEN
Definition: task.c:201

◆ HTMLWindow2_clearTimeout()

static HRESULT WINAPI HTMLWindow2_clearTimeout ( IHTMLWindow2 iface,
LONG  timerID 
)
static

Definition at line 557 of file htmlwindow.c.

558 {
560 
561  TRACE("(%p)->(%d)\n", This, timerID);
562 
563  return clear_task_timer(This->inner_window, FALSE, timerID);
564 }
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
HTMLInnerWindow * inner_window
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT clear_task_timer(HTMLInnerWindow *, BOOL, DWORD) DECLSPEC_HIDDEN
Definition: task.c:201

◆ HTMLWindow2_close()

static HRESULT WINAPI HTMLWindow2_close ( IHTMLWindow2 iface)
static

Definition at line 825 of file htmlwindow.c.

826 {
829 
830  TRACE("(%p)\n", This);
831 
832  if(!window->doc_obj) {
833  FIXME("No document object\n");
834  return E_FAIL;
835  }
836 
837  if(!notify_webbrowser_close(window, window->doc_obj))
838  return S_OK;
839 
840  FIXME("default action not implemented\n");
841  return E_NOTIMPL;
842 }
#define E_FAIL
Definition: ddrawi.h:102
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
static BOOL notify_webbrowser_close(HTMLOuterWindow *window, HTMLDocumentObj *doc)
Definition: htmlwindow.c:768
#define TRACE(s)
Definition: solgame.cpp:4
static IHTMLWindow2 * window
Definition: events.c:77
#define S_OK
Definition: intsafe.h:59
HTMLDocumentObj * doc_obj
#define E_NOTIMPL
Definition: ddrawi.h:99
HTMLOuterWindow * outer_window

◆ HTMLWindow2_confirm()

static HRESULT WINAPI HTMLWindow2_confirm ( IHTMLWindow2 iface,
BSTR  message,
VARIANT_BOOL confirmed 
)
static

Definition at line 597 of file htmlwindow.c.

599 {
601  WCHAR wszTitle[100];
602 
603  TRACE("(%p)->(%s %p)\n", This, debugstr_w(message), confirmed);
604 
605  if(!confirmed) return E_INVALIDARG;
606 
608  sizeof(wszTitle)/sizeof(WCHAR))) {
609  WARN("Could not load message box title: %d\n", GetLastError());
610  *confirmed = VARIANT_TRUE;
611  return S_OK;
612  }
613 
614  if(MessageBoxW(This->outer_window->doc_obj->hwnd, message, wszTitle,
616  *confirmed = VARIANT_TRUE;
617  else *confirmed = VARIANT_FALSE;
618 
619  return S_OK;
620 }
HINSTANCE get_shdoclc(void)
Definition: main.c:155
Definition: tftpd.h:59
#define IDOK
Definition: winuser.h:824
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define WARN(fmt,...)
Definition: debug.h:111
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1059
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
#define debugstr_w
Definition: kernel32.h:32
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define E_INVALIDARG
Definition: ddrawi.h:101
#define MB_ICONQUESTION
Definition: winuser.h:783
#define MB_OKCANCEL
Definition: winuser.h:798
#define IDS_MESSAGE_BOX_TITLE
Definition: resource.h:32
#define TRACE(s)
Definition: solgame.cpp:4
int WINAPI MessageBoxW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_ UINT)
#define S_OK
Definition: intsafe.h:59
HTMLDocumentObj * doc_obj
HTMLOuterWindow * outer_window

◆ HTMLWindow2_execScript()

static HRESULT WINAPI HTMLWindow2_execScript ( IHTMLWindow2 iface,
BSTR  scode,
BSTR  language,
VARIANT pvarRet 
)
static

Definition at line 1368 of file htmlwindow.c.

1370 {
1372 
1373  TRACE("(%p)->(%s %s %p)\n", This, debugstr_w(scode), debugstr_w(language), pvarRet);
1374 
1375  return exec_script(This->inner_window, scode, language, pvarRet);
1376 }
#define debugstr_w
Definition: kernel32.h:32
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
HTMLInnerWindow * inner_window
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT exec_script(HTMLInnerWindow *, const WCHAR *, const WCHAR *, VARIANT *) DECLSPEC_HIDDEN
Definition: script.c:1245

◆ HTMLWindow2_focus()

static HRESULT WINAPI HTMLWindow2_focus ( IHTMLWindow2 iface)
static

Definition at line 1284 of file htmlwindow.c.

1285 {
1287 
1288  TRACE("(%p)->()\n", This);
1289 
1290  if(This->outer_window->doc_obj)
1291  SetFocus(This->outer_window->doc_obj->hwnd);
1292  return S_OK;
1293 }
HWND WINAPI SetFocus(_In_opt_ HWND)
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
HTMLDocumentObj * doc_obj
HTMLOuterWindow * outer_window

◆ HTMLWindow2_get__newEnum()

static HRESULT WINAPI HTMLWindow2_get__newEnum ( IHTMLWindow2 iface,
IUnknown **  p 
)
static

Definition at line 1220 of file htmlwindow.c.

1221 {
1223  FIXME("(%p)->(%p)\n", This, p);
1224  return E_NOTIMPL;
1225 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLWindow2_get_clientInformation()

static HRESULT WINAPI HTMLWindow2_get_clientInformation ( IHTMLWindow2 iface,
IOmNavigator **  p 
)
static

Definition at line 1325 of file htmlwindow.c.

1326 {
1328  FIXME("(%p)->(%p)\n", This, p);
1329  return E_NOTIMPL;
1330 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLWindow2_get_closed()

static HRESULT WINAPI HTMLWindow2_get_closed ( IHTMLWindow2 iface,
VARIANT_BOOL p 
)
static

Definition at line 1295 of file htmlwindow.c.

1296 {
1298  FIXME("(%p)->(%p)\n", This, p);
1299  return E_NOTIMPL;
1300 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLWindow2_get_defaultStatus()

static HRESULT WINAPI HTMLWindow2_get_defaultStatus ( IHTMLWindow2 iface,
BSTR p 
)
static

Definition at line 512 of file htmlwindow.c.

513 {
515  FIXME("(%p)->(%p)\n", This, p);
516  return E_NOTIMPL;
517 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLWindow2_get_document()

static HRESULT WINAPI HTMLWindow2_get_document ( IHTMLWindow2 iface,
IHTMLDocument2 **  p 
)
static

Definition at line 1190 of file htmlwindow.c.

1191 {
1193 
1194  TRACE("(%p)->(%p)\n", This, p);
1195 
1196  if(This->inner_window->doc) {
1197  /* FIXME: We should return a wrapper object here */
1199  IHTMLDocument2_AddRef(*p);
1200  }else {
1201  *p = NULL;
1202  }
1203 
1204  return S_OK;
1205 }
HTMLDocumentNode * doc
HTMLDocument basedoc
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
smooth NULL
Definition: ftsmooth.c:416
HTMLInnerWindow * inner_window
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
IHTMLDocument2 IHTMLDocument2_iface
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLWindow2_get_event()

static HRESULT WINAPI HTMLWindow2_get_event ( IHTMLWindow2 iface,
IHTMLEventObj **  p 
)
static

Definition at line 1207 of file htmlwindow.c.

1208 {
1211 
1212  TRACE("(%p)->(%p)\n", This, p);
1213 
1214  if(window->event)
1215  IHTMLEventObj_AddRef(window->event);
1216  *p = window->event;
1217  return S_OK;
1218 }
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
HTMLInnerWindow * inner_window
#define TRACE(s)
Definition: solgame.cpp:4
static IHTMLWindow2 * window
Definition: events.c:77
IHTMLEventObj * event
#define S_OK
Definition: intsafe.h:59
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLWindow2_get_external()

static HRESULT WINAPI HTMLWindow2_get_external ( IHTMLWindow2 iface,
IDispatch **  p 
)
static

Definition at line 1449 of file htmlwindow.c.

1450 {
1452 
1453  TRACE("(%p)->(%p)\n", This, p);
1454 
1455  *p = NULL;
1456 
1457  if(!This->outer_window->doc_obj->hostui)
1458  return S_OK;
1459 
1460  return IDocHostUIHandler_GetExternal(This->outer_window->doc_obj->hostui, p);
1461 }
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
HTMLDocumentObj * doc_obj
HTMLOuterWindow * outer_window
IDocHostUIHandler * hostui

◆ HTMLWindow2_get_frames()

static HRESULT WINAPI HTMLWindow2_get_frames ( IHTMLWindow2 iface,
IHTMLFramesCollection2 **  p 
)
static

Definition at line 494 of file htmlwindow.c.

495 {
497  FIXME("(%p)->(%p): semi-stub\n", This, p);
498 
499  /* FIXME: Should return a separate Window object */
500  *p = (IHTMLFramesCollection2*)&This->IHTMLWindow2_iface;
501  HTMLWindow2_AddRef(iface);
502  return S_OK;
503 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define S_OK
Definition: intsafe.h:59
static ULONG WINAPI HTMLWindow2_AddRef(IHTMLWindow2 *iface)
Definition: htmlwindow.c:161
IHTMLWindow2 IHTMLWindow2_iface
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLWindow2_get_history()

static HRESULT WINAPI HTMLWindow2_get_history ( IHTMLWindow2 iface,
IOmHistory **  p 
)
static

Definition at line 748 of file htmlwindow.c.

749 {
752 
753  TRACE("(%p)->(%p)\n", This, p);
754 
755  if(!window->history) {
756  HRESULT hres;
757 
758  hres = create_history(window, &window->history);
759  if(FAILED(hres))
760  return hres;
761  }
762 
763  IOmHistory_AddRef(&window->history->IOmHistory_iface);
764  *p = &window->history->IOmHistory_iface;
765  return S_OK;
766 }
IOmHistory IOmHistory_iface
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
HTMLInnerWindow * inner_window
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
static IHTMLWindow2 * window
Definition: events.c:77
#define S_OK
Definition: intsafe.h:59
HRESULT create_history(HTMLInnerWindow *, OmHistory **) DECLSPEC_HIDDEN
Definition: omnavigator.c:334
OmHistory * history
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLWindow2_get_Image()

static HRESULT WINAPI HTMLWindow2_get_Image ( IHTMLWindow2 iface,
IHTMLImageElementFactory **  p 
)
static

Definition at line 711 of file htmlwindow.c.

712 {
715 
716  TRACE("(%p)->(%p)\n", This, p);
717 
718  if(!window->image_factory) {
719  HRESULT hres;
720 
721  hres = HTMLImageElementFactory_Create(window, &window->image_factory);
722  if(FAILED(hres))
723  return hres;
724  }
725 
727  IHTMLImageElementFactory_AddRef(*p);
728 
729  return S_OK;
730 }
HTMLImageElementFactory * image_factory
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
HTMLInnerWindow * inner_window
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
static IHTMLWindow2 * window
Definition: events.c:77
#define S_OK
Definition: intsafe.h:59
HRESULT HTMLImageElementFactory_Create(HTMLInnerWindow *window, HTMLImageElementFactory **ret_val)
Definition: htmlimg.c:972
GLfloat GLfloat p
Definition: glext.h:8902
IHTMLImageElementFactory IHTMLImageElementFactory_iface

◆ HTMLWindow2_get_length()

static HRESULT WINAPI HTMLWindow2_get_length ( IHTMLWindow2 iface,
LONG p 
)
static

Definition at line 468 of file htmlwindow.c.

469 {
471  nsIDOMWindowCollection *nscollection;
472  UINT32 length;
473  nsresult nsres;
474 
475  TRACE("(%p)->(%p)\n", This, p);
476 
477  nsres = nsIDOMWindow_GetFrames(This->outer_window->nswindow, &nscollection);
478  if(NS_FAILED(nsres)) {
479  ERR("GetFrames failed: %08x\n", nsres);
480  return E_FAIL;
481  }
482 
483  nsres = nsIDOMWindowCollection_GetLength(nscollection, &length);
484  nsIDOMWindowCollection_Release(nscollection);
485  if(NS_FAILED(nsres)) {
486  ERR("GetLength failed: %08x\n", nsres);
487  return E_FAIL;
488  }
489 
490  *p = length;
491  return S_OK;
492 }
#define E_FAIL
Definition: ddrawi.h:102
unsigned int UINT32
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
GLenum GLuint GLenum GLsizei length
Definition: glext.h:5579
nsIDOMWindow * nswindow
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
HTMLOuterWindow * outer_window
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLWindow2_get_location()

static HRESULT WINAPI HTMLWindow2_get_location ( IHTMLWindow2 iface,
IHTMLLocation **  p 
)
static

Definition at line 732 of file htmlwindow.c.

733 {
736  HRESULT hres;
737 
738  TRACE("(%p)->(%p)\n", This, p);
739 
740  hres = get_location(This->inner_window, &location);
741  if(FAILED(hres))
742  return hres;
743 
744  *p = &location->IHTMLLocation_iface;
745  return S_OK;
746 }
IHTMLLocation IHTMLLocation_iface
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
HTMLInnerWindow * inner_window
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
static HRESULT get_location(HTMLInnerWindow *This, HTMLLocation **ret)
Definition: htmlwindow.c:43
#define location(file, line)
Definition: kmtest.h:18
#define S_OK
Definition: intsafe.h:59
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLWindow2_get_name()

static HRESULT WINAPI HTMLWindow2_get_name ( IHTMLWindow2 iface,
BSTR p 
)
static

Definition at line 888 of file htmlwindow.c.

889 {
891  nsAString name_str;
892  nsresult nsres;
893 
894  TRACE("(%p)->(%p)\n", This, p);
895 
896  nsAString_Init(&name_str, NULL);
897  nsres = nsIDOMWindow_GetName(This->outer_window->nswindow, &name_str);
898  return return_nsstr(nsres, &name_str, p);
899 }
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
smooth NULL
Definition: ftsmooth.c:416
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841
#define TRACE(s)
Definition: solgame.cpp:4
nsIDOMWindow * nswindow
HTMLOuterWindow * outer_window
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
HRESULT nsresult
Definition: nsiface.idl:39
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLWindow2_get_navigator()

static HRESULT WINAPI HTMLWindow2_get_navigator ( IHTMLWindow2 iface,
IOmNavigator **  p 
)
static

Definition at line 861 of file htmlwindow.c.

862 {
864 
865  TRACE("(%p)->(%p)\n", This, p);
866 
867  *p = OmNavigator_Create();
868  return *p ? S_OK : E_OUTOFMEMORY;
869 }
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4
IOmNavigator * OmNavigator_Create(void) DECLSPEC_HIDDEN
Definition: omnavigator.c:1079
#define S_OK
Definition: intsafe.h:59
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLWindow2_get_offscreenBuffering()

static HRESULT WINAPI HTMLWindow2_get_offscreenBuffering ( IHTMLWindow2 iface,
VARIANT p 
)
static

Definition at line 1361 of file htmlwindow.c.

1362 {
1364  FIXME("(%p)->(%p)\n", This, p);
1365  return E_NOTIMPL;
1366 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLWindow2_get_onbeforeunload()

static HRESULT WINAPI HTMLWindow2_get_onbeforeunload ( IHTMLWindow2 iface,
VARIANT p 
)
static

Definition at line 1095 of file htmlwindow.c.

1096 {
1098 
1099  TRACE("(%p)->(%p)\n", This, p);
1100 
1101  return get_window_event(This, EVENTID_BEFOREUNLOAD, p);
1102 }
static HRESULT get_window_event(HTMLWindow *window, eventid_t eid, VARIANT *var)
Definition: htmlwindow.c:77
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4

◆ HTMLWindow2_get_onblur()

static HRESULT WINAPI HTMLWindow2_get_onblur ( IHTMLWindow2 iface,
VARIANT p 
)
static

Definition at line 1059 of file htmlwindow.c.

1060 {
1062 
1063  TRACE("(%p)->(%p)\n", This, p);
1064 
1065  return get_window_event(This, EVENTID_BLUR, p);
1066 }
static HRESULT get_window_event(HTMLWindow *window, eventid_t eid, VARIANT *var)
Definition: htmlwindow.c:77
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4

◆ HTMLWindow2_get_onerror()

static HRESULT WINAPI HTMLWindow2_get_onerror ( IHTMLWindow2 iface,
VARIANT p 
)
static

Definition at line 1145 of file htmlwindow.c.

1146 {
1148 
1149  TRACE("(%p)->(%p)\n", This, p);
1150 
1151  return get_window_event(This, EVENTID_ERROR, p);
1152 }
static HRESULT get_window_event(HTMLWindow *window, eventid_t eid, VARIANT *var)
Definition: htmlwindow.c:77
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4

◆ HTMLWindow2_get_onfocus()

static HRESULT WINAPI HTMLWindow2_get_onfocus ( IHTMLWindow2 iface,
VARIANT p 
)
static

Definition at line 1041 of file htmlwindow.c.

1042 {
1044 
1045  TRACE("(%p)->(%p)\n", This, p);
1046 
1047  return get_window_event(This, EVENTID_FOCUS, p);
1048 }
static HRESULT get_window_event(HTMLWindow *window, eventid_t eid, VARIANT *var)
Definition: htmlwindow.c:77
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4

◆ HTMLWindow2_get_onhelp()

static HRESULT WINAPI HTMLWindow2_get_onhelp ( IHTMLWindow2 iface,
VARIANT p 
)
static

Definition at line 1127 of file htmlwindow.c.

1128 {
1130 
1131  TRACE("(%p)->(%p)\n", This, p);
1132 
1133  return get_window_event(This, EVENTID_HELP, p);
1134 }
static HRESULT get_window_event(HTMLWindow *window, eventid_t eid, VARIANT *var)
Definition: htmlwindow.c:77
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4

◆ HTMLWindow2_get_onload()

static HRESULT WINAPI HTMLWindow2_get_onload ( IHTMLWindow2 iface,
VARIANT p 
)
static

Definition at line 1077 of file htmlwindow.c.

1078 {
1080 
1081  TRACE("(%p)->(%p)\n", This, p);
1082 
1083  return get_window_event(This, EVENTID_LOAD, p);
1084 }
static HRESULT get_window_event(HTMLWindow *window, eventid_t eid, VARIANT *var)
Definition: htmlwindow.c:77
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4

◆ HTMLWindow2_get_onresize()

static HRESULT WINAPI HTMLWindow2_get_onresize ( IHTMLWindow2 iface,
VARIANT p 
)
static

Definition at line 1163 of file htmlwindow.c.

1164 {
1166 
1167  TRACE("(%p)->(%p)\n", This, p);
1168 
1169  return get_window_event(This, EVENTID_RESIZE, p);
1170 }
static HRESULT get_window_event(HTMLWindow *window, eventid_t eid, VARIANT *var)
Definition: htmlwindow.c:77
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4

◆ HTMLWindow2_get_onscroll()

static HRESULT WINAPI HTMLWindow2_get_onscroll ( IHTMLWindow2 iface,
VARIANT p 
)
static

Definition at line 1181 of file htmlwindow.c.

1182 {
1184 
1185  TRACE("(%p)->(%p)\n", This, p);
1186 
1187  return get_window_event(This, EVENTID_SCROLL, p);
1188 }
static HRESULT get_window_event(HTMLWindow *window, eventid_t eid, VARIANT *var)
Definition: htmlwindow.c:77
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4

◆ HTMLWindow2_get_onunload()

static HRESULT WINAPI HTMLWindow2_get_onunload ( IHTMLWindow2 iface,
VARIANT p 
)
static

Definition at line 1111 of file htmlwindow.c.

1112 {
1114  FIXME("(%p)->(%p)\n", This, p);
1115  return E_NOTIMPL;
1116 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLWindow2_get_opener()

static HRESULT WINAPI HTMLWindow2_get_opener ( IHTMLWindow2 iface,
VARIANT p 
)
static

Definition at line 851 of file htmlwindow.c.

852 {
854 
855  FIXME("(%p)->(%p) returning empty\n", This, p);
856 
857  V_VT(p) = VT_EMPTY;
858  return S_OK;
859 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define V_VT(A)
Definition: oleauto.h:211
#define S_OK
Definition: intsafe.h:59

◆ HTMLWindow2_get_Option()

static HRESULT WINAPI HTMLWindow2_get_Option ( IHTMLWindow2 iface,
IHTMLOptionElementFactory **  p 
)
static

Definition at line 1263 of file htmlwindow.c.

1264 {
1267 
1268  TRACE("(%p)->(%p)\n", This, p);
1269 
1270  if(!window->option_factory) {
1271  HRESULT hres;
1272 
1273  hres = HTMLOptionElementFactory_Create(window, &window->option_factory);
1274  if(FAILED(hres))
1275  return hres;
1276  }
1277 
1279  IHTMLOptionElementFactory_AddRef(*p);
1280 
1281  return S_OK;
1282 }
HRESULT HTMLOptionElementFactory_Create(HTMLInnerWindow *window, HTMLOptionElementFactory **ret_ptr)
Definition: htmloption.c:618
HTMLOptionElementFactory * option_factory
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
HTMLInnerWindow * inner_window
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
static IHTMLWindow2 * window
Definition: events.c:77
#define S_OK
Definition: intsafe.h:59
IHTMLOptionElementFactory IHTMLOptionElementFactory_iface
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLWindow2_get_parent()

static HRESULT WINAPI HTMLWindow2_get_parent ( IHTMLWindow2 iface,
IHTMLWindow2 **  p 
)
static

Definition at line 901 of file htmlwindow.c.

902 {
905 
906  TRACE("(%p)->(%p)\n", This, p);
907 
908  if(!window->parent)
909  return IHTMLWindow2_get_self(&This->IHTMLWindow2_iface, p);
910 
911  *p = &window->parent->base.IHTMLWindow2_iface;
912  IHTMLWindow2_AddRef(*p);
913  return S_OK;
914 }
HTMLOuterWindow * parent
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4
static IHTMLWindow2 * window
Definition: events.c:77
#define S_OK
Definition: intsafe.h:59
HTMLOuterWindow * outer_window
IHTMLWindow2 IHTMLWindow2_iface
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLWindow2_get_screen()

static HRESULT WINAPI HTMLWindow2_get_screen ( IHTMLWindow2 iface,
IHTMLScreen **  p 
)
static

Definition at line 1243 of file htmlwindow.c.

1244 {
1247 
1248  TRACE("(%p)->(%p)\n", This, p);
1249 
1250  if(!window->screen) {
1251  HRESULT hres;
1252 
1253  hres = HTMLScreen_Create(&window->screen);
1254  if(FAILED(hres))
1255  return hres;
1256  }
1257 
1258  *p = window->screen;
1259  IHTMLScreen_AddRef(window->screen);
1260  return S_OK;
1261 }
HRESULT HTMLScreen_Create(IHTMLScreen **ret)
Definition: htmlscreen.c:234
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
HTMLInnerWindow * inner_window
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
IHTMLScreen * screen
static IHTMLWindow2 * window
Definition: events.c:77
#define S_OK
Definition: intsafe.h:59
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLWindow2_get_self()

static HRESULT WINAPI HTMLWindow2_get_self ( IHTMLWindow2 iface,
IHTMLWindow2 **  p 
)
static

Definition at line 985 of file htmlwindow.c.

986 {
988 
989  TRACE("(%p)->(%p)\n", This, p);
990 
991  /* FIXME: We should return kind of proxy window here. */
992  IHTMLWindow2_AddRef(&This->IHTMLWindow2_iface);
993  *p = &This->IHTMLWindow2_iface;
994  return S_OK;
995 }
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
IHTMLWindow2 IHTMLWindow2_iface
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLWindow2_get_status()

static HRESULT WINAPI HTMLWindow2_get_status ( IHTMLWindow2 iface,
BSTR p 
)
static

Definition at line 532 of file htmlwindow.c.

533 {
535 
536  TRACE("(%p)->(%p)\n", This, p);
537 
538  /* See put_status */
539  *p = NULL;
540  return S_OK;
541 }
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLWindow2_get_top()

static HRESULT WINAPI HTMLWindow2_get_top ( IHTMLWindow2 iface,
IHTMLWindow2 **  p 
)
static

Definition at line 997 of file htmlwindow.c.

998 {
1001 
1002  TRACE("(%p)->(%p)\n", This, p);
1003 
1004  get_top_window(This->outer_window, &top);
1005  *p = &top->base.IHTMLWindow2_iface;
1006  IHTMLWindow2_AddRef(*p);
1007 
1008  return S_OK;
1009 }
void get_top_window(HTMLOuterWindow *window, HTMLOuterWindow **ret)
Definition: htmlwindow.c:59
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
HTMLOuterWindow * outer_window
IHTMLWindow2 IHTMLWindow2_iface
GLdouble GLdouble GLdouble GLdouble top
Definition: glext.h:10859
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLWindow2_get_window()

static HRESULT WINAPI HTMLWindow2_get_window ( IHTMLWindow2 iface,
IHTMLWindow2 **  p 
)
static

Definition at line 1011 of file htmlwindow.c.

1012 {
1014 
1015  TRACE("(%p)->(%p)\n", This, p);
1016 
1017  /* FIXME: We should return kind of proxy window here. */
1018  IHTMLWindow2_AddRef(&This->IHTMLWindow2_iface);
1019  *p = &This->IHTMLWindow2_iface;
1020  return S_OK;
1021 }
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
IHTMLWindow2 IHTMLWindow2_iface
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLWindow2_GetIDsOfNames()

static HRESULT WINAPI HTMLWindow2_GetIDsOfNames ( IHTMLWindow2 iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 289 of file htmlwindow.c.

292 {
294 
295  return IDispatchEx_GetIDsOfNames(&This->IDispatchEx_iface, riid, rgszNames, cNames, lcid,
296  rgDispId);
297 }
REFIID riid
Definition: precomp.h:44
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
IDispatchEx IDispatchEx_iface

◆ HTMLWindow2_GetTypeInfo()

static HRESULT WINAPI HTMLWindow2_GetTypeInfo ( IHTMLWindow2 iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 281 of file htmlwindow.c.

283 {
285 
286  return IDispatchEx_GetTypeInfo(&This->IDispatchEx_iface, iTInfo, lcid, ppTInfo);
287 }
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
IDispatchEx IDispatchEx_iface

◆ HTMLWindow2_GetTypeInfoCount()

static HRESULT WINAPI HTMLWindow2_GetTypeInfoCount ( IHTMLWindow2 iface,
UINT pctinfo 
)
static

Definition at line 274 of file htmlwindow.c.

275 {
277 
278  return IDispatchEx_GetTypeInfoCount(&This->IDispatchEx_iface, pctinfo);
279 }
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
IDispatchEx IDispatchEx_iface

◆ HTMLWindow2_Invoke()

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

Definition at line 299 of file htmlwindow.c.

302 {
304 
305  return IDispatchEx_Invoke(&This->IDispatchEx_iface, dispIdMember, riid, lcid, wFlags,
306  pDispParams, pVarResult, pExcepInfo, puArgErr);
307 }
REFIID riid
Definition: precomp.h:44
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
IDispatchEx IDispatchEx_iface
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519

◆ HTMLWindow2_item()

static HRESULT WINAPI HTMLWindow2_item ( IHTMLWindow2 iface,
VARIANT pvarIndex,
VARIANT pvarResult 
)
static

Definition at line 423 of file htmlwindow.c.

424 {
427  HRESULT hres;
428 
429  TRACE("(%p)->(%p %p)\n", This, pvarIndex, pvarResult);
430 
431  switch(V_VT(pvarIndex)) {
432  case VT_I4: {
433  int index = V_I4(pvarIndex);
434  TRACE("Getting index %d\n", index);
435  if(index < 0)
436  return DISP_E_MEMBERNOTFOUND;
437  hres = get_frame_by_index(This->outer_window, index, &window);
438  break;
439  }
440  case VT_UINT: {
441  unsigned int index = V_UINT(pvarIndex);
442  TRACE("Getting index %u\n", index);
443  hres = get_frame_by_index(This->outer_window, index, &window);
444  break;
445  }
446  case VT_BSTR: {
447  BSTR str = V_BSTR(pvarIndex);
448  TRACE("Getting name %s\n", wine_dbgstr_w(str));
449  hres = get_frame_by_name(This->outer_window, str, FALSE, &window);
450  break;
451  }
452  default:
453  WARN("Invalid index %s\n", debugstr_variant(pvarIndex));
454  return E_INVALIDARG;
455  }
456 
457  if(FAILED(hres))
458  return hres;
459  if(!window)
460  return DISP_E_MEMBERNOTFOUND;
461 
462  IHTMLWindow2_AddRef(&window->base.IHTMLWindow2_iface);
463  V_VT(pvarResult) = VT_DISPATCH;
464  V_DISPATCH(pvarResult) = (IDispatch*)window;
465  return S_OK;
466 }
Definition: compat.h:1932
#define WARN(fmt,...)
Definition: debug.h:111
#define DISP_E_MEMBERNOTFOUND
Definition: winerror.h:2512
OLECHAR * BSTR
Definition: compat.h:1927
#define V_I4(A)
Definition: oleauto.h:247
#define V_DISPATCH(A)
Definition: oleauto.h:239
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
char * wine_dbgstr_w(const wchar_t *wstr)
Definition: CString.cpp:62
#define E_INVALIDARG
Definition: ddrawi.h:101
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
GLuint index
Definition: glext.h:6031
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
#define V_VT(A)
Definition: oleauto.h:211
static IHTMLWindow2 * window
Definition: events.c:77
#define V_BSTR(A)
Definition: oleauto.h:226
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define S_OK
Definition: intsafe.h:59
HTMLOuterWindow * outer_window
static HRESULT get_frame_by_index(HTMLOuterWindow *This, UINT32 index, HTMLOuterWindow **ret)
Definition: htmlwindow.c:309
IHTMLWindow2 IHTMLWindow2_iface
HRESULT get_frame_by_name(HTMLOuterWindow *This, const WCHAR *name, BOOL deep, HTMLOuterWindow **ret)
Definition: htmlwindow.c:343
#define V_UINT(A)
Definition: oleauto.h:264

◆ HTMLWindow2_moveBy()

static HRESULT WINAPI HTMLWindow2_moveBy ( IHTMLWindow2 iface,
LONG  x,
LONG  y 
)
static

Definition at line 1428 of file htmlwindow.c.

1429 {
1431  FIXME("(%p)->(%d %d)\n", This, x, y);
1432  return E_NOTIMPL;
1433 }
INT INT y
Definition: msvc.h:62
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
INT x
Definition: msvc.h:62
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLWindow2_moveTo()

static HRESULT WINAPI HTMLWindow2_moveTo ( IHTMLWindow2 iface,
LONG  x,
LONG  y 
)
static

Definition at line 1421 of file htmlwindow.c.

1422 {
1424  FIXME("(%p)->(%d %d)\n", This, x, y);
1425  return E_NOTIMPL;
1426 }
INT INT y
Definition: msvc.h:62
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
INT x
Definition: msvc.h:62
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLWindow2_navigate()

static HRESULT WINAPI HTMLWindow2_navigate ( IHTMLWindow2 iface,
BSTR  url 
)
static

Definition at line 1023 of file htmlwindow.c.

1024 {
1026 
1027  TRACE("(%p)->(%s)\n", This, debugstr_w(url));
1028 
1030 }
static HRESULT navigate_url(HHInfo *info, LPCWSTR surl)
Definition: help.c:189
#define debugstr_w
Definition: kernel32.h:32
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4
static const WCHAR url[]
Definition: encode.c:1432
HTMLOuterWindow * outer_window
#define BINDING_NAVIGATED
Definition: binding.h:127

◆ HTMLWindow2_open()

static HRESULT WINAPI HTMLWindow2_open ( IHTMLWindow2 iface,
BSTR  url,
BSTR  name,
BSTR  features,
VARIANT_BOOL  replace,
IHTMLWindow2 **  pomWindowResult 
)
static

Definition at line 916 of file htmlwindow.c.

918 {
921  INewWindowManager *new_window_mgr;
922  BSTR uri_str;
923  IUri *uri;
924  HRESULT hres;
925 
926  static const WCHAR _selfW[] = {'_','s','e','l','f',0};
927 
928  TRACE("(%p)->(%s %s %s %x %p)\n", This, debugstr_w(url), debugstr_w(name),
929  debugstr_w(features), replace, pomWindowResult);
930 
931  if(!window->doc_obj || !window->uri_nofrag)
932  return E_UNEXPECTED;
933 
934  if(name && *name == '_') {
935  if(!strcmpW(name, _selfW)) {
936  if((features && *features) || replace)
937  FIXME("Unsupported arguments for _self target\n");
938 
939  hres = IHTMLWindow2_navigate(&This->IHTMLWindow2_iface, url);
940  if(FAILED(hres))
941  return hres;
942 
943  if(pomWindowResult) {
944  FIXME("Returning this window for _self target\n");
945  *pomWindowResult = &This->IHTMLWindow2_iface;
946  IHTMLWindow2_AddRef(*pomWindowResult);
947  }
948 
949  return S_OK;
950  }
951 
952  FIXME("Unsupported name %s\n", debugstr_w(name));
953  return E_NOTIMPL;
954  }
955 
956  hres = do_query_service((IUnknown*)window->doc_obj->client, &SID_SNewWindowManager, &IID_INewWindowManager,
957  (void**)&new_window_mgr);
958  if(FAILED(hres)) {
959  FIXME("No INewWindowManager\n");
960  return E_NOTIMPL;
961  }
962 
963  hres = IUri_GetDisplayUri(window->uri_nofrag, &uri_str);
964  if(SUCCEEDED(hres)) {
965  hres = INewWindowManager_EvaluateNewWindow(new_window_mgr, url, name, uri_str,
966  features, !!replace, window->doc_obj->has_popup ? 0 : NWMF_FIRST, 0);
967  window->doc_obj->has_popup = TRUE;
968  SysFreeString(uri_str);
969  }
970  INewWindowManager_Release(new_window_mgr);
971  if(FAILED(hres)) {
972  *pomWindowResult = NULL;
973  return S_OK;
974  }
975 
976  hres = create_relative_uri(window, url, &uri);
977  if(FAILED(hres))
978  return hres;
979 
980  hres = navigate_new_window(window, uri, name, NULL, pomWindowResult);
981  IUri_Release(uri);
982  return hres;
983 }
#define TRUE
Definition: types.h:120
IOleClientSite * client
__wchar_t WCHAR
Definition: xmlstorage.h:180
const char * uri
Definition: sec_mgr.c:1594
void WINAPI SysFreeString(BSTR str)
Definition: oleaut.c:275
OLECHAR * BSTR
Definition: compat.h:1927
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
HRESULT do_query_service(IUnknown *unk, REFGUID guid_service, REFIID riid, void **ppv)
Definition: main.c:141
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
smooth NULL
Definition: ftsmooth.c:416
HRESULT navigate_new_window(HTMLOuterWindow *, IUri *, const WCHAR *, request_data_t *, IHTMLWindow2 **) DECLSPEC_HIDDEN
Definition: navigate.c:2132
INT replace(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], DWORD dwFlags, BOOL *doMore)
Definition: replace.c:47
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
static const WCHAR url[]
Definition: encode.c:1432
HRESULT create_relative_uri(HTMLOuterWindow *, const WCHAR *, IUri **) DECLSPEC_HIDDEN
Definition: persist.c:163
static IHTMLWindow2 * window
Definition: events.c:77
#define S_OK
Definition: intsafe.h:59
HTMLDocumentObj * doc_obj
#define E_NOTIMPL
Definition: ddrawi.h:99
HTMLOuterWindow * outer_window
#define E_UNEXPECTED
Definition: winerror.h:2456
Definition: name.c:36
WINE_UNICODE_INLINE int strcmpW(const WCHAR *str1, const WCHAR *str2)
Definition: unicode.h:229
IHTMLWindow2 IHTMLWindow2_iface
#define SUCCEEDED(hr)
Definition: intsafe.h:57

◆ HTMLWindow2_prompt()

static HRESULT WINAPI HTMLWindow2_prompt ( IHTMLWindow2 iface,
BSTR  message,
BSTR  dststr,
VARIANT textdata 
)
static

Definition at line 692 of file htmlwindow.c.

694 {
696  prompt_arg arg;
697 
698  TRACE("(%p)->(%s %s %p)\n", This, debugstr_w(message), debugstr_w(dststr), textdata);
699 
700  if(textdata) V_VT(textdata) = VT_NULL;
701 
702  arg.message = message;
703  arg.dststr = dststr;
704  arg.textdata = textdata;
705 
707  This->outer_window->doc_obj->hwnd, prompt_dlgproc, (LPARAM)&arg);
708  return S_OK;
709 }
Definition: tftpd.h:59
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
GLenum GLuint GLenum GLsizei const GLchar * message
Definition: glext.h:5579
void * arg
Definition: msvc.h:12
LONG_PTR LPARAM
Definition: windef.h:208
#define ID_PROMPT_DIALOG
Definition: resource.h:28
#define debugstr_w
Definition: kernel32.h:32
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
VARIANT * textdata
Definition: htmlwindow.c:626
static INT_PTR CALLBACK prompt_dlgproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
Definition: htmlwindow.c:629
#define TRACE(s)
Definition: solgame.cpp:4
BSTR dststr
Definition: htmlwindow.c:625
#define V_VT(A)
Definition: oleauto.h:211
BSTR message
Definition: htmlwindow.c:624
#define S_OK
Definition: intsafe.h:59
HINSTANCE hInst
Definition: dxdiag.c:13
HTMLDocumentObj * doc_obj
HTMLOuterWindow * outer_window
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582

◆ HTMLWindow2_put_defaultStatus()

static HRESULT WINAPI HTMLWindow2_put_defaultStatus ( IHTMLWindow2 iface,
BSTR  v 
)
static

Definition at line 505 of file htmlwindow.c.

506 {
508  FIXME("(%p)->(%s)\n", This, debugstr_w(v));
509  return E_NOTIMPL;
510 }
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
const GLdouble * v
Definition: gl.h:2040
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLWindow2_put_name()

static HRESULT WINAPI HTMLWindow2_put_name ( IHTMLWindow2 iface,
BSTR  v 
)
static

Definition at line 871 of file htmlwindow.c.

872 {
874  nsAString name_str;
875  nsresult nsres;
876 
877  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
878 
879  nsAString_InitDepend(&name_str, v);
880  nsres = nsIDOMWindow_SetName(This->outer_window->nswindow, &name_str);
881  nsAString_Finish(&name_str);
882  if(NS_FAILED(nsres))
883  ERR("SetName failed: %08x\n", nsres);
884 
885  return S_OK;
886 }
#define debugstr_w
Definition: kernel32.h:32
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
nsIDOMWindow * nswindow
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040
HTMLOuterWindow * outer_window
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLWindow2_put_offscreenBuffering()

static HRESULT WINAPI HTMLWindow2_put_offscreenBuffering ( IHTMLWindow2 iface,
VARIANT  v 
)
static

Definition at line 1354 of file htmlwindow.c.

1355 {
1357  FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
1358  return E_NOTIMPL;
1359 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLWindow2_put_onbeforeunload()

static HRESULT WINAPI HTMLWindow2_put_onbeforeunload ( IHTMLWindow2 iface,
VARIANT  v 
)
static

Definition at line 1086 of file htmlwindow.c.

1087 {
1089 
1090  TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1091 
1092  return set_window_event(This, EVENTID_BEFOREUNLOAD, &v);
1093 }
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT set_window_event(HTMLWindow *window, eventid_t eid, VARIANT *var)
Definition: htmlwindow.c:67
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46

◆ HTMLWindow2_put_onblur()

static HRESULT WINAPI HTMLWindow2_put_onblur ( IHTMLWindow2 iface,
VARIANT  v 
)
static

Definition at line 1050 of file htmlwindow.c.

1051 {
1053 
1054  TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1055 
1056  return set_window_event(This, EVENTID_BLUR, &v);
1057 }
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT set_window_event(HTMLWindow *window, eventid_t eid, VARIANT *var)
Definition: htmlwindow.c:67
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46

◆ HTMLWindow2_put_onerror()

static HRESULT WINAPI HTMLWindow2_put_onerror ( IHTMLWindow2 iface,
VARIANT  v 
)
static

Definition at line 1136 of file htmlwindow.c.

1137 {
1139 
1140  FIXME("(%p)->(%s) semi-stub\n", This, debugstr_variant(&v));
1141 
1142  return set_window_event(This, EVENTID_ERROR, &v);
1143 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
static HRESULT set_window_event(HTMLWindow *window, eventid_t eid, VARIANT *var)
Definition: htmlwindow.c:67
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46

◆ HTMLWindow2_put_onfocus()

static HRESULT WINAPI HTMLWindow2_put_onfocus ( IHTMLWindow2 iface,
VARIANT  v 
)
static

Definition at line 1032 of file htmlwindow.c.

1033 {
1035 
1036  TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1037 
1038  return set_window_event(This, EVENTID_FOCUS, &v);
1039 }
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT set_window_event(HTMLWindow *window, eventid_t eid, VARIANT *var)
Definition: htmlwindow.c:67
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46

◆ HTMLWindow2_put_onhelp()

static HRESULT WINAPI HTMLWindow2_put_onhelp ( IHTMLWindow2 iface,
VARIANT  v 
)
static

Definition at line 1118 of file htmlwindow.c.

1119 {
1121 
1122  TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1123 
1124  return set_window_event(This, EVENTID_HELP, &v);
1125 }
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT set_window_event(HTMLWindow *window, eventid_t eid, VARIANT *var)
Definition: htmlwindow.c:67
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46

◆ HTMLWindow2_put_onload()

static HRESULT WINAPI HTMLWindow2_put_onload ( IHTMLWindow2 iface,
VARIANT  v 
)
static

Definition at line 1068 of file htmlwindow.c.

1069 {
1071 
1072  TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1073 
1074  return set_window_event(This, EVENTID_LOAD, &v);
1075 }
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT set_window_event(HTMLWindow *window, eventid_t eid, VARIANT *var)
Definition: htmlwindow.c:67
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46

◆ HTMLWindow2_put_onresize()

static HRESULT WINAPI HTMLWindow2_put_onresize ( IHTMLWindow2 iface,
VARIANT  v 
)
static

Definition at line 1154 of file htmlwindow.c.

1155 {
1157 
1158  TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1159 
1160  return set_window_event(This, EVENTID_RESIZE, &v);
1161 }
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT set_window_event(HTMLWindow *window, eventid_t eid, VARIANT *var)
Definition: htmlwindow.c:67
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46

◆ HTMLWindow2_put_onscroll()

static HRESULT WINAPI HTMLWindow2_put_onscroll ( IHTMLWindow2 iface,
VARIANT  v 
)
static

Definition at line 1172 of file htmlwindow.c.

1173 {
1175 
1176  TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1177 
1178  return set_window_event(This, EVENTID_SCROLL, &v);
1179 }
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT set_window_event(HTMLWindow *window, eventid_t eid, VARIANT *var)
Definition: htmlwindow.c:67
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46

◆ HTMLWindow2_put_onunload()

static HRESULT WINAPI HTMLWindow2_put_onunload ( IHTMLWindow2 iface,
VARIANT  v 
)
static

Definition at line 1104 of file htmlwindow.c.

1105 {
1107  FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
1108  return E_NOTIMPL;
1109 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLWindow2_put_opener()

static HRESULT WINAPI HTMLWindow2_put_opener ( IHTMLWindow2 iface,
VARIANT  v 
)
static

Definition at line 844 of file htmlwindow.c.

845 {
847  FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
848  return E_NOTIMPL;
849 }
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLWindow2_put_status()

static HRESULT WINAPI HTMLWindow2_put_status ( IHTMLWindow2 iface,
BSTR  v 
)
static

Definition at line 519 of file htmlwindow.c.

520 {
522 
523  WARN("(%p)->(%s)\n", This, debugstr_w(v));
524 
525  /*
526  * FIXME: Since IE7, setting status is blocked, but still possible in certain circumstances.
527  * Ignoring the call should be enough for us.
528  */
529  return S_OK;
530 }
#define WARN(fmt,...)
Definition: debug.h:111
#define debugstr_w
Definition: kernel32.h:32
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040

◆ HTMLWindow2_QueryInterface()

static HRESULT WINAPI HTMLWindow2_QueryInterface ( IHTMLWindow2 iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 116 of file htmlwindow.c.

117 {
119 
120  TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
121 
122  if(IsEqualGUID(&IID_IUnknown, riid)) {
123  *ppv = &This->IHTMLWindow2_iface;
124  }else if(IsEqualGUID(&IID_IDispatch, riid)) {
125  *ppv = &This->IHTMLWindow2_iface;
126  }else if(IsEqualGUID(&IID_IDispatchEx, riid)) {
127  *ppv = &This->IDispatchEx_iface;
128  }else if(IsEqualGUID(&IID_IHTMLFramesCollection2, riid)) {
129  *ppv = &This->IHTMLWindow2_iface;
130  }else if(IsEqualGUID(&IID_IHTMLWindow2, riid)) {
131  *ppv = &This->IHTMLWindow2_iface;
132  }else if(IsEqualGUID(&IID_IHTMLWindow3, riid)) {
133  *ppv = &This->IHTMLWindow3_iface;
134  }else if(IsEqualGUID(&IID_IHTMLWindow4, riid)) {
135  *ppv = &This->IHTMLWindow4_iface;
136  }else if(IsEqualGUID(&IID_IHTMLWindow5, riid)) {
137  *ppv = &This->IHTMLWindow5_iface;
138  }else if(IsEqualGUID(&IID_IHTMLWindow6, riid)) {
139  *ppv = &This->IHTMLWindow6_iface;
140  }else if(IsEqualGUID(&IID_IHTMLPrivateWindow, riid)) {
141  *ppv = &This->IHTMLPrivateWindow_iface;
142  }else if(IsEqualGUID(&IID_IServiceProvider, riid)) {
143  *ppv = &This->IServiceProvider_iface;
144  }else if(IsEqualGUID(&IID_ITravelLogClient, riid)) {
145  *ppv = &This->ITravelLogClient_iface;
146  }else if(IsEqualGUID(&IID_IObjectIdentity, riid)) {
147  *ppv = &This->IObjectIdentity_iface;
148  }else if(dispex_query_interface(&This->inner_window->event_target.dispex, riid, ppv)) {
149  assert(!*ppv);
150  return E_NOINTERFACE;
151  }else {
152  *ppv = NULL;
153  WARN("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
154  return E_NOINTERFACE;
155  }
156 
157  IUnknown_AddRef((IUnknown*)*ppv);
158  return S_OK;
159 }
DispatchEx dispex
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
#define WARN(fmt,...)
Definition: debug.h:111
#define assert(x)
Definition: debug.h:53
IObjectIdentity IObjectIdentity_iface
EventTarget event_target
const char * debugstr_mshtml_guid(const GUID *iid)
Definition: main.c:535
IHTMLWindow5 IHTMLWindow5_iface
IServiceProvider IServiceProvider_iface
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
ITravelLogClient ITravelLogClient_iface
smooth NULL
Definition: ftsmooth.c:416
HTMLInnerWindow * inner_window
IDispatchEx IDispatchEx_iface
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
const GUID IID_IDispatch
IHTMLWindow3 IHTMLWindow3_iface
#define S_OK
Definition: intsafe.h:59
BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
Definition: dispex.c:1656
IHTMLWindow6 IHTMLWindow6_iface
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4024
IHTMLWindow4 IHTMLWindow4_iface
IHTMLWindow2 IHTMLWindow2_iface
IHTMLPrivateWindow IHTMLPrivateWindow_iface

◆ HTMLWindow2_Release()

static ULONG WINAPI HTMLWindow2_Release ( IHTMLWindow2 iface)
static

Definition at line 257 of file htmlwindow.c.

258 {
260  LONG ref = InterlockedDecrement(&This->ref);
261 
262  TRACE("(%p) ref=%d\n", This, ref);
263 
264  if(!ref) {
265  if(is_outer_window(This))
267  else
269  }
270 
271  return ref;
272 }
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
static void release_outer_window(HTMLOuterWindow *This)
Definition: htmlwindow.c:171
HTMLInnerWindow * inner_window
#define TRACE(s)
Definition: solgame.cpp:4
static BOOL is_outer_window(HTMLWindow *window)
Definition: htmlwindow.c:25
#define InterlockedDecrement
Definition: armddk.h:52
HTMLOuterWindow * outer_window
static void release_inner_window(HTMLInnerWindow *This)
Definition: htmlwindow.c:201

◆ HTMLWindow2_resizeBy()

static HRESULT WINAPI HTMLWindow2_resizeBy ( IHTMLWindow2 iface,
LONG  x,
LONG  y 
)
static

Definition at line 1442 of file htmlwindow.c.

1443 {
1445  FIXME("(%p)->(%d %d)\n", This, x, y);
1446  return E_NOTIMPL;
1447 }
INT INT y
Definition: msvc.h:62
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
INT x
Definition: msvc.h:62
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLWindow2_resizeTo()

static HRESULT WINAPI HTMLWindow2_resizeTo ( IHTMLWindow2 iface,
LONG  x,
LONG  y 
)
static

Definition at line 1435 of file htmlwindow.c.

1436 {
1438  FIXME("(%p)->(%d %d)\n", This, x, y);
1439  return E_NOTIMPL;
1440 }
INT INT y
Definition: msvc.h:62
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
INT x
Definition: msvc.h:62
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLWindow2_scroll()

static HRESULT WINAPI HTMLWindow2_scroll ( IHTMLWindow2 iface,
LONG  x,
LONG  y 
)
static

Definition at line 1309 of file htmlwindow.c.

1310 {
1312  nsresult nsres;
1313 
1314  TRACE("(%p)->(%d %d)\n", This, x, y);
1315 
1316  nsres = nsIDOMWindow_Scroll(This->outer_window->nswindow, x, y);
1317  if(NS_FAILED(nsres)) {
1318  ERR("ScrollBy failed: %08x\n", nsres);
1319  return E_FAIL;
1320  }
1321 
1322  return S_OK;
1323 }
#define E_FAIL
Definition: ddrawi.h:102
INT INT y
Definition: msvc.h:62
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
nsIDOMWindow * nswindow
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
INT x
Definition: msvc.h:62
HTMLOuterWindow * outer_window
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLWindow2_scrollBy()

static HRESULT WINAPI HTMLWindow2_scrollBy ( IHTMLWindow2 iface,
LONG  x,
LONG  y 
)
static

Definition at line 1393 of file htmlwindow.c.

1394 {
1396  nsresult nsres;
1397 
1398  TRACE("(%p)->(%d %d)\n", This, x, y);
1399 
1400  nsres = nsIDOMWindow_ScrollBy(This->outer_window->nswindow, x, y);
1401  if(NS_FAILED(nsres))
1402  ERR("ScrollBy failed: %08x\n", nsres);
1403 
1404  return S_OK;
1405 }
INT INT y
Definition: msvc.h:62
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
nsIDOMWindow * nswindow
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
INT x
Definition: msvc.h:62
HTMLOuterWindow * outer_window
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLWindow2_scrollTo()

static HRESULT WINAPI HTMLWindow2_scrollTo ( IHTMLWindow2 iface,
LONG  x,
LONG  y 
)
static

Definition at line 1407 of file htmlwindow.c.

1408 {
1410  nsresult nsres;
1411 
1412  TRACE("(%p)->(%d %d)\n", This, x, y);
1413 
1414  nsres = nsIDOMWindow_ScrollTo(This->outer_window->nswindow, x, y);
1415  if(NS_FAILED(nsres))
1416  ERR("ScrollTo failed: %08x\n", nsres);
1417 
1418  return S_OK;
1419 }
INT INT y
Definition: msvc.h:62
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define NS_FAILED(res)
#define TRACE(s)
Definition: solgame.cpp:4
nsIDOMWindow * nswindow
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
INT x
Definition: msvc.h:62
HTMLOuterWindow * outer_window
HRESULT nsresult
Definition: nsiface.idl:39

◆ HTMLWindow2_setInterval()

static HRESULT WINAPI HTMLWindow2_setInterval ( IHTMLWindow2 iface,
BSTR  expression,
LONG  msec,
VARIANT language,
LONG timerID 
)
static

Definition at line 1332 of file htmlwindow.c.

1334 {
1336  VARIANT expr;
1337 
1338  TRACE("(%p)->(%s %d %p %p)\n", This, debugstr_w(expression), msec, language, timerID);
1339 
1340  V_VT(&expr) = VT_BSTR;
1341  V_BSTR(&expr) = expression;
1342  return IHTMLWindow3_setInterval(&This->IHTMLWindow3_iface, &expr, msec, language, timerID);
1343 }
LOCAL int expr(arg_t *ap, int *altp)
Definition: match.c:512
#define debugstr_w
Definition: kernel32.h:32
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4
IHTMLWindow3 IHTMLWindow3_iface
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226

◆ HTMLWindow2_setTimeout()

static HRESULT WINAPI HTMLWindow2_setTimeout ( IHTMLWindow2 iface,
BSTR  expression,
LONG  msec,
VARIANT language,
LONG timerID 
)
static

Definition at line 543 of file htmlwindow.c.

545 {
547  VARIANT expr_var;
548 
549  TRACE("(%p)->(%s %d %p %p)\n", This, debugstr_w(expression), msec, language, timerID);
550 
551  V_VT(&expr_var) = VT_BSTR;
552  V_BSTR(&expr_var) = expression;
553 
554  return IHTMLWindow3_setTimeout(&This->IHTMLWindow3_iface, &expr_var, msec, language, timerID);
555 }
#define debugstr_w
Definition: kernel32.h:32
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define TRACE(s)
Definition: solgame.cpp:4
IHTMLWindow3 IHTMLWindow3_iface
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226

◆ HTMLWindow2_showHelp()

static HRESULT WINAPI HTMLWindow2_showHelp ( IHTMLWindow2 iface,
BSTR  helpURL,
VARIANT  helpArg,
BSTR  features 
)
static

Definition at line 1235 of file htmlwindow.c.

1237 {
1239  FIXME("(%p)->(%s %s %s)\n", This, debugstr_w(helpURL), debugstr_variant(&helpArg), debugstr_w(features));
1240  return E_NOTIMPL;
1241 }
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLWindow2_showModalDialog()

static HRESULT WINAPI HTMLWindow2_showModalDialog ( IHTMLWindow2 iface,
BSTR  dialog,
VARIANT varArgIn,
VARIANT varOptions,
VARIANT varArgOut 
)
static

Definition at line 1227 of file htmlwindow.c.

1229 {
1231  FIXME("(%p)->(%s %p %p %p)\n", This, debugstr_w(dialog), varArgIn, varOptions, varArgOut);
1232  return E_NOTIMPL;
1233 }
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define E_NOTIMPL
Definition: ddrawi.h:99
static HWND dialog
Definition: gui.c:33

◆ HTMLWindow2_toString()

static HRESULT WINAPI HTMLWindow2_toString ( IHTMLWindow2 iface,
BSTR String 
)
static

Definition at line 1378 of file htmlwindow.c.

1379 {
1381 
1382  static const WCHAR objectW[] = {'[','o','b','j','e','c','t',']',0};
1383 
1384  TRACE("(%p)->(%p)\n", This, String);
1385 
1386  if(!String)
1387  return E_INVALIDARG;
1388 
1389  *String = SysAllocString(objectW);
1390  return *String ? S_OK : E_OUTOFMEMORY;
1391 }
__wchar_t WCHAR
Definition: xmlstorage.h:180
static WCHAR String[]
Definition: stringtable.c:55
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static HTMLWindow * impl_from_IHTMLWindow2(IHTMLWindow2 *iface)
Definition: htmlwindow.c:111
#define E_INVALIDARG
Definition: ddrawi.h:101
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:242
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static const WCHAR objectW[]
Definition: engine.c:35

◆ HTMLWindow3_AddRef()

static ULONG WINAPI HTMLWindow3_AddRef ( IHTMLWindow3 *  iface)
static

Definition at line 1555 of file htmlwindow.c.

1556 {
1558 
1559  return IHTMLWindow2_AddRef(&This->IHTMLWindow2_iface);
1560 }
static HTMLWindow * impl_from_IHTMLWindow3(IHTMLWindow3 *iface)
Definition: htmlwindow.c:1543
IHTMLWindow2 IHTMLWindow2_iface

◆ HTMLWindow3_attachEvent()

static HRESULT WINAPI HTMLWindow3_attachEvent ( IHTMLWindow3 *  iface,
BSTR  event,
IDispatch pDisp,
VARIANT_BOOL pfResult 
)
static

Definition at line 1636 of file htmlwindow.c.

1637 {
1639  HTMLInnerWindow *