ReactOS 0.4.16-dev-13-ge2fc578
|
#include "mshtml_private.h"
Go to the source code of this file.
Classes | |
struct | handler_vector_t |
struct | event_target_t |
struct | event_info_t |
struct | HTMLEventObj |
Macros | |
#define | EVENT_DEFAULTLISTENER 0x0001 |
#define | EVENT_BUBBLE 0x0002 |
#define | EVENT_FORWARDBODY 0x0004 |
#define | EVENT_BIND_TO_BODY 0x0008 |
#define | EVENT_CANCELABLE 0x0010 |
#define | EVENT_HASDEFAULTHANDLERS 0x0020 |
Enumerations | |
enum | { EVENTT_NONE , EVENTT_HTML , EVENTT_KEY , EVENTT_MOUSE } |
Variables | |
static const WCHAR | abortW [] = {'a','b','o','r','t',0} |
static const WCHAR | onabortW [] = {'o','n','a','b','o','r','t',0} |
static const WCHAR | beforeunloadW [] = {'b','e','f','o','r','e','u','n','l','o','a','d',0} |
static const WCHAR | onbeforeunloadW [] = {'o','n','b','e','f','o','r','e','u','n','l','o','a','d',0} |
static const WCHAR | blurW [] = {'b','l','u','r',0} |
static const WCHAR | onblurW [] = {'o','n','b','l','u','r',0} |
static const WCHAR | changeW [] = {'c','h','a','n','g','e',0} |
static const WCHAR | onchangeW [] = {'o','n','c','h','a','n','g','e',0} |
static const WCHAR | clickW [] = {'c','l','i','c','k',0} |
static const WCHAR | onclickW [] = {'o','n','c','l','i','c','k',0} |
static const WCHAR | contextmenuW [] = {'c','o','n','t','e','x','t','m','e','n','u',0} |
static const WCHAR | oncontextmenuW [] = {'o','n','c','o','n','t','e','x','t','m','e','n','u',0} |
static const WCHAR | dataavailableW [] = {'d','a','t','a','a','v','a','i','l','a','b','l','e',0} |
static const WCHAR | ondataavailableW [] = {'o','n','d','a','t','a','a','v','a','i','l','a','b','l','e',0} |
static const WCHAR | dblclickW [] = {'d','b','l','c','l','i','c','k',0} |
static const WCHAR | ondblclickW [] = {'o','n','d','b','l','c','l','i','c','k',0} |
static const WCHAR | dragW [] = {'d','r','a','g',0} |
static const WCHAR | ondragW [] = {'o','n','d','r','a','g',0} |
static const WCHAR | dragstartW [] = {'d','r','a','g','s','t','a','r','t',0} |
static const WCHAR | ondragstartW [] = {'o','n','d','r','a','g','s','t','a','r','t',0} |
static const WCHAR | errorW [] = {'e','r','r','o','r',0} |
static const WCHAR | onerrorW [] = {'o','n','e','r','r','o','r',0} |
static const WCHAR | focusW [] = {'f','o','c','u','s',0} |
static const WCHAR | onfocusW [] = {'o','n','f','o','c','u','s',0} |
static const WCHAR | focusinW [] = {'f','o','c','u','s','i','n',0} |
static const WCHAR | onfocusinW [] = {'o','n','f','o','c','u','s','i','n',0} |
static const WCHAR | helpW [] = {'h','e','l','p',0} |
static const WCHAR | onhelpW [] = {'o','n','h','e','l','p',0} |
static const WCHAR | keydownW [] = {'k','e','y','d','o','w','n',0} |
static const WCHAR | onkeydownW [] = {'o','n','k','e','y','d','o','w','n',0} |
static const WCHAR | keypressW [] = {'k','e','y','p','r','e','s','s',0} |
static const WCHAR | onkeypressW [] = {'o','n','k','e','y','p','r','e','s','s',0} |
static const WCHAR | keyupW [] = {'k','e','y','u','p',0} |
static const WCHAR | onkeyupW [] = {'o','n','k','e','y','u','p',0} |
static const WCHAR | loadW [] = {'l','o','a','d',0} |
static const WCHAR | onloadW [] = {'o','n','l','o','a','d',0} |
static const WCHAR | mousedownW [] = {'m','o','u','s','e','d','o','w','n',0} |
static const WCHAR | onmousedownW [] = {'o','n','m','o','u','s','e','d','o','w','n',0} |
static const WCHAR | mousemoveW [] = {'m','o','u','s','e','m','o','v','e',0} |
static const WCHAR | onmousemoveW [] = {'o','n','m','o','u','s','e','m','o','v','e',0} |
static const WCHAR | mouseoutW [] = {'m','o','u','s','e','o','u','t',0} |
static const WCHAR | onmouseoutW [] = {'o','n','m','o','u','s','e','o','u','t',0} |
static const WCHAR | mouseoverW [] = {'m','o','u','s','e','o','v','e','r',0} |
static const WCHAR | onmouseoverW [] = {'o','n','m','o','u','s','e','o','v','e','r',0} |
static const WCHAR | mouseupW [] = {'m','o','u','s','e','u','p',0} |
static const WCHAR | onmouseupW [] = {'o','n','m','o','u','s','e','u','p',0} |
static const WCHAR | mousewheelW [] = {'m','o','u','s','e','w','h','e','e','l',0} |
static const WCHAR | onmousewheelW [] = {'o','n','m','o','u','s','e','w','h','e','e','l',0} |
static const WCHAR | pasteW [] = {'p','a','s','t','e',0} |
static const WCHAR | onpasteW [] = {'o','n','p','a','s','t','e',0} |
static const WCHAR | readystatechangeW [] = {'r','e','a','d','y','s','t','a','t','e','c','h','a','n','g','e',0} |
static const WCHAR | onreadystatechangeW [] = {'o','n','r','e','a','d','y','s','t','a','t','e','c','h','a','n','g','e',0} |
static const WCHAR | resizeW [] = {'r','e','s','i','z','e',0} |
static const WCHAR | onresizeW [] = {'o','n','r','e','s','i','z','e',0} |
static const WCHAR | scrollW [] = {'s','c','r','o','l','l',0} |
static const WCHAR | onscrollW [] = {'o','n','s','c','r','o','l','l',0} |
static const WCHAR | selectstartW [] = {'s','e','l','e','c','t','s','t','a','r','t',0} |
static const WCHAR | onselectstartW [] = {'o','n','s','e','l','e','c','t','s','t','a','r','t',0} |
static const WCHAR | submitW [] = {'s','u','b','m','i','t',0} |
static const WCHAR | onsubmitW [] = {'o','n','s','u','b','m','i','t',0} |
static const WCHAR | HTMLEventsW [] = {'H','T','M','L','E','v','e','n','t','s',0} |
static const WCHAR | KeyboardEventW [] = {'K','e','y','b','o','a','r','d','E','v','e','n','t',0} |
static const WCHAR | MouseEventW [] = {'M','o','u','s','e','E','v','e','n','t',0} |
static const WCHAR * | event_types [] |
static const event_info_t | event_info [] |
static const IHTMLEventObjVtbl | HTMLEventObjVtbl |
static const tid_t | HTMLEventObj_iface_tids [] |
static dispex_static_data_t | HTMLEventObj_dispex |
#define EVENT_BIND_TO_BODY 0x0008 |
Definition at line 150 of file htmlevent.c.
#define EVENT_BUBBLE 0x0002 |
Definition at line 148 of file htmlevent.c.
#define EVENT_CANCELABLE 0x0010 |
Definition at line 151 of file htmlevent.c.
#define EVENT_DEFAULTLISTENER 0x0001 |
Definition at line 147 of file htmlevent.c.
#define EVENT_FORWARDBODY 0x0004 |
Definition at line 149 of file htmlevent.c.
#define EVENT_HASDEFAULTHANDLERS 0x0020 |
Definition at line 152 of file htmlevent.c.
anonymous enum |
Enumerator | |
---|---|
EVENTT_NONE | |
EVENTT_HTML | |
EVENTT_KEY | |
EVENTT_MOUSE |
Definition at line 125 of file htmlevent.c.
|
static |
Definition at line 1298 of file htmlevent.c.
Referenced by attach_event(), and set_event_handler_disp().
HRESULT attach_event | ( | EventTarget * | event_target, |
BSTR | name, | ||
IDispatch * | disp, | ||
VARIANT_BOOL * | res | ||
) |
Definition at line 1469 of file htmlevent.c.
Referenced by HTMLDocument3_attachEvent(), HTMLElement2_attachEvent(), and HTMLWindow3_attachEvent().
Definition at line 230 of file htmlevent.c.
Referenced by attach_event(), bind_target_event(), detach_event(), and dispatch_event().
|
static |
Definition at line 1357 of file htmlevent.c.
Referenced by attach_event(), and set_event_handler_disp().
void bind_target_event | ( | HTMLDocumentNode * | doc, |
EventTarget * | event_target, | ||
const WCHAR * | event, | ||
IDispatch * | disp | ||
) |
Definition at line 1534 of file htmlevent.c.
Referenced by bind_event_scripts().
|
static |
Definition at line 904 of file htmlevent.c.
Referenced by call_event_handlers().
Definition at line 883 of file htmlevent.c.
Referenced by call_event_handlers().
void call_event_handlers | ( | HTMLDocumentNode * | doc, |
HTMLEventObj * | event_obj, | ||
EventTarget * | event_target, | ||
ConnectionPointContainer * | cp_container, | ||
eventid_t | eid, | ||
IDispatch * | this_obj | ||
) |
Definition at line 952 of file htmlevent.c.
Referenced by fire_event_obj(), and XMLHttpReqEventListener_HandleEvent().
HRESULT call_fire_event | ( | HTMLDOMNode * | node, |
eventid_t | eid | ||
) |
Definition at line 1282 of file htmlevent.c.
Referenced by HTMLElement_click().
void check_event_attr | ( | HTMLDocumentNode * | doc, |
nsIDOMHTMLElement * | nselem | ||
) |
Definition at line 1559 of file htmlevent.c.
Referenced by nsDocumentObserver_BindToDocument().
|
static |
Definition at line 816 of file htmlevent.c.
Referenced by create_event_obj(), and fire_event().
HRESULT create_event_obj | ( | IHTMLEventObj ** | ret | ) |
Definition at line 858 of file htmlevent.c.
Referenced by HTMLDocument4_createEventObject().
HRESULT detach_event | ( | EventTarget * | event_target, |
BSTR | name, | ||
IDispatch * | disp | ||
) |
Definition at line 1504 of file htmlevent.c.
Referenced by HTMLDocument3_detachEvent(), HTMLElement2_detachEvent(), and HTMLWindow3_detachEvent().
void detach_events | ( | HTMLDocumentNode * | doc | ) |
Definition at line 1341 of file htmlevent.c.
Referenced by detach_inner_window(), and HTMLDocumentNode_destructor().
HRESULT dispatch_event | ( | HTMLDOMNode * | node, |
const WCHAR * | event_name, | ||
VARIANT * | event_var, | ||
VARIANT_BOOL * | cancelled | ||
) |
Definition at line 1225 of file htmlevent.c.
Referenced by HTMLDocument4_fireEvent(), and HTMLElement3_fireEvent().
HRESULT doc_init_events | ( | HTMLDocumentNode * | doc | ) |
Definition at line 1591 of file htmlevent.c.
Referenced by create_doc_from_nsdoc().
HRESULT ensure_doc_nsevent_handler | ( | HTMLDocumentNode * | doc, |
eventid_t | eid | ||
) |
Definition at line 1319 of file htmlevent.c.
Referenced by doc_init_events(), HTMLDocumentNode_bind_event(), and update_doc_cp_events().
void fire_event | ( | HTMLDocumentNode * | doc, |
eventid_t | eid, | ||
BOOL | set_event, | ||
nsIDOMNode * | target, | ||
nsIDOMEvent * | nsevent, | ||
IDispatch * | script_this | ||
) |
Definition at line 1195 of file htmlevent.c.
Referenced by call_fire_event(), dispatch_event(), fire_readystatechange_proc(), handle_htmlevent(), handle_load(), HTMLElement_handle_event(), notif_readystate(), nsContextMenuListener_OnShowContextMenu(), and set_script_elem_readystate().
|
static |
Definition at line 1070 of file htmlevent.c.
Referenced by dispatch_event(), and fire_event().
HRESULT get_event_handler | ( | EventTarget * | event_target, |
eventid_t | eid, | ||
VARIANT * | var | ||
) |
Definition at line 1447 of file htmlevent.c.
Referenced by get_node_event(), get_window_event(), and HTMLXMLHttpRequest_get_onreadystatechange().
|
inlinestatic |
Definition at line 870 of file htmlevent.c.
Referenced by attach_event(), call_event_handlers(), detach_event(), get_event_handler(), remove_event_handler(), and set_event_handler_disp().
Definition at line 283 of file htmlevent.c.
|
static |
Definition at line 355 of file htmlevent.c.
Definition at line 541 of file htmlevent.c.
|
static |
Definition at line 482 of file htmlevent.c.
Definition at line 646 of file htmlevent.c.
Definition at line 668 of file htmlevent.c.
|
static |
Definition at line 385 of file htmlevent.c.
|
static |
Definition at line 492 of file htmlevent.c.
Definition at line 690 of file htmlevent.c.
Definition at line 700 of file htmlevent.c.
Definition at line 578 of file htmlevent.c.
Definition at line 588 of file htmlevent.c.
Definition at line 462 of file htmlevent.c.
Definition at line 710 of file htmlevent.c.
Definition at line 732 of file htmlevent.c.
|
static |
Definition at line 415 of file htmlevent.c.
|
static |
Definition at line 343 of file htmlevent.c.
Definition at line 754 of file htmlevent.c.
|
static |
Definition at line 502 of file htmlevent.c.
Definition at line 563 of file htmlevent.c.
Definition at line 598 of file htmlevent.c.
Definition at line 622 of file htmlevent.c.
|
static |
Definition at line 325 of file htmlevent.c.
|
static |
Definition at line 318 of file htmlevent.c.
|
static |
Definition at line 312 of file htmlevent.c.
|
static |
Definition at line 334 of file htmlevent.c.
|
static |
Definition at line 472 of file htmlevent.c.
Definition at line 512 of file htmlevent.c.
Definition at line 445 of file htmlevent.c.
|
static |
Definition at line 261 of file htmlevent.c.
Definition at line 293 of file htmlevent.c.
|
inlinestatic |
Definition at line 256 of file htmlevent.c.
Referenced by HTMLEventObj_AddRef(), HTMLEventObj_get_altKey(), HTMLEventObj_get_button(), HTMLEventObj_get_cancelBubble(), HTMLEventObj_get_clientX(), HTMLEventObj_get_clientY(), HTMLEventObj_get_ctrlKey(), HTMLEventObj_get_fromElement(), HTMLEventObj_get_keyCode(), HTMLEventObj_get_offsetX(), HTMLEventObj_get_offsetY(), HTMLEventObj_get_qualifier(), HTMLEventObj_get_reason(), HTMLEventObj_get_returnValue(), HTMLEventObj_get_screenX(), HTMLEventObj_get_screenY(), HTMLEventObj_get_shiftKey(), HTMLEventObj_get_srcElement(), HTMLEventObj_get_srcFilter(), HTMLEventObj_get_toElement(), HTMLEventObj_get_type(), HTMLEventObj_get_x(), HTMLEventObj_get_y(), HTMLEventObj_GetIDsOfNames(), HTMLEventObj_GetTypeInfo(), HTMLEventObj_GetTypeInfoCount(), HTMLEventObj_Invoke(), HTMLEventObj_put_cancelBubble(), HTMLEventObj_put_keyCode(), HTMLEventObj_put_returnValue(), HTMLEventObj_QueryInterface(), HTMLEventObj_Release(), and unsafe_impl_from_IHTMLEventObj().
|
static |
Definition at line 922 of file htmlevent.c.
Referenced by call_event_handlers(), and update_doc_cp_events().
void release_event_target | ( | event_target_t * | event_target | ) |
Definition at line 1613 of file htmlevent.c.
Referenced by HTMLDocumentNode_destructor(), and HTMLDOMNode_destructor().
|
static |
Definition at line 1365 of file htmlevent.c.
Referenced by set_event_handler(), and set_event_handler_disp().
HRESULT set_event_handler | ( | EventTarget * | event_target, |
eventid_t | eid, | ||
VARIANT * | var | ||
) |
Definition at line 1404 of file htmlevent.c.
Referenced by HTMLXMLHttpRequest_put_onreadystatechange(), set_node_event(), and set_window_event().
|
static |
Definition at line 1382 of file htmlevent.c.
Referenced by bind_target_event(), check_event_attr(), and set_event_handler().
|
static |
Definition at line 832 of file htmlevent.c.
Referenced by dispatch_event(), and fire_event().
Definition at line 217 of file htmlevent.c.
Referenced by handle_htmlevent().
|
inlinestatic |
Definition at line 799 of file htmlevent.c.
Referenced by dispatch_event().
void update_doc_cp_events | ( | HTMLDocumentNode * | doc, |
cp_static_data_t * | cp | ||
) |
Definition at line 1549 of file htmlevent.c.
Referenced by HTMLDocument_on_advise().
Definition at line 34 of file htmlevent.c.
Definition at line 40 of file htmlevent.c.
Definition at line 46 of file htmlevent.c.
Definition at line 49 of file htmlevent.c.
Definition at line 52 of file htmlevent.c.
Definition at line 58 of file htmlevent.c.
Definition at line 61 of file htmlevent.c.
Referenced by AMGetErrorTextA(), ldap_parse_resultA(), and Object_toString().
|
static |
Definition at line 154 of file htmlevent.c.
Referenced by attr_to_eid(), call_event_handlers(), check_event_attr(), detach_events(), dispatch_event(), doc_init_events(), ensure_doc_nsevent_handler(), fire_event_obj(), get_event_handler(), remove_event_handler(), set_event_handler(), set_event_info(), str_to_eid(), and update_doc_cp_events().
Definition at line 132 of file htmlevent.c.
Referenced by set_event_info().
Definition at line 67 of file htmlevent.c.
Definition at line 70 of file htmlevent.c.
Referenced by MsiGetFeatureInfoA(), resolve_filename(), and test_typelib_section().
|
static |
Definition at line 809 of file htmlevent.c.
Referenced by create_event().
Definition at line 804 of file htmlevent.c.
|
static |
Definition at line 764 of file htmlevent.c.
Referenced by create_event(), and unsafe_impl_from_IHTMLEventObj().
Definition at line 121 of file htmlevent.c.
Definition at line 122 of file htmlevent.c.
Definition at line 73 of file htmlevent.c.
Definition at line 76 of file htmlevent.c.
Definition at line 85 of file htmlevent.c.
Definition at line 123 of file htmlevent.c.
Definition at line 88 of file htmlevent.c.
Definition at line 91 of file htmlevent.c.
Definition at line 94 of file htmlevent.c.
Definition at line 97 of file htmlevent.c.
Definition at line 100 of file htmlevent.c.
Definition at line 32 of file htmlevent.c.
Definition at line 35 of file htmlevent.c.
Definition at line 38 of file htmlevent.c.
Definition at line 41 of file htmlevent.c.
Definition at line 44 of file htmlevent.c.
Definition at line 47 of file htmlevent.c.
|
static |
Definition at line 50 of file htmlevent.c.
Definition at line 53 of file htmlevent.c.
Definition at line 59 of file htmlevent.c.
Definition at line 56 of file htmlevent.c.
Definition at line 62 of file htmlevent.c.
Definition at line 68 of file htmlevent.c.
Definition at line 65 of file htmlevent.c.
Definition at line 71 of file htmlevent.c.
Definition at line 74 of file htmlevent.c.
Definition at line 77 of file htmlevent.c.
Definition at line 80 of file htmlevent.c.
Definition at line 83 of file htmlevent.c.
Definition at line 86 of file htmlevent.c.
Definition at line 89 of file htmlevent.c.
Definition at line 92 of file htmlevent.c.
Definition at line 95 of file htmlevent.c.
Definition at line 98 of file htmlevent.c.
Definition at line 101 of file htmlevent.c.
Definition at line 104 of file htmlevent.c.
|
static |
Definition at line 107 of file htmlevent.c.
Definition at line 110 of file htmlevent.c.
Definition at line 113 of file htmlevent.c.
Definition at line 116 of file htmlevent.c.
Definition at line 119 of file htmlevent.c.
|
static |
Definition at line 106 of file htmlevent.c.
Referenced by detach_xhr_event_listener(), and HTMLXMLHttpRequest_bind_event().
Definition at line 109 of file htmlevent.c.
Definition at line 112 of file htmlevent.c.
Definition at line 115 of file htmlevent.c.