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
9c3c5704
Commit
9c3c5704
authored
Nov 12, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieframe: Added IWebBrowser2::Refresh implementation.
parent
d22a8bbd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
4 deletions
+35
-4
dochost.c
dlls/ieframe/dochost.c
+26
-0
ie.c
dlls/ieframe/ie.c
+4
-2
ieframe.h
dlls/ieframe/ieframe.h
+1
-0
webbrowser.c
dlls/ieframe/webbrowser.c
+4
-2
No files found.
dlls/ieframe/dochost.c
View file @
9c3c5704
...
@@ -453,6 +453,32 @@ void deactivate_document(DocHost *This)
...
@@ -453,6 +453,32 @@ void deactivate_document(DocHost *This)
This
->
document
=
NULL
;
This
->
document
=
NULL
;
}
}
HRESULT
refresh_document
(
DocHost
*
This
)
{
IOleCommandTarget
*
cmdtrg
;
VARIANT
vin
,
vout
;
HRESULT
hres
;
if
(
!
This
->
document
)
{
FIXME
(
"no document
\n
"
);
return
E_FAIL
;
}
hres
=
IUnknown_QueryInterface
(
This
->
document
,
&
IID_IOleCommandTarget
,
(
void
**
)
&
cmdtrg
);
if
(
FAILED
(
hres
))
return
hres
;
V_VT
(
&
vin
)
=
VT_EMPTY
;
V_VT
(
&
vout
)
=
VT_EMPTY
;
hres
=
IOleCommandTarget_Exec
(
cmdtrg
,
NULL
,
OLECMDID_REFRESH
,
OLECMDEXECOPT_PROMPTUSER
,
&
vin
,
&
vout
);
IOleCommandTarget_Release
(
cmdtrg
);
if
(
FAILED
(
hres
))
return
hres
;
VariantClear
(
&
vout
);
return
S_OK
;
}
void
release_dochost_client
(
DocHost
*
This
)
void
release_dochost_client
(
DocHost
*
This
)
{
{
if
(
This
->
hwnd
)
{
if
(
This
->
hwnd
)
{
...
...
dlls/ieframe/ie.c
View file @
9c3c5704
...
@@ -182,8 +182,10 @@ static HRESULT WINAPI InternetExplorer_Navigate(IWebBrowser2 *iface, BSTR szUrl,
...
@@ -182,8 +182,10 @@ static HRESULT WINAPI InternetExplorer_Navigate(IWebBrowser2 *iface, BSTR szUrl,
static
HRESULT
WINAPI
InternetExplorer_Refresh
(
IWebBrowser2
*
iface
)
static
HRESULT
WINAPI
InternetExplorer_Refresh
(
IWebBrowser2
*
iface
)
{
{
InternetExplorer
*
This
=
impl_from_IWebBrowser2
(
iface
);
InternetExplorer
*
This
=
impl_from_IWebBrowser2
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p)
\n
"
,
This
);
return
refresh_document
(
&
This
->
doc_host
->
doc_host
);
}
}
static
HRESULT
WINAPI
InternetExplorer_Refresh2
(
IWebBrowser2
*
iface
,
VARIANT
*
Level
)
static
HRESULT
WINAPI
InternetExplorer_Refresh2
(
IWebBrowser2
*
iface
,
VARIANT
*
Level
)
...
...
dlls/ieframe/ieframe.h
View file @
9c3c5704
...
@@ -265,6 +265,7 @@ void call_sink(ConnectionPoint*,DISPID,DISPPARAMS*) DECLSPEC_HIDDEN;
...
@@ -265,6 +265,7 @@ void call_sink(ConnectionPoint*,DISPID,DISPPARAMS*) DECLSPEC_HIDDEN;
HRESULT
navigate_url
(
DocHost
*
,
LPCWSTR
,
const
VARIANT
*
,
const
VARIANT
*
,
VARIANT
*
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
HRESULT
navigate_url
(
DocHost
*
,
LPCWSTR
,
const
VARIANT
*
,
const
VARIANT
*
,
VARIANT
*
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
HRESULT
go_home
(
DocHost
*
)
DECLSPEC_HIDDEN
;
HRESULT
go_home
(
DocHost
*
)
DECLSPEC_HIDDEN
;
HRESULT
go_back
(
DocHost
*
)
DECLSPEC_HIDDEN
;
HRESULT
go_back
(
DocHost
*
)
DECLSPEC_HIDDEN
;
HRESULT
refresh_document
(
DocHost
*
)
DECLSPEC_HIDDEN
;
HRESULT
get_location_url
(
DocHost
*
,
BSTR
*
)
DECLSPEC_HIDDEN
;
HRESULT
get_location_url
(
DocHost
*
,
BSTR
*
)
DECLSPEC_HIDDEN
;
HRESULT
set_dochost_url
(
DocHost
*
,
const
WCHAR
*
)
DECLSPEC_HIDDEN
;
HRESULT
set_dochost_url
(
DocHost
*
,
const
WCHAR
*
)
DECLSPEC_HIDDEN
;
void
handle_navigation_error
(
DocHost
*
,
HRESULT
,
BSTR
,
IHTMLWindow2
*
)
DECLSPEC_HIDDEN
;
void
handle_navigation_error
(
DocHost
*
,
HRESULT
,
BSTR
,
IHTMLWindow2
*
)
DECLSPEC_HIDDEN
;
...
...
dlls/ieframe/webbrowser.c
View file @
9c3c5704
...
@@ -292,8 +292,10 @@ static HRESULT WINAPI WebBrowser_Navigate(IWebBrowser2 *iface, BSTR szUrl,
...
@@ -292,8 +292,10 @@ static HRESULT WINAPI WebBrowser_Navigate(IWebBrowser2 *iface, BSTR szUrl,
static
HRESULT
WINAPI
WebBrowser_Refresh
(
IWebBrowser2
*
iface
)
static
HRESULT
WINAPI
WebBrowser_Refresh
(
IWebBrowser2
*
iface
)
{
{
WebBrowser
*
This
=
impl_from_IWebBrowser2
(
iface
);
WebBrowser
*
This
=
impl_from_IWebBrowser2
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p)
\n
"
,
This
);
return
refresh_document
(
&
This
->
doc_host
);
}
}
static
HRESULT
WINAPI
WebBrowser_Refresh2
(
IWebBrowser2
*
iface
,
VARIANT
*
Level
)
static
HRESULT
WINAPI
WebBrowser_Refresh2
(
IWebBrowser2
*
iface
,
VARIANT
*
Level
)
...
...
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