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
d6108c6c
Commit
d6108c6c
authored
Nov 02, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added beginning of set_progress task implementation.
parent
0cd636c3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
1 deletion
+52
-1
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-1
persist.c
dlls/mshtml/persist.c
+10
-0
task.c
dlls/mshtml/task.c
+40
-0
No files found.
dlls/mshtml/mshtml_private.h
View file @
d6108c6c
...
...
@@ -353,7 +353,8 @@ typedef struct task_t {
enum
{
TASK_SETDOWNLOADSTATE
,
TASK_PARSECOMPLETE
TASK_PARSECOMPLETE
,
TASK_SETPROGRESS
}
task_id
;
struct
task_t
*
next
;
...
...
dlls/mshtml/persist.c
View file @
d6108c6c
...
...
@@ -243,6 +243,16 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
bscallback
=
create_bscallback
(
pimkName
);
if
(
This
->
frame
)
{
task
=
mshtml_alloc
(
sizeof
(
task_t
));
task
->
doc
=
This
;
task
->
task_id
=
TASK_SETPROGRESS
;
task
->
next
=
NULL
;
push_task
(
task
);
}
task
=
mshtml_alloc
(
sizeof
(
task_t
));
task
->
doc
=
This
;
...
...
dlls/mshtml/task.c
View file @
d6108c6c
...
...
@@ -179,6 +179,44 @@ static void set_parsecomplete(HTMLDocument *doc)
}
}
static
void
set_progress
(
HTMLDocument
*
doc
)
{
IOleCommandTarget
*
olecmd
=
NULL
;
HRESULT
hres
;
TRACE
(
"(%p)
\n
"
,
doc
);
if
(
doc
->
client
)
IOleClientSite_QueryInterface
(
doc
->
client
,
&
IID_IOleCommandTarget
,
(
void
**
)
&
olecmd
);
if
(
olecmd
)
{
VARIANT
progress_max
,
progress
;
V_VT
(
&
progress_max
)
=
VT_I4
;
V_I4
(
&
progress_max
)
=
0
;
/* FIXME */
IOleCommandTarget_Exec
(
olecmd
,
NULL
,
OLECMDID_SETPROGRESSMAX
,
OLECMDEXECOPT_DONTPROMPTUSER
,
&
progress_max
,
NULL
);
V_VT
(
&
progress
)
=
VT_I4
;
V_I4
(
&
progress
)
=
0
;
/* FIXME */
IOleCommandTarget_Exec
(
olecmd
,
NULL
,
OLECMDID_SETPROGRESSPOS
,
OLECMDEXECOPT_DONTPROMPTUSER
,
&
progress
,
NULL
);
}
if
(
doc
->
usermode
==
EDITMODE
&&
doc
->
hostui
)
{
DOCHOSTUIINFO
hostinfo
;
memset
(
&
hostinfo
,
0
,
sizeof
(
DOCHOSTUIINFO
));
hostinfo
.
cbSize
=
sizeof
(
DOCHOSTUIINFO
);
hres
=
IDocHostUIHandler_GetHostInfo
(
doc
->
hostui
,
&
hostinfo
);
if
(
SUCCEEDED
(
hres
))
/* FIXME: use hostinfo */
TRACE
(
"hostinfo = {%u %08x %08x %s %s}
\n
"
,
hostinfo
.
cbSize
,
hostinfo
.
dwFlags
,
hostinfo
.
dwDoubleClick
,
debugstr_w
(
hostinfo
.
pchHostCss
),
debugstr_w
(
hostinfo
.
pchHostNS
));
}
}
static
void
process_task
(
task_t
*
task
)
{
switch
(
task
->
task_id
)
{
...
...
@@ -186,6 +224,8 @@ static void process_task(task_t *task)
return
set_downloading
(
task
->
doc
);
case
TASK_PARSECOMPLETE
:
return
set_parsecomplete
(
task
->
doc
);
case
TASK_SETPROGRESS
:
return
set_progress
(
task
->
doc
);
default:
ERR
(
"Wrong task_id %d
\n
"
,
task
->
task_id
);
}
...
...
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