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
cf6d34d8
Commit
cf6d34d8
authored
Feb 21, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Improved IDOMMouseEvent::offset[XY] stubs.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c586b759
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
htmlevent.c
dlls/mshtml/htmlevent.c
+18
-6
events.js
dlls/mshtml/tests/events.js
+2
-0
No files found.
dlls/mshtml/htmlevent.c
View file @
cf6d34d8
...
...
@@ -663,7 +663,10 @@ static HRESULT WINAPI HTMLEventObj_get_offsetX(IHTMLEventObj *iface, LONG *p)
{
HTMLEventObj
*
This
=
impl_from_IHTMLEventObj
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
This
->
event
&&
This
->
event
->
mouse_event
)
return
IDOMMouseEvent_get_offsetX
(
&
This
->
event
->
IDOMMouseEvent_iface
,
p
);
*
p
=
0
;
return
S_OK
;
...
...
@@ -673,7 +676,10 @@ static HRESULT WINAPI HTMLEventObj_get_offsetY(IHTMLEventObj *iface, LONG *p)
{
HTMLEventObj
*
This
=
impl_from_IHTMLEventObj
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
This
->
event
&&
This
->
event
->
mouse_event
)
return
IDOMMouseEvent_get_offsetY
(
&
This
->
event
->
IDOMMouseEvent_iface
,
p
);
*
p
=
0
;
return
S_OK
;
...
...
@@ -1598,15 +1604,21 @@ static HRESULT WINAPI DOMMouseEvent_get_y(IDOMMouseEvent *iface, LONG *p)
static
HRESULT
WINAPI
DOMMouseEvent_get_offsetX
(
IDOMMouseEvent
*
iface
,
LONG
*
p
)
{
DOMEvent
*
This
=
impl_from_IDOMMouseEvent
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
FIXME
(
"(%p)->(%p) returning 0
\n
"
,
This
,
p
);
*
p
=
0
;
return
S_OK
;
}
static
HRESULT
WINAPI
DOMMouseEvent_get_offsetY
(
IDOMMouseEvent
*
iface
,
LONG
*
p
)
{
DOMEvent
*
This
=
impl_from_IDOMMouseEvent
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
FIXME
(
"(%p)->(%p) returning 0
\n
"
,
This
,
p
);
*
p
=
0
;
return
S_OK
;
}
static
HRESULT
WINAPI
DOMMouseEvent_get_pageX
(
IDOMMouseEvent
*
iface
,
LONG
*
p
)
...
...
dlls/mshtml/tests/events.js
View file @
cf6d34d8
...
...
@@ -620,6 +620,8 @@ function test_mouse_event() {
ok
(
e
.
screenY
===
0
,
"screenY = "
+
e
.
screenY
);
ok
(
e
.
clientX
===
0
,
"clientX = "
+
e
.
clientX
);
ok
(
e
.
clientY
===
0
,
"clientY = "
+
e
.
clientY
);
ok
(
e
.
offsetX
===
0
,
"offsetX = "
+
e
.
offsetX
);
ok
(
e
.
offsetY
===
0
,
"offsetY = "
+
e
.
offsetY
);
ok
(
e
.
ctrlKey
===
false
,
"ctrlKey = "
+
e
.
ctrlKey
);
ok
(
e
.
altKey
===
false
,
"altKey = "
+
e
.
altKey
);
ok
(
e
.
shiftKey
===
false
,
"shiftKey = "
+
e
.
shiftKey
);
...
...
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