equal
deleted
inserted
replaced
17 #ifndef __WIDGETEVENTHANDLER_H__ |
17 #ifndef __WIDGETEVENTHANDLER_H__ |
18 #define __WIDGETEVENTHANDLER_H__ |
18 #define __WIDGETEVENTHANDLER_H__ |
19 |
19 |
20 #include <e32base.h> |
20 #include <e32base.h> |
21 |
21 |
|
22 class MJSObjectProtector; |
|
23 |
22 namespace KJS { |
24 namespace KJS { |
23 |
25 |
24 |
26 |
25 class JSObject; |
27 class JSObject; |
26 class JSValue; |
28 class JSValue; |
27 class ExecState; |
29 class ExecState; |
28 |
30 |
29 class WidgetEventHandler : public CBase |
31 class WidgetEventHandler : public CBase |
30 { |
32 { |
31 public: |
33 public: |
32 WidgetEventHandler( JSValue* aValue, ExecState* aExecState ); |
34 WidgetEventHandler( JSValue* aValue, ExecState* aExecState, MJSObjectProtector* aProtector); |
33 virtual ~WidgetEventHandler(); |
35 virtual ~WidgetEventHandler(); |
34 |
36 |
35 public: |
37 public: |
36 void InvokeCall(const TInt& val = -1); |
38 void InvokeCall(const TInt& val = -1); |
37 void Delete(); |
39 void Delete(); |
38 |
40 |
39 private: |
41 private: |
40 JSValue* iEventHandler; |
42 JSValue* iEventHandler; |
41 |
43 |
42 ExecState* iGlobalExecState; |
44 ExecState* iGlobalExecState; |
|
45 |
|
46 MJSObjectProtector* iProtector; |
43 |
47 |
44 TBool iInUse; |
48 TBool iInUse; |
45 TBool iSelfDelete; |
49 TBool iSelfDelete; |
46 }; |
50 }; |
47 |
51 |