Commit 7c45b742 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml: Implement onprogress for XMLHttpRequest.

parent 6e2a6cdc
...@@ -175,6 +175,8 @@ static const event_info_t event_info[] = { ...@@ -175,6 +175,8 @@ static const event_info_t event_info[] = {
EVENT_FIXME}, EVENT_FIXME},
{L"paste", EVENT_TYPE_CLIPBOARD, DISPID_EVMETH_ONPASTE, {L"paste", EVENT_TYPE_CLIPBOARD, DISPID_EVMETH_ONPASTE,
EVENT_FIXME | EVENT_BUBBLES | EVENT_CANCELABLE}, EVENT_FIXME | EVENT_BUBBLES | EVENT_CANCELABLE},
{L"progress", EVENT_TYPE_PROGRESS, DISPID_EVPROP_PROGRESS,
EVENT_BIND_TO_TARGET},
{L"readystatechange", EVENT_TYPE_EVENT, DISPID_EVMETH_ONREADYSTATECHANGE, {L"readystatechange", EVENT_TYPE_EVENT, DISPID_EVMETH_ONREADYSTATECHANGE,
0}, 0},
{L"resize", EVENT_TYPE_UIEVENT, DISPID_EVMETH_ONRESIZE, {L"resize", EVENT_TYPE_UIEVENT, DISPID_EVMETH_ONRESIZE,
......
...@@ -50,6 +50,7 @@ typedef enum { ...@@ -50,6 +50,7 @@ typedef enum {
EVENTID_MOUSEWHEEL, EVENTID_MOUSEWHEEL,
EVENTID_MSTHUMBNAILCLICK, EVENTID_MSTHUMBNAILCLICK,
EVENTID_PASTE, EVENTID_PASTE,
EVENTID_PROGRESS,
EVENTID_READYSTATECHANGE, EVENTID_READYSTATECHANGE,
EVENTID_RESIZE, EVENTID_RESIZE,
EVENTID_SCROLL, EVENTID_SCROLL,
......
...@@ -97,6 +97,7 @@ static HRESULT return_nscstr(nsresult nsres, nsACString *nscstr, BSTR *p) ...@@ -97,6 +97,7 @@ static HRESULT return_nscstr(nsresult nsres, nsACString *nscstr, BSTR *p)
static const eventid_t events[] = { static const eventid_t events[] = {
EVENTID_READYSTATECHANGE, EVENTID_READYSTATECHANGE,
EVENTID_LOAD, EVENTID_LOAD,
EVENTID_PROGRESS,
EVENTID_ABORT, EVENTID_ABORT,
EVENTID_ERROR, EVENTID_ERROR,
EVENTID_TIMEOUT, EVENTID_TIMEOUT,
...@@ -1001,18 +1002,18 @@ static HRESULT WINAPI HTMLXMLHttpRequest_private_put_onprogress(IWineXMLHttpRequ ...@@ -1001,18 +1002,18 @@ static HRESULT WINAPI HTMLXMLHttpRequest_private_put_onprogress(IWineXMLHttpRequ
{ {
HTMLXMLHttpRequest *This = impl_from_IWineXMLHttpRequestPrivate(iface); HTMLXMLHttpRequest *This = impl_from_IWineXMLHttpRequestPrivate(iface);
FIXME("(%p)->(%s)\n", This, debugstr_variant(&v)); TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
return E_NOTIMPL; return set_event_handler(&This->event_target, EVENTID_PROGRESS, &v);
} }
static HRESULT WINAPI HTMLXMLHttpRequest_private_get_onprogress(IWineXMLHttpRequestPrivate *iface, VARIANT *p) static HRESULT WINAPI HTMLXMLHttpRequest_private_get_onprogress(IWineXMLHttpRequestPrivate *iface, VARIANT *p)
{ {
HTMLXMLHttpRequest *This = impl_from_IWineXMLHttpRequestPrivate(iface); HTMLXMLHttpRequest *This = impl_from_IWineXMLHttpRequestPrivate(iface);
FIXME("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
return E_NOTIMPL; return get_event_handler(&This->event_target, EVENTID_PROGRESS, p);
} }
static HRESULT WINAPI HTMLXMLHttpRequest_private_put_onloadstart(IWineXMLHttpRequestPrivate *iface, VARIANT v) static HRESULT WINAPI HTMLXMLHttpRequest_private_put_onloadstart(IWineXMLHttpRequestPrivate *iface, VARIANT v)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment