Jacek Caban : mshtml.idl: Added HTMLXMLHttpRequest coclass declaration.
Alexandre Julliard
julliard at winehq.org
Thu Apr 13 13:06:09 CDT 2017
Module: wine
Branch: master
Commit: abdec32f68f4a15997f1c879d04a88982fbbe138
URL: http://source.winehq.org/git/wine.git/?a=commit;h=abdec32f68f4a15997f1c879d04a88982fbbe138
Author: Jacek Caban <jacek at codeweavers.com>
Date: Thu Apr 13 16:05:38 2017 +0200
mshtml.idl: Added HTMLXMLHttpRequest coclass declaration.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mshtml/xmlhttprequest.c | 14 ++++++--------
include/mshtml.idl | 17 +++++++++++++++++
2 files changed, 23 insertions(+), 8 deletions(-)
diff --git a/dlls/mshtml/xmlhttprequest.c b/dlls/mshtml/xmlhttprequest.c
index ab14c54..30389a4 100644
--- a/dlls/mshtml/xmlhttprequest.c
+++ b/dlls/mshtml/xmlhttprequest.c
@@ -92,20 +92,18 @@ static HRESULT return_nscstr(nsresult nsres, nsACString *nscstr, BSTR *p)
return S_OK;
}
-typedef struct XMLHttpReqEventListener XMLHttpReqEventListener;
-
typedef struct {
+ nsIDOMEventListener nsIDOMEventListener_iface;
+ LONG ref;
+ HTMLXMLHttpRequest *xhr;
+} XMLHttpReqEventListener;
+
+struct HTMLXMLHttpRequest {
EventTarget event_target;
IHTMLXMLHttpRequest IHTMLXMLHttpRequest_iface;
LONG ref;
nsIXMLHttpRequest *nsxhr;
XMLHttpReqEventListener *event_listener;
-} HTMLXMLHttpRequest;
-
-struct XMLHttpReqEventListener {
- nsIDOMEventListener nsIDOMEventListener_iface;
- LONG ref;
- HTMLXMLHttpRequest *xhr;
};
static void detach_xhr_event_listener(XMLHttpReqEventListener *event_listener)
diff --git a/include/mshtml.idl b/include/mshtml.idl
index 9a98dc8..74a9eb6 100644
--- a/include/mshtml.idl
+++ b/include/mshtml.idl
@@ -9134,6 +9134,23 @@ methods:
}
/*****************************************************************************
+ * HTMLXMLHttpRequest
+ */
+[
+ noncreatable,
+ uuid(3051040b-98b5-11cf-bb82-00aa00bdce0b)
+]
+coclass HTMLXMLHttpRequest
+{
+ [default] dispinterface DispHTMLXMLHttpRequest;
+ /* [source, default] dispinterface HTMLXMLHttpRequestEvents; */
+ interface IHTMLXMLHttpRequest;
+ interface IHTMLXMLHttpRequest2;
+ interface IHTMLDOMConstructor;
+ interface IEventTarget;
+}
+
+/*****************************************************************************
* IHTMLControlElement interface
*/
[
More information about the wine-cvs
mailing list