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
77cdf22f
Commit
77cdf22f
authored
Apr 10, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLElement2::blur implementation.
parent
1c277a26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
2 deletions
+34
-2
htmlelem2.c
dlls/mshtml/htmlelem2.c
+11
-2
events.c
dlls/mshtml/tests/events.c
+23
-0
No files found.
dlls/mshtml/htmlelem2.c
View file @
77cdf22f
...
...
@@ -776,8 +776,17 @@ static HRESULT WINAPI HTMLElement2_get_onresize(IHTMLElement2 *iface, VARIANT *p
static
HRESULT
WINAPI
HTMLElement2_blur
(
IHTMLElement2
*
iface
)
{
HTMLElement
*
This
=
impl_from_IHTMLElement2
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
nsresult
nsres
;
TRACE
(
"(%p)
\n
"
,
This
);
nsres
=
nsIDOMHTMLElement_Blur
(
This
->
nselem
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Blur failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLElement2_addFilter
(
IHTMLElement2
*
iface
,
IUnknown
*
pUnk
)
...
...
dlls/mshtml/tests/events.c
View file @
77cdf22f
...
...
@@ -74,6 +74,7 @@ DEFINE_EXPECT(iframedoc_onreadystatechange);
DEFINE_EXPECT
(
img_onload
);
DEFINE_EXPECT
(
img_onerror
);
DEFINE_EXPECT
(
input_onfocus
);
DEFINE_EXPECT
(
input_onblur
);
DEFINE_EXPECT
(
form_onsubmit
);
DEFINE_EXPECT
(
form_onclick
);
DEFINE_EXPECT
(
submit_onclick
);
...
...
@@ -950,6 +951,17 @@ static HRESULT WINAPI input_onfocus(IDispatchEx *iface, DISPID id, LCID lcid, WO
EVENT_HANDLER_FUNC_OBJ
(
input_onfocus
);
static
HRESULT
WINAPI
input_onblur
(
IDispatchEx
*
iface
,
DISPID
id
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pdp
,
VARIANT
*
pvarRes
,
EXCEPINFO
*
pei
,
IServiceProvider
*
pspCaller
)
{
CHECK_EXPECT
(
input_onblur
);
test_event_args
(
&
DIID_DispHTMLInputElement
,
id
,
wFlags
,
pdp
,
pvarRes
,
pei
,
pspCaller
);
test_event_src
(
"INPUT"
);
return
S_OK
;
}
EVENT_HANDLER_FUNC_OBJ
(
input_onblur
);
static
HRESULT
WINAPI
form_onsubmit
(
IDispatchEx
*
iface
,
DISPID
id
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pdp
,
VARIANT
*
pvarRes
,
EXCEPINFO
*
pei
,
IServiceProvider
*
pspCaller
)
{
...
...
@@ -1768,6 +1780,17 @@ static void test_focus(IHTMLDocument2 *doc)
CHECK_CALLED
(
input_onfocus
);
ok
(
hres
==
S_OK
,
"focus failed: %08x
\n
"
,
hres
);
V_VT
(
&
v
)
=
VT_DISPATCH
;
V_DISPATCH
(
&
v
)
=
(
IDispatch
*
)
&
input_onblur_obj
;
hres
=
IHTMLElement2_put_onblur
(
elem2
,
v
);
ok
(
hres
==
S_OK
,
"put_onblur failed: %08x
\n
"
,
hres
);
SET_EXPECT
(
input_onblur
);
hres
=
IHTMLElement2_blur
(
elem2
);
pump_msgs
(
NULL
);
CHECK_CALLED
(
input_onblur
);
ok
(
hres
==
S_OK
,
"blur failed: %08x
\n
"
,
hres
);
if
(
!
winetest_interactive
)
ShowWindow
(
container_hwnd
,
SW_HIDE
);
...
...
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