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
37c8166b
Commit
37c8166b
authored
Aug 14, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieframe: Added support for DownloadBegin and DownloadComplete events.
parent
dfb79624
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
dochost.c
dlls/ieframe/dochost.c
+5
-2
ieframe.h
dlls/ieframe/ieframe.h
+1
-0
navigate.c
dlls/ieframe/navigate.c
+8
-0
webbrowser.c
dlls/ieframe/tests/webbrowser.c
+1
-1
No files found.
dlls/ieframe/dochost.c
View file @
37c8166b
...
...
@@ -646,8 +646,11 @@ static HRESULT WINAPI ClOleCommandTarget_Exec(IOleCommandTarget *iface,
if
(
This
->
olecmd
)
return
IOleCommandTarget_Exec
(
This
->
olecmd
,
pguidCmdGroup
,
nCmdID
,
nCmdexecopt
,
pvaIn
,
pvaOut
);
FIXME
(
"Default action not implemented.
\n
"
);
return
E_NOTIMPL
;
if
(
!
pvaIn
||
V_VT
(
pvaIn
)
!=
VT_I4
)
return
E_INVALIDARG
;
notify_download_state
(
This
,
V_I4
(
pvaIn
));
return
S_OK
;
default:
FIXME
(
"Unimplemented cmdid %d
\n
"
,
nCmdID
);
return
E_NOTIMPL
;
...
...
dlls/ieframe/ieframe.h
View file @
37c8166b
...
...
@@ -277,6 +277,7 @@ void set_doc_state(DocHost*,READYSTATE) DECLSPEC_HIDDEN;
void
deactivate_document
(
DocHost
*
)
DECLSPEC_HIDDEN
;
void
create_doc_view_hwnd
(
DocHost
*
)
DECLSPEC_HIDDEN
;
void
on_commandstate_change
(
DocHost
*
,
LONG
,
VARIANT_BOOL
)
DECLSPEC_HIDDEN
;
void
notify_download_state
(
DocHost
*
,
BOOL
)
DECLSPEC_HIDDEN
;
#define WM_DOCHOSTTASK (WM_USER+0x300)
void
push_dochost_task
(
DocHost
*
,
task_header_t
*
,
task_proc_t
,
task_destr_t
,
BOOL
)
DECLSPEC_HIDDEN
;
...
...
dlls/ieframe/navigate.c
View file @
37c8166b
...
...
@@ -146,6 +146,13 @@ HRESULT set_dochost_url(DocHost *This, const WCHAR *url)
return
S_OK
;
}
void
notify_download_state
(
DocHost
*
dochost
,
BOOL
is_downloading
)
{
DISPPARAMS
dwl_dp
=
{
NULL
};
TRACE
(
"(%x)
\n
"
,
is_downloading
);
call_sink
(
dochost
->
cps
.
wbe2
,
is_downloading
?
DISPID_DOWNLOADBEGIN
:
DISPID_DOWNLOADCOMPLETE
,
&
dwl_dp
);
}
static
inline
BindStatusCallback
*
impl_from_IBindStatusCallback
(
IBindStatusCallback
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
BindStatusCallback
,
IBindStatusCallback_iface
);
...
...
@@ -896,6 +903,7 @@ static HRESULT navigate_bsc(DocHost *This, BindStatusCallback *bsc, IMoniker *mo
return
S_OK
;
}
notify_download_state
(
This
,
TRUE
);
on_commandstate_change
(
This
,
CSC_NAVIGATEBACK
,
VARIANT_FALSE
);
on_commandstate_change
(
This
,
CSC_NAVIGATEFORWARD
,
VARIANT_FALSE
);
...
...
dlls/ieframe/tests/webbrowser.c
View file @
37c8166b
...
...
@@ -2718,7 +2718,7 @@ static void test_Navigate2(IWebBrowser2 *webbrowser, const char *nav_url)
CHECK_CALLED
(
Invoke_AMBIENT_USERMODE
);
todo_wine
CHECK_CALLED
(
Invoke_PROPERTYCHANGE
);
CHECK_CALLED
(
Invoke_BEFORENAVIGATE2
);
todo_wine
CHECK_CALLED
(
Invoke_DOWNLOADBEGIN
);
CHECK_CALLED
(
Invoke_DOWNLOADBEGIN
);
if
(
use_container_olecmd
)
todo_wine
CHECK_CALLED
(
Exec_SETDOWNLOADSTATE_1
);
CHECK_CALLED
(
EnableModeless_FALSE
);
CHECK_CALLED
(
Invoke_STATUSTEXTCHANGE
);
...
...
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