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
8b6a3f55
Commit
8b6a3f55
authored
Apr 22, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Introduce timer_type enum.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4f358c40
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
htmlwindow.c
dlls/mshtml/htmlwindow.c
+4
-4
mshtml_private.h
dlls/mshtml/mshtml_private.h
+6
-1
task.c
dlls/mshtml/task.c
+4
-2
No files found.
dlls/mshtml/htmlwindow.c
View file @
8b6a3f55
...
...
@@ -1734,7 +1734,7 @@ static HRESULT WINAPI HTMLWindow3_detachEvent(IHTMLWindow3 *iface, BSTR event, I
}
static
HRESULT
window_set_timer
(
HTMLInnerWindow
*
This
,
VARIANT
*
expr
,
LONG
msec
,
VARIANT
*
language
,
BOOL
interval
,
LONG
*
timer_id
)
enum
timer_type
timer_type
,
LONG
*
timer_id
)
{
IDispatch
*
disp
=
NULL
;
HRESULT
hres
;
...
...
@@ -1757,7 +1757,7 @@ static HRESULT window_set_timer(HTMLInnerWindow *This, VARIANT *expr, LONG msec,
if
(
!
disp
)
return
E_FAIL
;
hres
=
set_task_timer
(
This
,
msec
,
interval
,
disp
,
timer_id
);
hres
=
set_task_timer
(
This
,
msec
,
timer_type
,
disp
,
timer_id
);
IDispatch_Release
(
disp
);
return
hres
;
...
...
@@ -1770,7 +1770,7 @@ static HRESULT WINAPI HTMLWindow3_setTimeout(IHTMLWindow3 *iface, VARIANT *expre
TRACE
(
"(%p)->(%s %d %s %p)
\n
"
,
This
,
debugstr_variant
(
expression
),
msec
,
debugstr_variant
(
language
),
timerID
);
return
window_set_timer
(
This
->
inner_window
,
expression
,
msec
,
language
,
FALSE
,
timerID
);
return
window_set_timer
(
This
->
inner_window
,
expression
,
msec
,
language
,
TIMER_TIMEOUT
,
timerID
);
}
static
HRESULT
WINAPI
HTMLWindow3_setInterval
(
IHTMLWindow3
*
iface
,
VARIANT
*
expression
,
LONG
msec
,
...
...
@@ -1780,7 +1780,7 @@ static HRESULT WINAPI HTMLWindow3_setInterval(IHTMLWindow3 *iface, VARIANT *expr
TRACE
(
"(%p)->(%p %d %p %p)
\n
"
,
This
,
expression
,
msec
,
language
,
timerID
);
return
window_set_timer
(
This
->
inner_window
,
expression
,
msec
,
language
,
T
RUE
,
timerID
);
return
window_set_timer
(
This
->
inner_window
,
expression
,
msec
,
language
,
T
IMER_INTERVAL
,
timerID
);
}
static
HRESULT
WINAPI
HTMLWindow3_print
(
IHTMLWindow3
*
iface
)
...
...
dlls/mshtml/mshtml_private.h
View file @
8b6a3f55
...
...
@@ -1213,7 +1213,12 @@ LONG get_task_target_magic(void) DECLSPEC_HIDDEN;
HRESULT
push_task
(
task_t
*
,
task_proc_t
,
task_proc_t
,
LONG
)
DECLSPEC_HIDDEN
;
void
remove_target_tasks
(
LONG
)
DECLSPEC_HIDDEN
;
HRESULT
set_task_timer
(
HTMLInnerWindow
*
,
LONG
,
BOOL
,
IDispatch
*
,
LONG
*
)
DECLSPEC_HIDDEN
;
enum
timer_type
{
TIMER_TIMEOUT
,
TIMER_INTERVAL
,
};
HRESULT
set_task_timer
(
HTMLInnerWindow
*
,
LONG
,
enum
timer_type
,
IDispatch
*
,
LONG
*
)
DECLSPEC_HIDDEN
;
HRESULT
clear_task_timer
(
HTMLInnerWindow
*
,
DWORD
)
DECLSPEC_HIDDEN
;
BOOL
parse_compat_version
(
const
WCHAR
*
,
compat_mode_t
*
)
DECLSPEC_HIDDEN
;
...
...
dlls/mshtml/task.c
View file @
8b6a3f55
...
...
@@ -41,6 +41,7 @@ typedef struct {
DWORD
id
;
DWORD
time
;
DWORD
interval
;
enum
timer_type
type
;
IDispatch
*
disp
;
struct
list
entry
;
...
...
@@ -162,7 +163,7 @@ static BOOL queue_timer(thread_data_t *thread_data, task_timer_t *timer)
return
FALSE
;
}
HRESULT
set_task_timer
(
HTMLInnerWindow
*
window
,
LONG
msec
,
BOOL
interval
,
IDispatch
*
disp
,
LONG
*
id
)
HRESULT
set_task_timer
(
HTMLInnerWindow
*
window
,
LONG
msec
,
enum
timer_type
timer_type
,
IDispatch
*
disp
,
LONG
*
id
)
{
thread_data_t
*
thread_data
;
task_timer_t
*
timer
;
...
...
@@ -184,7 +185,8 @@ HRESULT set_task_timer(HTMLInnerWindow *window, LONG msec, BOOL interval, IDispa
timer
->
id
=
id_cnt
++
;
timer
->
window
=
window
;
timer
->
time
=
tc
+
msec
;
timer
->
interval
=
interval
?
msec
:
0
;
timer
->
interval
=
timer_type
==
TIMER_INTERVAL
?
msec
:
0
;
timer
->
type
=
timer_type
;
list_init
(
&
timer
->
entry
);
IDispatch_AddRef
(
disp
);
...
...
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