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
7d2bba46
Commit
7d2bba46
authored
May 26, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
May 26, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLWindow2::onunload property implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8abd3763
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
5 deletions
+15
-5
htmlevent.c
dlls/mshtml/htmlevent.c
+6
-1
htmlevent.h
dlls/mshtml/htmlevent.h
+1
-0
htmlwindow.c
dlls/mshtml/htmlwindow.c
+8
-4
No files found.
dlls/mshtml/htmlevent.c
View file @
7d2bba46
...
...
@@ -141,6 +141,9 @@ static const WCHAR onselectstartW[] = {'o','n','s','e','l','e','c','t','s','t','
static
const
WCHAR
submitW
[]
=
{
's'
,
'u'
,
'b'
,
'm'
,
'i'
,
't'
,
0
};
static
const
WCHAR
onsubmitW
[]
=
{
'o'
,
'n'
,
's'
,
'u'
,
'b'
,
'm'
,
'i'
,
't'
,
0
};
static
const
WCHAR
unloadW
[]
=
{
'u'
,
'n'
,
'l'
,
'o'
,
'a'
,
'd'
,
0
};
static
const
WCHAR
onunloadW
[]
=
{
'o'
,
'n'
,
'u'
,
'n'
,
'l'
,
'o'
,
'a'
,
'd'
,
0
};
static
const
WCHAR
HTMLEventsW
[]
=
{
'H'
,
'T'
,
'M'
,
'L'
,
'E'
,
'v'
,
'e'
,
'n'
,
't'
,
's'
,
0
};
static
const
WCHAR
KeyboardEventW
[]
=
{
'K'
,
'e'
,
'y'
,
'b'
,
'o'
,
'a'
,
'r'
,
'd'
,
'E'
,
'v'
,
'e'
,
'n'
,
't'
,
0
};
static
const
WCHAR
MouseEventW
[]
=
{
'M'
,
'o'
,
'u'
,
's'
,
'e'
,
'E'
,
'v'
,
'e'
,
'n'
,
't'
,
0
};
...
...
@@ -239,7 +242,9 @@ static const event_info_t event_info[] = {
{
selectstartW
,
onselectstartW
,
EVENTT_MOUSE
,
DISPID_EVMETH_ONSELECTSTART
,
EVENT_CANCELABLE
},
{
submitW
,
onsubmitW
,
EVENTT_HTML
,
DISPID_EVMETH_ONSUBMIT
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
|
EVENT_CANCELABLE
|
EVENT_HASDEFAULTHANDLERS
}
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
|
EVENT_CANCELABLE
|
EVENT_HASDEFAULTHANDLERS
},
{
unloadW
,
onunloadW
,
EVENTT_HTML
,
DISPID_EVMETH_ONUNLOAD
,
EVENT_FIXME
}
};
eventid_t
str_to_eid
(
LPCWSTR
str
)
...
...
dlls/mshtml/htmlevent.h
View file @
7d2bba46
...
...
@@ -49,6 +49,7 @@ typedef enum {
EVENTID_SCROLL
,
EVENTID_SELECTSTART
,
EVENTID_SUBMIT
,
EVENTID_UNLOAD
,
EVENTID_LAST
}
eventid_t
;
...
...
dlls/mshtml/htmlwindow.c
View file @
7d2bba46
...
...
@@ -1128,15 +1128,19 @@ static HRESULT WINAPI HTMLWindow2_get_onbeforeunload(IHTMLWindow2 *iface, VARIAN
static
HRESULT
WINAPI
HTMLWindow2_put_onunload
(
IHTMLWindow2
*
iface
,
VARIANT
v
)
{
HTMLWindow
*
This
=
impl_from_IHTMLWindow2
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
set_window_event
(
This
,
EVENTID_UNLOAD
,
&
v
);
}
static
HRESULT
WINAPI
HTMLWindow2_get_onunload
(
IHTMLWindow2
*
iface
,
VARIANT
*
p
)
{
HTMLWindow
*
This
=
impl_from_IHTMLWindow2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_window_event
(
This
,
EVENTID_UNLOAD
,
p
);
}
static
HRESULT
WINAPI
HTMLWindow2_put_onhelp
(
IHTMLWindow2
*
iface
,
VARIANT
v
)
...
...
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