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
8d3aa679
Commit
8d3aa679
authored
Jun 27, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLWindow2::clearTimeout implementation.
parent
74f29f10
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
htmlwindow.c
dlls/mshtml/htmlwindow.c
+4
-2
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
task.c
dlls/mshtml/task.c
+19
-0
No files found.
dlls/mshtml/htmlwindow.c
View file @
8d3aa679
...
...
@@ -197,8 +197,10 @@ static HRESULT WINAPI HTMLWindow2_setTimeout(IHTMLWindow2 *iface, BSTR expressio
static
HRESULT
WINAPI
HTMLWindow2_clearTimeout
(
IHTMLWindow2
*
iface
,
long
timerID
)
{
HTMLWindow
*
This
=
HTMLWINDOW2_THIS
(
iface
);
FIXME
(
"(%p)->(%ld)
\n
"
,
This
,
timerID
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%ld)
\n
"
,
This
,
timerID
);
return
clear_task_timer
(
This
->
doc
,
FALSE
,
timerID
);
}
static
HRESULT
WINAPI
HTMLWindow2_alert
(
IHTMLWindow2
*
iface
,
BSTR
message
)
...
...
dlls/mshtml/mshtml_private.h
View file @
8d3aa679
...
...
@@ -624,6 +624,7 @@ HWND get_thread_hwnd(void);
void
push_task
(
task_t
*
);
void
remove_doc_tasks
(
const
HTMLDocument
*
);
DWORD
set_task_timer
(
HTMLDocument
*
,
DWORD
,
BOOL
,
IDispatch
*
);
HRESULT
clear_task_timer
(
HTMLDocument
*
,
BOOL
,
DWORD
);
HRESULT
get_typeinfo
(
tid_t
,
ITypeInfo
**
);
void
release_typelib
(
void
);
...
...
dlls/mshtml/task.c
View file @
8d3aa679
...
...
@@ -169,6 +169,25 @@ DWORD set_task_timer(HTMLDocument *doc, DWORD msec, BOOL interval, IDispatch *di
return
timer
->
id
;
}
HRESULT
clear_task_timer
(
HTMLDocument
*
doc
,
BOOL
interval
,
DWORD
id
)
{
thread_data_t
*
thread_data
=
get_thread_data
(
FALSE
);
task_timer_t
*
iter
;
if
(
!
thread_data
)
return
S_OK
;
LIST_FOR_EACH_ENTRY
(
iter
,
&
thread_data
->
timer_list
,
task_timer_t
,
entry
)
{
if
(
iter
->
id
==
id
&&
iter
->
doc
==
doc
&&
(
iter
->
interval
==
0
)
==
!
interval
)
{
release_task_timer
(
thread_data
->
thread_hwnd
,
iter
);
return
S_OK
;
}
}
WARN
(
"timet not found
\n
"
);
return
S_OK
;
}
static
void
set_downloading
(
HTMLDocument
*
doc
)
{
IOleCommandTarget
*
olecmd
;
...
...
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