Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
70bb5b07
Commit
70bb5b07
authored
Oct 09, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IDispatchEx support to HTMLEventObj.
parent
1a3e1de2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
dispex.c
dlls/mshtml/dispex.c
+2
-0
htmlevent.c
dlls/mshtml/htmlevent.c
+17
-3
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
No files found.
dlls/mshtml/dispex.c
View file @
70bb5b07
...
...
@@ -65,6 +65,7 @@ static struct list dispex_data_list = LIST_INIT(dispex_data_list);
static
REFIID
tid_ids
[]
=
{
&
IID_NULL
,
&
DIID_DispCEventObj
,
&
DIID_DispDOMChildrenCollection
,
&
DIID_DispHTMLBody
,
&
DIID_DispHTMLCommentElement
,
...
...
@@ -100,6 +101,7 @@ static REFIID tid_ids[] = {
&
IID_IHTMLElement3
,
&
IID_IHTMLElement4
,
&
IID_IHTMLElementCollection
,
&
IID_IHTMLEventObj
,
&
IID_IHTMLFrameBase2
,
&
IID_IHTMLGenericElement
,
&
IID_IHTMLImgElement
,
...
...
dlls/mshtml/htmlevent.c
View file @
70bb5b07
...
...
@@ -76,6 +76,7 @@ eventid_t str_to_eid(LPCWSTR str)
}
typedef
struct
{
DispatchEx
dispex
;
const
IHTMLEventObjVtbl
*
lpIHTMLEventObjVtbl
;
LONG
ref
;
}
HTMLEventObj
;
...
...
@@ -93,12 +94,11 @@ static HRESULT WINAPI HTMLEventObj_QueryInterface(IHTMLEventObj *iface, REFIID r
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
TRACE
(
"(%p)->(IID_IUnknown %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLEVENTOBJ
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatch %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLEVENTOBJ
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLEventObj
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLEventObj %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLEVENTOBJ
(
This
);
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
if
(
*
ppv
)
{
...
...
@@ -380,6 +380,18 @@ static const IHTMLEventObjVtbl HTMLEventObjVtbl = {
HTMLEventObj_get_srcFilter
};
static
const
tid_t
HTMLEventObj_iface_tids
[]
=
{
IHTMLEventObj_tid
,
0
};
static
dispex_static_data_t
HTMLEventObj_dispex
=
{
NULL
,
DispCEventObj_tid
,
NULL
,
HTMLEventObj_iface_tids
};
static
IHTMLEventObj
*
create_event
(
void
)
{
HTMLEventObj
*
ret
;
...
...
@@ -388,6 +400,8 @@ static IHTMLEventObj *create_event(void)
ret
->
lpIHTMLEventObjVtbl
=
&
HTMLEventObjVtbl
;
ret
->
ref
=
1
;
init_dispex
(
&
ret
->
dispex
,
(
IUnknown
*
)
HTMLEVENTOBJ
(
ret
),
&
HTMLEventObj_dispex
);
return
HTMLEVENTOBJ
(
ret
);
}
...
...
dlls/mshtml/mshtml_private.h
View file @
70bb5b07
...
...
@@ -61,6 +61,7 @@ typedef struct event_target_t event_target_t;
/* NOTE: make sure to keep in sync with dispex.c */
typedef
enum
{
NULL_tid
,
DispCEventObj_tid
,
DispDOMChildrenCollection_tid
,
DispHTMLBody_tid
,
DispHTMLCommentElement_tid
,
...
...
@@ -96,6 +97,7 @@ typedef enum {
IHTMLElement3_tid
,
IHTMLElement4_tid
,
IHTMLElementCollection_tid
,
IHTMLEventObj_tid
,
IHTMLFrameBase2_tid
,
IHTMLGenericElement_tid
,
IHTMLImgElement_tid
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment