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
86116b16
Commit
86116b16
authored
Apr 04, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added support for focusout event and IHTMLElement4::onfocusout property.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a86a4e65
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
4 deletions
+22
-4
htmlelem.c
dlls/mshtml/htmlelem.c
+8
-4
htmlevent.c
dlls/mshtml/htmlevent.c
+9
-0
htmlevent.h
dlls/mshtml/htmlevent.h
+1
-0
nsevents.c
dlls/mshtml/nsevents.c
+4
-0
No files found.
dlls/mshtml/htmlelem.c
View file @
86116b16
...
...
@@ -3875,15 +3875,19 @@ static HRESULT WINAPI HTMLElement4_get_onfocusin(IHTMLElement4 *iface, VARIANT *
static
HRESULT
WINAPI
HTMLElement4_put_onfocusout
(
IHTMLElement4
*
iface
,
VARIANT
v
)
{
HTMLElement
*
This
=
impl_from_IHTMLElement4
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
set_node_event
(
&
This
->
node
,
EVENTID_FOCUSOUT
,
&
v
);
}
static
HRESULT
WINAPI
HTMLElement4_get_onfocusout
(
IHTMLElement4
*
iface
,
VARIANT
*
p
)
{
HTMLElement
*
This
=
impl_from_IHTMLElement4
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_node_event
(
&
This
->
node
,
EVENTID_FOCUSOUT
,
p
);
}
static
const
IHTMLElement4Vtbl
HTMLElement4Vtbl
=
{
...
...
dlls/mshtml/htmlevent.c
View file @
86116b16
...
...
@@ -84,6 +84,9 @@ static const WCHAR onfocusW[] = {'o','n','f','o','c','u','s',0};
static
const
WCHAR
focusinW
[]
=
{
'f'
,
'o'
,
'c'
,
'u'
,
's'
,
'i'
,
'n'
,
0
};
static
const
WCHAR
onfocusinW
[]
=
{
'o'
,
'n'
,
'f'
,
'o'
,
'c'
,
'u'
,
's'
,
'i'
,
'n'
,
0
};
static
const
WCHAR
focusoutW
[]
=
{
'f'
,
'o'
,
'c'
,
'u'
,
's'
,
'o'
,
'u'
,
't'
,
0
};
static
const
WCHAR
onfocusoutW
[]
=
{
'o'
,
'n'
,
'f'
,
'o'
,
'c'
,
'u'
,
's'
,
'o'
,
'u'
,
't'
,
0
};
static
const
WCHAR
helpW
[]
=
{
'h'
,
'e'
,
'l'
,
'p'
,
0
};
static
const
WCHAR
onhelpW
[]
=
{
'o'
,
'n'
,
'h'
,
'e'
,
'l'
,
'p'
,
0
};
...
...
@@ -195,6 +198,8 @@ static const event_info_t event_info[] = {
EVENT_DEFAULTLISTENER
},
{
focusinW
,
onfocusinW
,
EVENTT_HTML
,
DISPID_EVMETH_ONFOCUSIN
,
EVENT_BUBBLE
},
{
focusoutW
,
onfocusoutW
,
EVENTT_HTML
,
DISPID_EVMETH_ONFOCUSOUT
,
EVENT_BUBBLE
},
{
helpW
,
onhelpW
,
EVENTT_KEY
,
DISPID_EVMETH_ONHELP
,
EVENT_BUBBLE
|
EVENT_CANCELABLE
},
{
keydownW
,
onkeydownW
,
EVENTT_KEY
,
DISPID_EVMETH_ONKEYDOWN
,
...
...
@@ -1336,6 +1341,10 @@ HRESULT ensure_doc_nsevent_handler(HTMLDocumentNode *doc, eventid_t eid)
doc
->
event_vector
[
eid
]
=
TRUE
;
eid
=
EVENTID_FOCUS
;
break
;
case
EVENTID_FOCUSOUT
:
doc
->
event_vector
[
eid
]
=
TRUE
;
eid
=
EVENTID_BLUR
;
break
;
default:
break
;
}
...
...
dlls/mshtml/htmlevent.h
View file @
86116b16
...
...
@@ -30,6 +30,7 @@ typedef enum {
EVENTID_ERROR
,
EVENTID_FOCUS
,
EVENTID_FOCUSIN
,
EVENTID_FOCUSOUT
,
EVENTID_HELP
,
EVENTID_KEYDOWN
,
EVENTID_KEYPRESS
,
...
...
dlls/mshtml/nsevents.c
View file @
86116b16
...
...
@@ -343,6 +343,10 @@ static nsresult NSAPI handle_htmlevent(nsIDOMEventListener *iface, nsIDOMEvent *
if
(
doc
->
event_vector
[
EVENTID_FOCUSIN
])
fire_event
(
doc
,
EVENTID_FOCUSIN
,
TRUE
,
node
,
NULL
,
NULL
);
break
;
case
EVENTID_BLUR
:
if
(
doc
->
event_vector
[
EVENTID_FOCUSOUT
])
fire_event
(
doc
,
EVENTID_FOCUSOUT
,
TRUE
,
node
,
NULL
,
NULL
);
break
;
default:
break
;
}
...
...
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