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
145d53e2
Commit
145d53e2
authored
Sep 06, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLEventObj::get_type implementation.
parent
a6ee270f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
htmlevent.c
dlls/mshtml/htmlevent.c
+9
-4
No files found.
dlls/mshtml/htmlevent.c
View file @
145d53e2
...
...
@@ -128,6 +128,7 @@ typedef struct {
LONG
ref
;
HTMLDOMNode
*
target
;
const
event_info_t
*
type
;
}
HTMLEventObj
;
#define HTMLEVENTOBJ(x) ((IHTMLEventObj*) &(x)->lpIHTMLEventObjVtbl)
...
...
@@ -315,8 +316,11 @@ static HRESULT WINAPI HTMLEventObj_get_button(IHTMLEventObj *iface, LONG *p)
static
HRESULT
WINAPI
HTMLEventObj_get_type
(
IHTMLEventObj
*
iface
,
BSTR
*
p
)
{
HTMLEventObj
*
This
=
HTMLEVENTOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
*
p
=
SysAllocString
(
This
->
type
->
name
);
return
*
p
?
S_OK
:
E_OUTOFMEMORY
;
}
static
HRESULT
WINAPI
HTMLEventObj_get_qualifier
(
IHTMLEventObj
*
iface
,
BSTR
*
p
)
...
...
@@ -445,13 +449,14 @@ static dispex_static_data_t HTMLEventObj_dispex = {
HTMLEventObj_iface_tids
};
static
IHTMLEventObj
*
create_event
(
HTMLDOMNode
*
target
)
static
IHTMLEventObj
*
create_event
(
HTMLDOMNode
*
target
,
eventid_t
eid
)
{
HTMLEventObj
*
ret
;
ret
=
heap_alloc
(
sizeof
(
*
ret
));
ret
->
lpIHTMLEventObjVtbl
=
&
HTMLEventObjVtbl
;
ret
->
ref
=
1
;
ret
->
type
=
event_info
+
eid
;
ret
->
target
=
target
;
IHTMLDOMNode_AddRef
(
HTMLDOMNODE
(
target
));
...
...
@@ -499,7 +504,7 @@ void fire_event(HTMLDocument *doc, eventid_t eid, nsIDOMNode *target)
}
prev_event
=
doc
->
window
->
event
;
event_obj
=
doc
->
window
->
event
=
create_event
(
get_node
(
doc
,
target
,
TRUE
));
event_obj
=
doc
->
window
->
event
=
create_event
(
get_node
(
doc
,
target
,
TRUE
)
,
eid
);
nsnode
=
target
;
nsIDOMNode_AddRef
(
nsnode
);
...
...
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