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
07b6e423
Commit
07b6e423
authored
Dec 17, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Share get_LocationURL implementation between WebBrowser and InternetExplorer objects.
parent
a601c75d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
11 deletions
+18
-11
ie.c
dlls/shdocvw/ie.c
+4
-2
navigate.c
dlls/shdocvw/navigate.c
+11
-0
shdocvw.h
dlls/shdocvw/shdocvw.h
+1
-0
webbrowser.c
dlls/shdocvw/webbrowser.c
+2
-9
No files found.
dlls/shdocvw/ie.c
View file @
07b6e423
...
...
@@ -291,8 +291,10 @@ static HRESULT WINAPI InternetExplorer_get_LocationName(IWebBrowser2 *iface, BST
static
HRESULT
WINAPI
InternetExplorer_get_LocationURL
(
IWebBrowser2
*
iface
,
BSTR
*
LocationURL
)
{
InternetExplorer
*
This
=
impl_from_IWebBrowser2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
LocationURL
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
LocationURL
);
return
get_location_url
(
&
This
->
doc_host
,
LocationURL
);
}
static
HRESULT
WINAPI
InternetExplorer_get_Busy
(
IWebBrowser2
*
iface
,
VARIANT_BOOL
*
pBool
)
...
...
dlls/shdocvw/navigate.c
View file @
07b6e423
...
...
@@ -880,6 +880,17 @@ HRESULT go_home(DocHost *This)
return
navigate_url
(
This
,
wszPageName
,
NULL
,
NULL
,
NULL
,
NULL
);
}
HRESULT
get_location_url
(
DocHost
*
This
,
BSTR
*
ret
)
{
FIXME
(
"semi-stub
\n
"
);
*
ret
=
This
->
url
?
SysAllocString
(
This
->
url
)
:
SysAllocStringLen
(
NULL
,
0
);
if
(
!*
ret
)
return
E_OUTOFMEMORY
;
return
This
->
url
?
S_OK
:
S_FALSE
;
}
static
inline
HlinkFrame
*
impl_from_IHlinkFrame
(
IHlinkFrame
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HlinkFrame
,
IHlinkFrame_iface
);
...
...
dlls/shdocvw/shdocvw.h
View file @
07b6e423
...
...
@@ -226,6 +226,7 @@ void call_sink(ConnectionPoint*,DISPID,DISPPARAMS*);
HRESULT
navigate_url
(
DocHost
*
,
LPCWSTR
,
const
VARIANT
*
,
const
VARIANT
*
,
VARIANT
*
,
VARIANT
*
);
HRESULT
go_home
(
DocHost
*
);
void
set_doc_state
(
DocHost
*
,
READYSTATE
);
HRESULT
get_location_url
(
DocHost
*
,
BSTR
*
);
#define WM_DOCHOSTTASK (WM_USER+0x300)
void
push_dochost_task
(
DocHost
*
,
task_header_t
*
,
task_proc_t
,
BOOL
);
...
...
dlls/shdocvw/webbrowser.c
View file @
07b6e423
...
...
@@ -501,16 +501,9 @@ static HRESULT WINAPI WebBrowser_get_LocationURL(IWebBrowser2 *iface, BSTR *Loca
{
WebBrowser
*
This
=
impl_from_IWebBrowser2
(
iface
);
FIXM
E
(
"(%p)->(%p)
\n
"
,
This
,
LocationURL
);
TRAC
E
(
"(%p)->(%p)
\n
"
,
This
,
LocationURL
);
if
(
!
This
->
doc_host
.
url
)
{
static
const
WCHAR
null_char
=
0
;
*
LocationURL
=
SysAllocString
(
&
null_char
);
return
S_FALSE
;
}
*
LocationURL
=
SysAllocString
(
This
->
doc_host
.
url
);
return
S_OK
;
return
get_location_url
(
&
This
->
doc_host
,
LocationURL
);
}
static
HRESULT
WINAPI
WebBrowser_get_Busy
(
IWebBrowser2
*
iface
,
VARIANT_BOOL
*
pBool
)
...
...
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