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
6e319087
Commit
6e319087
authored
Oct 13, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLElement::click implementation.
parent
946bd4ae
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
45 additions
and
2 deletions
+45
-2
htmlelem.c
dlls/mshtml/htmlelem.c
+4
-2
htmlevent.c
dlls/mshtml/htmlevent.c
+16
-0
htmlevent.h
dlls/mshtml/htmlevent.h
+1
-0
htmlinput.c
dlls/mshtml/htmlinput.c
+21
-0
htmlselect.c
dlls/mshtml/htmlselect.c
+1
-0
htmltextarea.c
dlls/mshtml/htmltextarea.c
+1
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
No files found.
dlls/mshtml/htmlelem.c
View file @
6e319087
...
...
@@ -1103,8 +1103,10 @@ static HRESULT WINAPI HTMLElement_get_isTextEdit(IHTMLElement *iface, VARIANT_BO
static
HRESULT
WINAPI
HTMLElement_click
(
IHTMLElement
*
iface
)
{
HTMLElement
*
This
=
HTMLELEM_THIS
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p)
\n
"
,
This
);
return
call_event
(
&
This
->
node
,
EVENTID_CLICK
);
}
static
HRESULT
WINAPI
HTMLElement_get_filters
(
IHTMLElement
*
iface
,
...
...
dlls/mshtml/htmlevent.c
View file @
6e319087
...
...
@@ -877,6 +877,22 @@ HRESULT dispatch_event(HTMLDOMNode *node, const WCHAR *event_name, VARIANT *even
return
S_OK
;
}
HRESULT
call_event
(
HTMLDOMNode
*
node
,
eventid_t
eid
)
{
HRESULT
hres
;
if
(
node
->
vtbl
->
call_event
)
{
BOOL
handled
=
FALSE
;
hres
=
node
->
vtbl
->
call_event
(
node
,
eid
,
&
handled
);
if
(
handled
)
return
hres
;
}
fire_event
(
node
->
doc
,
eid
,
node
->
nsnode
,
NULL
);
return
S_OK
;
}
static
inline
event_target_t
*
get_event_target
(
event_target_t
**
event_target_ptr
)
{
if
(
!*
event_target_ptr
)
...
...
dlls/mshtml/htmlevent.h
View file @
6e319087
...
...
@@ -46,6 +46,7 @@ HRESULT set_event_handler(event_target_t**,HTMLDocument*,eventid_t,VARIANT*);
HRESULT
get_event_handler
(
event_target_t
**
,
eventid_t
,
VARIANT
*
);
HRESULT
attach_event
(
event_target_t
**
,
HTMLDocument
*
,
BSTR
,
IDispatch
*
,
VARIANT_BOOL
*
);
HRESULT
dispatch_event
(
HTMLDOMNode
*
,
const
WCHAR
*
,
VARIANT
*
,
VARIANT_BOOL
*
);
HRESULT
call_event
(
HTMLDOMNode
*
,
eventid_t
);
static
inline
event_target_t
**
get_node_event_target
(
HTMLDOMNode
*
node
)
{
...
...
dlls/mshtml/htmlinput.c
View file @
6e319087
...
...
@@ -28,6 +28,7 @@
#include "wine/debug.h"
#include "mshtml_private.h"
#include "htmlevent.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mshtml
);
...
...
@@ -1129,6 +1130,25 @@ static void HTMLInputElement_destructor(HTMLDOMNode *iface)
HTMLElement_destructor
(
&
This
->
element
.
node
);
}
static
HRESULT
HTMLInputElementImpl_call_event
(
HTMLDOMNode
*
iface
,
eventid_t
eid
,
BOOL
*
handled
)
{
HTMLInputElement
*
This
=
HTMLINPUT_NODE_THIS
(
iface
);
if
(
eid
==
EVENTID_CLICK
)
{
nsresult
nsres
;
*
handled
=
TRUE
;
nsres
=
nsIDOMHTMLInputElement_Click
(
This
->
nsinput
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Click failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
}
return
S_OK
;
}
static
HRESULT
HTMLInputElementImpl_put_disabled
(
HTMLDOMNode
*
iface
,
VARIANT_BOOL
v
)
{
HTMLInputElement
*
This
=
HTMLINPUT_NODE_THIS
(
iface
);
...
...
@@ -1147,6 +1167,7 @@ static const NodeImplVtbl HTMLInputElementImplVtbl = {
HTMLInputElement_QI
,
HTMLInputElement_destructor
,
NULL
,
HTMLInputElementImpl_call_event
,
HTMLInputElementImpl_put_disabled
,
HTMLInputElementImpl_get_disabled
,
};
...
...
dlls/mshtml/htmlselect.c
View file @
6e319087
...
...
@@ -481,6 +481,7 @@ static const NodeImplVtbl HTMLSelectElementImplVtbl = {
HTMLSelectElement_QI
,
HTMLSelectElement_destructor
,
NULL
,
NULL
,
HTMLSelectElementImpl_put_disabled
,
HTMLSelectElementImpl_get_disabled
};
...
...
dlls/mshtml/htmltextarea.c
View file @
6e319087
...
...
@@ -406,6 +406,7 @@ static const NodeImplVtbl HTMLTextAreaElementImplVtbl = {
HTMLTextAreaElement_QI
,
HTMLTextAreaElement_destructor
,
NULL
,
NULL
,
HTMLTextAreaElementImpl_put_disabled
,
HTMLTextAreaElementImpl_get_disabled
};
...
...
dlls/mshtml/mshtml_private.h
View file @
6e319087
...
...
@@ -425,6 +425,7 @@ typedef struct {
HRESULT
(
*
qi
)(
HTMLDOMNode
*
,
REFIID
,
void
**
);
void
(
*
destructor
)(
HTMLDOMNode
*
);
event_target_t
**
(
*
get_event_target
)(
HTMLDOMNode
*
);
HRESULT
(
*
call_event
)(
HTMLDOMNode
*
,
DWORD
,
BOOL
*
);
HRESULT
(
*
put_disabled
)(
HTMLDOMNode
*
,
VARIANT_BOOL
);
HRESULT
(
*
get_disabled
)(
HTMLDOMNode
*
,
VARIANT_BOOL
*
);
}
NodeImplVtbl
;
...
...
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