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
0e71100e
Commit
0e71100e
authored
Nov 25, 2022
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Nov 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement print events.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53927
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
5c64b505
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
htmlevent.c
dlls/mshtml/htmlevent.c
+4
-0
htmlevent.h
dlls/mshtml/htmlevent.h
+2
-0
htmlwindow.c
dlls/mshtml/htmlwindow.c
+8
-8
No files found.
dlls/mshtml/htmlevent.c
View file @
0e71100e
...
...
@@ -120,12 +120,16 @@ static const event_info_t event_info[] = {
EVENT_BUBBLES
|
EVENT_CANCELABLE
},
{
L"abort"
,
EVENT_TYPE_EVENT
,
DISPID_EVMETH_ONABORT
,
EVENT_BIND_TO_TARGET
},
{
L"afterprint"
,
EVENT_TYPE_EVENT
,
DISPID_EVMETH_ONAFTERPRINT
,
EVENT_DEFAULTLISTENER
},
{
L"animationend"
,
EVENT_TYPE_EVENT
,
DISPID_EVPROP_ONANIMATIONEND
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLES
},
{
L"animationstart"
,
EVENT_TYPE_EVENT
,
DISPID_EVPROP_ONANIMATIONSTART
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLES
},
{
L"beforeactivate"
,
EVENT_TYPE_EVENT
,
DISPID_EVMETH_ONBEFOREACTIVATE
,
EVENT_FIXME
|
EVENT_BUBBLES
|
EVENT_CANCELABLE
},
{
L"beforeprint"
,
EVENT_TYPE_EVENT
,
DISPID_EVMETH_ONBEFOREPRINT
,
EVENT_DEFAULTLISTENER
},
{
L"beforeunload"
,
EVENT_TYPE_EVENT
,
DISPID_EVMETH_ONBEFOREUNLOAD
,
EVENT_DEFAULTLISTENER
|
EVENT_CANCELABLE
},
{
L"blur"
,
EVENT_TYPE_FOCUS
,
DISPID_EVMETH_ONBLUR
,
...
...
dlls/mshtml/htmlevent.h
View file @
0e71100e
...
...
@@ -19,9 +19,11 @@
typedef
enum
{
EVENTID_DOMCONTENTLOADED
,
EVENTID_ABORT
,
EVENTID_AFTERPRINT
,
EVENTID_ANIMATIONEND
,
EVENTID_ANIMATIONSTART
,
EVENTID_BEFOREACTIVATE
,
EVENTID_BEFOREPRINT
,
EVENTID_BEFOREUNLOAD
,
EVENTID_BLUR
,
EVENTID_CHANGE
,
...
...
dlls/mshtml/htmlwindow.c
View file @
0e71100e
...
...
@@ -1806,29 +1806,29 @@ static HRESULT WINAPI HTMLWindow3_print(IHTMLWindow3 *iface)
static
HRESULT
WINAPI
HTMLWindow3_put_onbeforeprint
(
IHTMLWindow3
*
iface
,
VARIANT
v
)
{
HTMLWindow
*
This
=
impl_from_IHTMLWindow3
(
iface
);
FIXM
E
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
TRAC
E
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
set_window_event
(
This
,
EVENTID_BEFOREPRINT
,
&
v
)
;
}
static
HRESULT
WINAPI
HTMLWindow3_get_onbeforeprint
(
IHTMLWindow3
*
iface
,
VARIANT
*
p
)
{
HTMLWindow
*
This
=
impl_from_IHTMLWindow3
(
iface
);
FIXM
E
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRAC
E
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_window_event
(
This
,
EVENTID_BEFOREPRINT
,
p
)
;
}
static
HRESULT
WINAPI
HTMLWindow3_put_onafterprint
(
IHTMLWindow3
*
iface
,
VARIANT
v
)
{
HTMLWindow
*
This
=
impl_from_IHTMLWindow3
(
iface
);
FIXM
E
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
TRAC
E
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
set_window_event
(
This
,
EVENTID_AFTERPRINT
,
&
v
)
;
}
static
HRESULT
WINAPI
HTMLWindow3_get_onafterprint
(
IHTMLWindow3
*
iface
,
VARIANT
*
p
)
{
HTMLWindow
*
This
=
impl_from_IHTMLWindow3
(
iface
);
FIXM
E
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRAC
E
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_window_event
(
This
,
EVENTID_AFTERPRINT
,
p
)
;
}
static
HRESULT
WINAPI
HTMLWindow3_get_clipboardData
(
IHTMLWindow3
*
iface
,
IHTMLDataTransfer
**
p
)
...
...
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