Commit 020a68e1 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml.idl: Added IDOMEvent and IDOMEventTarget declarations.

parent 84eb4753
......@@ -108,6 +108,28 @@
#define DISPID_DOMSTORAGEITEM DISPID_NORMAL_FIRST
#define DISPID_DOMSTORAGE DISPID_NORMAL_FIRST
#define DISPID_DOMSTORAGELIST DISPID_NORMAL_FIRST
#define DISPID_RULESAPPLIED DISPID_NORMAL_FIRST
#define DISPID_RULESAPPLIED_COLLECTION DISPID_NORMAL_FIRST
#define DISPID_STYLESHEETRULESAPPLIED_COLLECTION DISPID_NORMAL_FIRST
#define DISPID_PROCESSINGINSTRUCTION DISPID_NORMAL_FIRST
#define DISPID_DOMEVENT DISPID_NORMAL_FIRST
#define DISPID_DOMUIEVENT (DISPID_DOMEVENT+25)
#define DISPID_DOMMOUSEEVENT (DISPID_DOMUIEVENT+25)
#define DISPID_DOMMOUSEWHEELEVENT (DISPID_DOMMOUSEEVENT+25)
#define DISPID_DOMWHEELEVENT (DISPID_DOMMOUSEWHEELEVENT+25)
#define DISPID_DOMTEXTEVENT (DISPID_DOMWHEELEVENT+25)
#define DISPID_DOMKEYBOARDEVENT (DISPID_DOMTEXTEVENT+25)
#define DISPID_DOMCOMPOSITIONEVENT (DISPID_DOMKEYBOARDEVENT+25)
#define DISPID_DOMCUSTOMEVENT (DISPID_DOMCOMPOSITIONEVENT+25)
#define DISPID_DOMMUTATIONEVENT (DISPID_DOMCUSTOMEVENT+25)
#define DISPID_DOMFOCUSEVENT (DISPID_DOMMUTATIONEVENT+25)
#define DISPID_SVGZOOMEVENT (DISPID_DOMFOCUSEVENT+25)
#define DISPID_DOMSITEMODEEVENT (DISPID_SVGZOOMEVENT+25)
#define DISPID_DOMMESSAGEEVENT (DISPID_DOMSITEMODEEVENT+25)
#define DISPID_DOMSTORAGEEVENT (DISPID_DOMMESSAGEEVENT+25)
#define DISPID_DOMBEFOREUNLOADEVENT (DISPID_DOMSTORAGEEVENT+25)
#define DISPID_DOMDRAGEVENT (DISPID_DOMBEFOREUNLOADEVENT+25)
#define DISPID_DOMIMPLEMENTATION DISPID_NORMAL_FIRST
#define DISPID_DOCUMENTCOMPATIBLEINFO DISPID_NORMAL_FIRST
......@@ -2886,6 +2908,23 @@
#define DISPID_IEVENTTARGET_REMOVEEVENTLISTENER DISPID_HTMLOBJECT+11
#define DISPID_IEVENTTARGET_DISPATCHEVENT DISPID_HTMLOBJECT+12
/* IDOMEvent */
#define DISPID_IDOMEVENT_BUBBLES DISPID_DOMEVENT+1
#define DISPID_IDOMEVENT_CANCELABLE DISPID_DOMEVENT+2
#define DISPID_IDOMEVENT_CURRENTTARGET DISPID_DOMEVENT+3
#define DISPID_IDOMEVENT_DEFAULTPREVENTED DISPID_DOMEVENT+4
#define DISPID_IDOMEVENT_EVENTPHASE DISPID_DOMEVENT+5
#define DISPID_IDOMEVENT_TARGET DISPID_DOMEVENT+6
#define DISPID_IDOMEVENT_TIMESTAMP DISPID_DOMEVENT+7
#define DISPID_IDOMEVENT_TYPE DISPID_DOMEVENT+8
#define DISPID_IDOMEVENT_INITEVENT DISPID_DOMEVENT+9
#define DISPID_IDOMEVENT_PREVENTDEFAULT DISPID_DOMEVENT+10
#define DISPID_IDOMEVENT_STOPPROPAGATION DISPID_DOMEVENT+11
#define DISPID_IDOMEVENT_STOPIMMEDIATEPROPAGATION DISPID_DOMEVENT+12
#define DISPID_IDOMEVENT_ISTRUSTED DISPID_DOMEVENT+13
#define DISPID_IDOMEVENT_CANCELBUBBLE DISPID_DOMEVENT+14
#define DISPID_IDOMEVENT_SRCELEMENT DISPID_DOMEVENT+15
/* IHTMLControlElement */
#define DISPID_IHTMLCONTROLELEMENT_TABINDEX STDPROPID_XOBJ_TABINDEX
#define DISPID_IHTMLCONTROLELEMENT_FOCUS (DISPID_SITE+0)
......
......@@ -131,6 +131,7 @@ interface IHTMLElement2;
interface IHTMLStyleSheetsCollection;
interface IHTMLFrameBase;
interface IHTMLStorage;
interface IDOMEvent;
/*****************************************************************************
* IHTMLFiltersCollection interface
......@@ -7975,6 +7976,22 @@ methods:
VARIANT ontimeout();
WINE_IHTMLDOMCONSTRUCTOR_DISPINTERFACE_DECL;
[id(DISPID_IEVENTTARGET_ADDEVENTLISTENER)]
void addEventListener(
[in] BSTR type,
[in] IDispatch *listener,
[in] VARIANT_BOOL useCapture);
[id(DISPID_IEVENTTARGET_REMOVEEVENTLISTENER)]
void removeEventListener(
[in] BSTR type,
[in] IDispatch *listener,
[in] VARIANT_BOOL useCapture);
[id(DISPID_IEVENTTARGET_DISPATCHEVENT)]
VARIANT_BOOL dispatchEvent([in] IDOMEvent *evt);
}
/*****************************************************************************
......@@ -17208,6 +17225,98 @@ interface IHTMLStorage : IDispatch
}
/*****************************************************************************
* IDOMEventTarget interface
*/
[
odl,
oleautomation,
dual,
uuid(305104b9-98b5-11cf-bb82-00aa00bdce0b)
]
interface IEventTarget : IDispatch
{
[id(DISPID_IEVENTTARGET_ADDEVENTLISTENER)]
HRESULT addEventListener(
[in] BSTR type,
[in] IDispatch *listener,
[in] VARIANT_BOOL useCapture);
[id(DISPID_IEVENTTARGET_REMOVEEVENTLISTENER)]
HRESULT removeEventListener(
[in] BSTR type,
[in] IDispatch *listener,
[in] VARIANT_BOOL useCapture);
[id(DISPID_IEVENTTARGET_DISPATCHEVENT)]
HRESULT dispatchEvent(
[in] IDOMEvent *evt,
[out, retval] VARIANT_BOOL *pfResult);
}
/*****************************************************************************
* IDOMEvent interface
*/
[
odl,
oleautomation,
dual,
uuid(305104ba-98b5-11cf-bb82-00aa00bdce0b)
]
interface IDOMEvent : IDispatch
{
[propget, id(DISPID_IDOMEVENT_BUBBLES)]
HRESULT bubbles([out, retval] VARIANT_BOOL *p);
[propget, id(DISPID_IDOMEVENT_CANCELABLE)]
HRESULT cancelable([out, retval] VARIANT_BOOL *p);
[propget, id(DISPID_IDOMEVENT_CURRENTTARGET)]
HRESULT currentTarget([out, retval] IEventTarget **p);
[propget, id(DISPID_IDOMEVENT_DEFAULTPREVENTED)]
HRESULT defaultPrevented([out, retval] VARIANT_BOOL *p);
[propget, id(DISPID_IDOMEVENT_EVENTPHASE)]
HRESULT eventPhase([out, retval] USHORT *p);
[propget, id(DISPID_IDOMEVENT_TARGET)]
HRESULT target([out, retval] IEventTarget **p);
[propget, id(DISPID_IDOMEVENT_TIMESTAMP)]
HRESULT timeStamp([out, retval] ULONGLONG *p);
[propget, id(DISPID_IDOMEVENT_TYPE)]
HRESULT type([out, retval] BSTR *p);
[id(DISPID_IDOMEVENT_INITEVENT)]
HRESULT initEvent(
[in] BSTR eventType,
[in] VARIANT_BOOL canBubble,
[in] VARIANT_BOOL cancelable);
[id(DISPID_IDOMEVENT_PREVENTDEFAULT)]
HRESULT preventDefault();
[id(DISPID_IDOMEVENT_STOPPROPAGATION)]
HRESULT stopPropagation();
[id(DISPID_IDOMEVENT_STOPIMMEDIATEPROPAGATION)]
HRESULT stopImmediatePropagation();
[propget, id(DISPID_IDOMEVENT_ISTRUSTED)]
HRESULT isTrusted([out, retval] VARIANT_BOOL *p);
[propput, id(DISPID_IDOMEVENT_CANCELBUBBLE)]
HRESULT cancelBubble([in] VARIANT_BOOL v);
[propget, id(DISPID_IDOMEVENT_CANCELBUBBLE)]
HRESULT cancelBubble([out, retval] VARIANT_BOOL *p);
[propget, id(DISPID_IDOMEVENT_SRCELEMENT)]
HRESULT srcElement([out, retval] IHTMLElement **p);
}
/*****************************************************************************
* IMarkupContainer interface
*/
[
......
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