Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fffb717b
Commit
fffb717b
authored
Sep 13, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLDocument4::createEventObject implementation.
parent
74453fb0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
3 deletions
+34
-3
htmldoc3.c
dlls/mshtml/htmldoc3.c
+8
-1
htmlevent.c
dlls/mshtml/htmlevent.c
+25
-2
htmlevent.h
dlls/mshtml/htmlevent.h
+1
-0
No files found.
dlls/mshtml/htmldoc3.c
View file @
fffb717b
...
...
@@ -762,8 +762,15 @@ static HRESULT WINAPI HTMLDocument4_createEventObject(IHTMLDocument4 *iface,
VARIANT
*
pvarEventObject
,
IHTMLEventObj
**
ppEventObj
)
{
HTMLDocument
*
This
=
impl_from_IHTMLDocument4
(
iface
);
FIXME
(
"(%p)->(%p %p)
\n
"
,
This
,
pvarEventObject
,
ppEventObj
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_variant
(
pvarEventObject
),
ppEventObj
);
if
(
pvarEventObject
&&
V_VT
(
pvarEventObject
)
!=
VT_ERROR
&&
V_VT
(
pvarEventObject
)
!=
VT_EMPTY
)
{
FIXME
(
"unsupported pvarEventObject %s
\n
"
,
debugstr_variant
(
pvarEventObject
));
return
E_NOTIMPL
;
}
return
create_event_obj
(
ppEventObj
);
}
static
HRESULT
WINAPI
HTMLDocument4_fireEvent
(
IHTMLDocument4
*
iface
,
BSTR
bstrEventName
,
...
...
dlls/mshtml/htmlevent.c
View file @
fffb717b
...
...
@@ -364,6 +364,11 @@ static HRESULT WINAPI HTMLEventObj_get_srcElement(IHTMLEventObj *iface, IHTMLEle
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
!
This
->
target
)
{
*
p
=
NULL
;
return
S_OK
;
}
return
IHTMLDOMNode_QueryInterface
(
&
This
->
target
->
IHTMLDOMNode_iface
,
&
IID_IHTMLElement
,
(
void
**
)
p
);
}
...
...
@@ -581,6 +586,11 @@ static HRESULT WINAPI HTMLEventObj_get_type(IHTMLEventObj *iface, BSTR *p)
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
!
This
->
type
)
{
*
p
=
NULL
;
return
S_OK
;
}
*
p
=
SysAllocString
(
This
->
type
->
name
);
return
*
p
?
S_OK
:
E_OUTOFMEMORY
;
}
...
...
@@ -800,12 +810,12 @@ static HTMLEventObj *create_event(HTMLDOMNode *target, eventid_t eid, nsIDOMEven
ret
->
IHTMLEventObj_iface
.
lpVtbl
=
&
HTMLEventObjVtbl
;
ret
->
ref
=
1
;
ret
->
type
=
e
vent_info
+
eid
;
ret
->
type
=
e
id
!=
EVENTID_LAST
?
event_info
+
eid
:
NULL
;
ret
->
nsevent
=
nsevent
;
if
(
nsevent
)
{
nsIDOMEvent_AddRef
(
nsevent
);
}
else
if
(
event_types
[
event_info
[
eid
].
type
])
{
}
else
if
(
e
id
!=
EVENTID_LAST
&&
e
vent_types
[
event_info
[
eid
].
type
])
{
nsAString
type_str
;
nsresult
nsres
;
...
...
@@ -820,6 +830,7 @@ static HTMLEventObj *create_event(HTMLDOMNode *target, eventid_t eid, nsIDOMEven
}
ret
->
target
=
target
;
if
(
target
)
IHTMLDOMNode_AddRef
(
&
target
->
IHTMLDOMNode_iface
);
init_dispex
(
&
ret
->
dispex
,
(
IUnknown
*
)
&
ret
->
IHTMLEventObj_iface
,
&
HTMLEventObj_dispex
);
...
...
@@ -827,6 +838,18 @@ static HTMLEventObj *create_event(HTMLDOMNode *target, eventid_t eid, nsIDOMEven
return
ret
;
}
HRESULT
create_event_obj
(
IHTMLEventObj
**
ret
)
{
HTMLEventObj
*
event
;
event
=
create_event
(
NULL
,
EVENTID_LAST
,
NULL
);
if
(
!
event
)
return
E_OUTOFMEMORY
;
*
ret
=
&
event
->
IHTMLEventObj_iface
;
return
S_OK
;
}
static
HRESULT
call_disp_func
(
IDispatch
*
disp
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
)
{
IDispatchEx
*
dispex
;
...
...
dlls/mshtml/htmlevent.h
View file @
fffb717b
...
...
@@ -60,6 +60,7 @@ HRESULT call_fire_event(HTMLDOMNode*,eventid_t) DECLSPEC_HIDDEN;
void
update_cp_events
(
HTMLInnerWindow
*
,
event_target_t
**
,
cp_static_data_t
*
,
nsIDOMNode
*
)
DECLSPEC_HIDDEN
;
HRESULT
doc_init_events
(
HTMLDocumentNode
*
)
DECLSPEC_HIDDEN
;
void
detach_events
(
HTMLDocumentNode
*
doc
)
DECLSPEC_HIDDEN
;
HRESULT
create_event_obj
(
IHTMLEventObj
**
)
DECLSPEC_HIDDEN
;
void
init_nsevents
(
HTMLDocumentNode
*
)
DECLSPEC_HIDDEN
;
void
release_nsevents
(
HTMLDocumentNode
*
)
DECLSPEC_HIDDEN
;
...
...
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