mshtml: Added IHTMLWindow2::onerror semi-stub implementation.

This commit is contained in:
Jacek Caban 2012-04-04 15:08:38 +02:00 committed by Alexandre Julliard
parent 299f9e6b47
commit e370f4bf3a
3 changed files with 14 additions and 4 deletions

View File

@ -68,6 +68,9 @@ static const WCHAR ondragW[] = {'o','n','d','r','a','g',0};
static const WCHAR dragstartW[] = {'d','r','a','g','s','t','a','r','t',0}; static const WCHAR dragstartW[] = {'d','r','a','g','s','t','a','r','t',0};
static const WCHAR ondragstartW[] = {'o','n','d','r','a','g','s','t','a','r','t',0}; static const WCHAR ondragstartW[] = {'o','n','d','r','a','g','s','t','a','r','t',0};
static const WCHAR errorW[] = {'e','r','r','o','r',0};
static const WCHAR onerrorW[] = {'o','n','e','r','r','o','r',0};
static const WCHAR focusW[] = {'f','o','c','u','s',0}; static const WCHAR focusW[] = {'f','o','c','u','s',0};
static const WCHAR onfocusW[] = {'o','n','f','o','c','u','s',0}; static const WCHAR onfocusW[] = {'o','n','f','o','c','u','s',0};
@ -160,6 +163,8 @@ static const event_info_t event_info[] = {
EVENT_CANCELABLE}, EVENT_CANCELABLE},
{dragstartW, ondragstartW, EVENTT_MOUSE, DISPID_EVMETH_ONDRAGSTART, {dragstartW, ondragstartW, EVENTT_MOUSE, DISPID_EVMETH_ONDRAGSTART,
EVENT_CANCELABLE}, EVENT_CANCELABLE},
{errorW, onerrorW, EVENTT_NONE, DISPID_EVMETH_ONERROR,
0},
{focusW, onfocusW, EVENTT_HTML, DISPID_EVMETH_ONFOCUS, {focusW, onfocusW, EVENTT_HTML, DISPID_EVMETH_ONFOCUS,
EVENT_DEFAULTLISTENER}, EVENT_DEFAULTLISTENER},
{keydownW, onkeydownW, EVENTT_KEY, DISPID_EVMETH_ONKEYDOWN, {keydownW, onkeydownW, EVENTT_KEY, DISPID_EVMETH_ONKEYDOWN,

View File

@ -25,6 +25,7 @@ typedef enum {
EVENTID_DBLCLICK, EVENTID_DBLCLICK,
EVENTID_DRAG, EVENTID_DRAG,
EVENTID_DRAGSTART, EVENTID_DRAGSTART,
EVENTID_ERROR,
EVENTID_FOCUS, EVENTID_FOCUS,
EVENTID_KEYDOWN, EVENTID_KEYDOWN,
EVENTID_KEYUP, EVENTID_KEYUP,

View File

@ -971,15 +971,19 @@ static HRESULT WINAPI HTMLWindow2_get_onhelp(IHTMLWindow2 *iface, VARIANT *p)
static HRESULT WINAPI HTMLWindow2_put_onerror(IHTMLWindow2 *iface, VARIANT v) static HRESULT WINAPI HTMLWindow2_put_onerror(IHTMLWindow2 *iface, VARIANT v)
{ {
HTMLWindow *This = impl_from_IHTMLWindow2(iface); HTMLWindow *This = impl_from_IHTMLWindow2(iface);
FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
return E_NOTIMPL; FIXME("(%p)->(%s) semi-stub\n", This, debugstr_variant(&v));
return set_window_event(This, EVENTID_ERROR, &v);
} }
static HRESULT WINAPI HTMLWindow2_get_onerror(IHTMLWindow2 *iface, VARIANT *p) static HRESULT WINAPI HTMLWindow2_get_onerror(IHTMLWindow2 *iface, VARIANT *p)
{ {
HTMLWindow *This = impl_from_IHTMLWindow2(iface); HTMLWindow *This = impl_from_IHTMLWindow2(iface);
FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; TRACE("(%p)->(%p)\n", This, p);
return get_window_event(This, EVENTID_ERROR, p);
} }
static HRESULT WINAPI HTMLWindow2_put_onresize(IHTMLWindow2 *iface, VARIANT v) static HRESULT WINAPI HTMLWindow2_put_onresize(IHTMLWindow2 *iface, VARIANT v)