mshtml.idl: Added IXMLHttpRequest declaration.

This commit is contained in:
Jacek Caban 2012-07-20 20:19:23 +02:00 committed by Alexandre Julliard
parent 1a36da15af
commit 930065072a
2 changed files with 84 additions and 0 deletions

View file

@ -1798,6 +1798,28 @@
/* IHTMLImgElement2 */
#define DISPID_IHTMLIMGELEMENT2_LONGDESC DISPID_IMG+19
/* IHTMLXMLHttpRequest */
#define DISPID_IHTMLXMLHTTPREQUEST_READYSTATE DISPID_XMLHTTPREQUEST+2
#define DISPID_IHTMLXMLHTTPREQUEST_RESPONSEBODY DISPID_XMLHTTPREQUEST+3
#define DISPID_IHTMLXMLHTTPREQUEST_RESPONSETEXT DISPID_XMLHTTPREQUEST+4
#define DISPID_IHTMLXMLHTTPREQUEST_RESPONSEXML DISPID_XMLHTTPREQUEST+5
#define DISPID_IHTMLXMLHTTPREQUEST_STATUS DISPID_XMLHTTPREQUEST+6
#define DISPID_IHTMLXMLHTTPREQUEST_STATUSTEXT DISPID_XMLHTTPREQUEST+7
#define DISPID_IHTMLXMLHTTPREQUEST_ONREADYSTATECHANGE DISPID_EVPROP_ONREADYSTATECHANGE
#define DISPID_IHTMLXMLHTTPREQUEST_ABORT DISPID_XMLHTTPREQUEST+9
#define DISPID_IHTMLXMLHTTPREQUEST_OPEN DISPID_XMLHTTPREQUEST+10
#define DISPID_IHTMLXMLHTTPREQUEST_SEND DISPID_XMLHTTPREQUEST+11
#define DISPID_IHTMLXMLHTTPREQUEST_GETALLRESPONSEHEADERS DISPID_XMLHTTPREQUEST+12
#define DISPID_IHTMLXMLHTTPREQUEST_GETRESPONSEHEADER DISPID_XMLHTTPREQUEST+13
#define DISPID_IHTMLXMLHTTPREQUEST_SETREQUESTHEADER DISPID_XMLHTTPREQUEST+14
/* IHTMLXMLHttpRequest2 */
#define DISPID_IHTMLXMLHTTPREQUEST2_TIMEOUT DISPID_XMLHTTPREQUEST+15
#define DISPID_IHTMLXMLHTTPREQUEST2_ONTIMEOUT DISPID_EVPROP_TIMEOUT
/* IHTMLXMLHttpRequestFactory */
#define DISPID_IHTMLXMLHTTPREQUESTFACTORY_CREATE DISPID_VALUE
/* IOmHistory */
#define DISPID_IOMHISTORY_LENGTH DISPID_HISTORY
#define DISPID_IOMHISTORY_BACK (DISPID_HISTORY+1)

View file

@ -7801,6 +7801,68 @@ methods:
BSTR longDesc();
}
/*****************************************************************************
* IHTMLXMLHttpRequest interface
*/
[
odl,
oleautomation,
dual,
uuid(3051040a-98b5-11cf-bb82-00aa00bdce0b)
]
interface IHTMLXMLHttpRequest : IDispatch
{
[propget, id(DISPID_IHTMLXMLHTTPREQUEST_READYSTATE)]
HRESULT readyState([out, retval] long *p);
[propget, id(DISPID_IHTMLXMLHTTPREQUEST_RESPONSEBODY)]
HRESULT responseBody([out, retval] VARIANT *p);
[propget, id(DISPID_IHTMLXMLHTTPREQUEST_RESPONSETEXT)]
HRESULT responseText([out, retval] BSTR *p);
[propget, id(DISPID_IHTMLXMLHTTPREQUEST_RESPONSEXML)]
HRESULT responseXML([out, retval] IDispatch **p);
[propget, id(DISPID_IHTMLXMLHTTPREQUEST_STATUS)]
HRESULT status([out, retval] long *p);
[propget, id(DISPID_IHTMLXMLHTTPREQUEST_STATUSTEXT)]
HRESULT statusText([out, retval] BSTR *p);
[propput, id(DISPID_IHTMLXMLHTTPREQUEST_ONREADYSTATECHANGE), displaybind, bindable]
HRESULT onreadystatechange([in] VARIANT v);
[propget, id(DISPID_IHTMLXMLHTTPREQUEST_ONREADYSTATECHANGE), displaybind, bindable]
HRESULT onreadystatechange([out, retval] VARIANT *p);
[id(DISPID_IHTMLXMLHTTPREQUEST_ABORT)] HRESULT abort();
[id(DISPID_IHTMLXMLHTTPREQUEST_OPEN)]
HRESULT open(
[in] BSTR bstrMethod,
[in] BSTR bstrUrl,
[in] VARIANT varAsync,
[in, optional] VARIANT varUser,
[in, optional] VARIANT varPassword);
[id(DISPID_IHTMLXMLHTTPREQUEST_SEND)]
HRESULT send([in, optional] VARIANT varBody);
[id(DISPID_IHTMLXMLHTTPREQUEST_GETALLRESPONSEHEADERS)]
HRESULT getAllResponseHeaders([out, retval] BSTR *p);
[id(DISPID_IHTMLXMLHTTPREQUEST_GETRESPONSEHEADER)]
HRESULT getResponseHeader(
[in] BSTR bstrHeader,
[out, retval] BSTR *p);
[id(DISPID_IHTMLXMLHTTPREQUEST_SETREQUESTHEADER)]
HRESULT setRequestHeader(
[in] BSTR bstrHeader,
[in] BSTR bstrValue);
}
/*****************************************************************************
* IHTMLControlElement interface
*/