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
41bdff62
Commit
41bdff62
authored
Jun 23, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLElement::put_onclick implementation.
parent
cf51da73
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
htmlelem.c
dlls/mshtml/htmlelem.c
+4
-2
htmlevent.c
dlls/mshtml/htmlevent.c
+13
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
No files found.
dlls/mshtml/htmlelem.c
View file @
41bdff62
...
...
@@ -443,8 +443,10 @@ static HRESULT WINAPI HTMLElement_get_onhelp(IHTMLElement *iface, VARIANT *p)
static
HRESULT
WINAPI
HTMLElement_put_onclick
(
IHTMLElement
*
iface
,
VARIANT
v
)
{
HTMLElement
*
This
=
HTMLELEM_THIS
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->()
\n
"
,
This
);
return
set_node_event
(
&
This
->
node
,
EVENTID_CLICK
,
&
v
);
}
static
HRESULT
WINAPI
HTMLElement_get_onclick
(
IHTMLElement
*
iface
,
VARIANT
*
p
)
...
...
dlls/mshtml/htmlevent.c
View file @
41bdff62
...
...
@@ -419,6 +419,19 @@ static HRESULT set_node_event_disp(HTMLDOMNode *node, eventid_t eid, IDispatch *
return
S_OK
;
}
HRESULT
set_node_event
(
HTMLDOMNode
*
node
,
eventid_t
eid
,
VARIANT
*
var
)
{
switch
(
V_VT
(
var
))
{
case
VT_DISPATCH
:
return
set_node_event_disp
(
node
,
eid
,
V_DISPATCH
(
var
));
default:
FIXME
(
"not supported vt=%d
\n
"
,
V_VT
(
var
));
}
return
E_NOTIMPL
;
}
void
check_event_attr
(
HTMLDocument
*
doc
,
nsIDOMElement
*
nselem
)
{
const
PRUnichar
*
attr_value
;
...
...
dlls/mshtml/mshtml_private.h
View file @
41bdff62
...
...
@@ -505,6 +505,7 @@ nsresult get_nsinterface(nsISupports*,REFIID,void**);
void
check_event_attr
(
HTMLDocument
*
,
nsIDOMElement
*
);
void
release_event_target
(
event_target_t
*
);
void
fire_event
(
HTMLDocument
*
,
eventid_t
,
nsIDOMNode
*
);
HRESULT
set_node_event
(
HTMLDOMNode
*
,
eventid_t
,
VARIANT
*
);
eventid_t
str_to_eid
(
LPCWSTR
);
void
set_document_bscallback
(
HTMLDocument
*
,
nsChannelBSC
*
);
...
...
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