From 01dc47c884b9461e50762fd9fd398509f34845b0 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 23 Jun 2008 09:54:00 -0500 Subject: [PATCH] mshtml: Added onclick attribute support. --- dlls/mshtml/htmlevent.c | 4 ++++ dlls/mshtml/mshtml_private.h | 11 ++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/dlls/mshtml/htmlevent.c b/dlls/mshtml/htmlevent.c index 73c0981c2e4..6583716ed13 100644 --- a/dlls/mshtml/htmlevent.c +++ b/dlls/mshtml/htmlevent.c @@ -35,6 +35,9 @@ struct event_target_t { IDispatch *event_table[EVENTID_LAST]; }; +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 loadW[] = {'l','o','a','d',0}; static const WCHAR onloadW[] = {'o','n','l','o','a','d',0}; @@ -44,6 +47,7 @@ typedef struct { } event_info_t; static const event_info_t event_info[] = { + {clickW, onclickW}, {loadW, onloadW} }; diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index c42eb6ae3ff..2522125d2c6 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -98,6 +98,12 @@ typedef enum { LAST_tid } tid_t; +typedef enum { + EVENTID_CLICK, + EVENTID_LOAD, + EVENTID_LAST +} eventid_t; + typedef struct dispex_data_t dispex_data_t; typedef struct dispex_dynamic_data_t dispex_dynamic_data_t; @@ -492,11 +498,6 @@ void get_editor_controller(NSContainer*); void init_nsevents(NSContainer*); nsresult get_nsinterface(nsISupports*,REFIID,void**); -typedef enum { - EVENTID_LOAD, - EVENTID_LAST -} eventid_t; - void check_event_attr(HTMLDocument*,nsIDOMElement*); void release_event_target(event_target_t*); void fire_event(HTMLDocument*,eventid_t,nsIDOMNode*);