From eb2bf1d6bcd47178c5d03f31892bd74dd8f9b76c Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 18 Dec 2017 16:22:31 +0100 Subject: [PATCH] mshtml.idl: Added events dispinterfaces declarations. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- include/mshtmdid.h | 5 + include/mshtml.idl | 263 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 268 insertions(+) diff --git a/include/mshtmdid.h b/include/mshtmdid.h index 9ff63880fd6..6c392c6356b 100644 --- a/include/mshtmdid.h +++ b/include/mshtmdid.h @@ -3493,6 +3493,11 @@ #define DISPID_IDOMEVENT_CANCELBUBBLE DISPID_DOMEVENT+14 #define DISPID_IDOMEVENT_SRCELEMENT DISPID_DOMEVENT+15 +/* IDOMUIEvent */ +#define DISPID_IDOMUIEVENT_VIEW DISPID_DOMUIEVENT+1 +#define DISPID_IDOMUIEVENT_DETAIL DISPID_DOMUIEVENT+2 +#define DISPID_IDOMUIEVENT_INITUIEVENT DISPID_DOMUIEVENT+3 + /* IDOMMouseEvent */ #define DISPID_IDOMMOUSEEVENT_SCREENX DISPID_DOMMOUSEEVENT+1 #define DISPID_IDOMMOUSEEVENT_SCREENY DISPID_DOMMOUSEEVENT+2 diff --git a/include/mshtml.idl b/include/mshtml.idl index 9e8c871fa47..42593dc9319 100644 --- a/include/mshtml.idl +++ b/include/mshtml.idl @@ -20102,6 +20102,99 @@ interface IDOMEvent : IDispatch HRESULT srcElement([out, retval] IHTMLElement **p); } +/***************************************************************************** + * DispDOMEvent dispinterface + */ +[ + hidden, + uuid(3050f5a2-98b5-11cf-bb82-00aa00bdce0b) +] +dispinterface DispDOMEvent +{ +properties: +methods: +#define WINE_IDOMEVENT_DISPINTERFACE_DECL \ + [propget, id(DISPID_IDOMEVENT_BUBBLES)] \ + VARIANT_BOOL bubbles(); \ + \ + [propget, id(DISPID_IDOMEVENT_CANCELABLE)] \ + VARIANT_BOOL cancelable(); \ + \ + [propget, id(DISPID_IDOMEVENT_CURRENTTARGET)] \ + IEventTarget *currentTarget(); \ + \ + [propget, id(DISPID_IDOMEVENT_DEFAULTPREVENTED)] \ + VARIANT_BOOL defaultPrevented(); \ + \ + [propget, id(DISPID_IDOMEVENT_EVENTPHASE)] \ + USHORT eventPhase(); \ + \ + [propget, id(DISPID_IDOMEVENT_TARGET)] \ + IEventTarget *target(); \ + \ + [propget, id(DISPID_IDOMEVENT_TIMESTAMP)] \ + ULONGLONG timeStamp(); \ + \ + [propget, id(DISPID_IDOMEVENT_TYPE)] \ + BSTR type(); \ + \ + [id(DISPID_IDOMEVENT_INITEVENT)] \ + void initEvent( \ + [in] BSTR eventType, \ + [in] VARIANT_BOOL canBubble, \ + [in] VARIANT_BOOL cancelable); \ + \ + [id(DISPID_IDOMEVENT_PREVENTDEFAULT)] \ + void preventDefault(); \ + \ + [id(DISPID_IDOMEVENT_STOPPROPAGATION)] \ + void stopPropagation(); \ + \ + [id(DISPID_IDOMEVENT_STOPIMMEDIATEPROPAGATION)] \ + void stopImmediatePropagation(); \ + \ + [propget, id(DISPID_IDOMEVENT_ISTRUSTED)] \ + VARIANT_BOOL isTrusted(); \ + \ + [propput, id(DISPID_IDOMEVENT_CANCELBUBBLE)] \ + void cancelBubble(VARIANT_BOOL v); \ + \ + [propget, id(DISPID_IDOMEVENT_CANCELBUBBLE)] \ + VARIANT_BOOL cancelBubble(); \ + \ + [propget, id(DISPID_IDOMEVENT_SRCELEMENT)] \ + IHTMLElement *srcElement() + + WINE_IDOMEVENT_DISPINTERFACE_DECL; +} + +[ + hidden, + uuid(30590072-98b5-11cf-bb82-00aa00bdce0b) +] +dispinterface DispDOMUIEvent +{ +properties: +methods: +#define WINE_IDOMUIEVENT_DISPINTERFACE_DECL \ + [propget, id(DISPID_IDOMUIEVENT_VIEW)] \ + IHTMLWindow2 *view(); \ + \ + [propget, id(DISPID_IDOMUIEVENT_DETAIL)] \ + long detail(); \ + \ + [id(DISPID_IDOMUIEVENT_INITUIEVENT)] \ + void initUIEvent( \ + [in] BSTR eventType, \ + [in] VARIANT_BOOL canBubble, \ + [in] VARIANT_BOOL cancelable, \ + [in] IHTMLWindow2 *view, \ + [in] long detail) + + WINE_IDOMEVENT_DISPINTERFACE_DECL; + WINE_IDOMUIEVENT_DISPINTERFACE_DECL; +} + /***************************************************************************** * IDOMMouseEvent interface */ @@ -20203,6 +20296,110 @@ interface IDOMMouseEvent : IDispatch HRESULT which([out, retval] USHORT *p); } +/***************************************************************************** + * DispDOMMouseEvent dispinterface + */ +[ + hidden, + uuid(30590073-98b5-11cf-bb82-00aa00bdce0b) +] +dispinterface DispDOMMouseEvent +{ +properties: +methods: +#define WINE_IDOMMOUSEEVENT_DISPINTERFACE_DECL \ + [propget, id(DISPID_IDOMMOUSEEVENT_SCREENX)] \ + long screenX(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_SCREENY)] \ + long screenY(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_CLIENTX)] \ + long clientX(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_CLIENTY)] \ + long clientY(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_CTRLKEY)] \ + VARIANT_BOOL ctrlKey(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_SHIFTKEY)] \ + VARIANT_BOOL shiftKey(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_ALTKEY)] \ + VARIANT_BOOL altKey(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_METAKEY)] \ + VARIANT_BOOL metaKey(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_BUTTON)] \ + USHORT button(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_RELATEDTARGET)] \ + IEventTarget *relatedTarget(); \ + \ + [id(DISPID_IDOMMOUSEEVENT_INITMOUSEEVENT)] \ + void initMouseEvent( \ + [in] BSTR eventType, \ + [in] VARIANT_BOOL canBubble, \ + [in] VARIANT_BOOL cancelable, \ + [in] IHTMLWindow2 *viewArg, \ + [in] long detailArg, \ + [in] long screenXArg, \ + [in] long screenYArg, \ + [in] long clientXArg, \ + [in] long clientYArg, \ + [in] VARIANT_BOOL ctrlKeyArg, \ + [in] VARIANT_BOOL altKeyArg, \ + [in] VARIANT_BOOL shiftKeyArg, \ + [in] VARIANT_BOOL metaKeyArg, \ + [in] USHORT buttonArg, \ + [in] IEventTarget *relatedTargetArg); \ + \ + [id(DISPID_IDOMMOUSEEVENT_GETMODIFIERSTATE)] \ + VARIANT_BOOL getModifierState([in] BSTR keyArg); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_BUTTONS)] \ + USHORT buttons(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_FROMELEMENT)] \ + IHTMLElement *fromElement(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_TOELEMENT)] \ + IHTMLElement *toElement(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_X)] \ + long x(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_Y)] \ + long y(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_OFFSETX)] \ + long offsetX(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_OFFSETY)] \ + long offsetY(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_PAGEX)] \ + long pageX(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_PAGEY)] \ + long pageY(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_LAYERX)] \ + long layerX(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_LAYERY)] \ + long layerY(); \ + \ + [propget, id(DISPID_IDOMMOUSEEVENT_WHICH)] \ + USHORT which() + + WINE_IDOMEVENT_DISPINTERFACE_DECL; + WINE_IDOMUIEVENT_DISPINTERFACE_DECL; + WINE_IDOMMOUSEEVENT_DISPINTERFACE_DECL; +} + /***************************************************************************** * IDOMKeyboardEvent interface */ @@ -20268,6 +20465,72 @@ interface IDOMKeyboardEvent : IDispatch HRESULT locale([out, retval] BSTR *p); } +/***************************************************************************** + * DispDOMKeyboardEvent dispinterface + */ +[ + hidden, + uuid(30590077-98b5-11cf-bb82-00aa00bdce0b) +] +dispinterface DispDOMKeyboardEvent +{ +properties: +methods: + WINE_IDOMEVENT_DISPINTERFACE_DECL; + WINE_IDOMUIEVENT_DISPINTERFACE_DECL; + + [propget, id(DISPID_IDOMKEYBOARDEVENT_KEY)] + BSTR key(); + + [propget, id(DISPID_IDOMKEYBOARDEVENT_LOCATION)] + ULONG location(); + + [propget, id(DISPID_IDOMKEYBOARDEVENT_CTRLKEY)] + VARIANT_BOOL ctrlKey(); + + [propget, id(DISPID_IDOMKEYBOARDEVENT_SHIFTKEY)] + VARIANT_BOOL shiftKey(); + + [propget, id(DISPID_IDOMKEYBOARDEVENT_ALTKEY)] + VARIANT_BOOL altKey(); + + [propget, id(DISPID_IDOMKEYBOARDEVENT_METAKEY)] + VARIANT_BOOL metaKey(); + + [propget, id(DISPID_IDOMKEYBOARDEVENT_REPEAT)] + VARIANT_BOOL repeat(); + + [id(DISPID_IDOMKEYBOARDEVENT_GETMODIFIERSTATE)] + VARIANT_BOOL getModifierState([in] BSTR keyArg); + + [id(DISPID_IDOMKEYBOARDEVENT_INITKEYBOARDEVENT)] + void initKeyboardEvent( + [in] BSTR eventType, + [in] VARIANT_BOOL canBubble, + [in] VARIANT_BOOL cancelable, + [in] IHTMLWindow2 *viewArg, + [in] BSTR keyArg, + [in] ULONG locationArg, + [in] BSTR modifiersListArg, + [in] VARIANT_BOOL repeat, + [in] BSTR locale); + + [propget, id(DISPID_IDOMKEYBOARDEVENT_KEYCODE)] + long keyCode(); + + [propget, id(DISPID_IDOMKEYBOARDEVENT_CHARCODE)] + long charCode(); + + [propget, id(DISPID_IDOMKEYBOARDEVENT_WHICH)] + long which(); + + [propget, id(DISPID_IDOMKEYBOARDEVENT_IE9_CHAR)] + VARIANT ie9_char(); + + [propget, id(DISPID_IDOMKEYBOARDEVENT_LOCALE)] + BSTR locale(); +} + /***************************************************************************** * IDOMMessageEvent interface */