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
6470c5ca
Commit
6470c5ca
authored
Apr 18, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Get rid of WebBrowser dependency in DocHost object.
parent
59c6f204
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
26 deletions
+23
-26
client.c
dlls/shdocvw/client.c
+7
-9
dochost.c
dlls/shdocvw/dochost.c
+10
-7
frame.c
dlls/shdocvw/frame.c
+2
-2
shdocvw.h
dlls/shdocvw/shdocvw.h
+3
-5
webbrowser.c
dlls/shdocvw/webbrowser.c
+1
-3
No files found.
dlls/shdocvw/client.c
View file @
6470c5ca
...
...
@@ -464,17 +464,15 @@ static const IServiceProviderVtbl ServiceProviderVtbl = {
ClServiceProvider_QueryService
};
void
WebBrowser_ClientSite_Init
(
WebBrowser
*
This
)
void
DocHost_ClientSite_Init
(
DocHost
*
This
)
{
This
->
doc_host
.
lpOleClientSiteVtbl
=
&
OleClientSiteVtbl
;
This
->
doc_host
.
lpOleInPlaceSiteVtbl
=
&
OleInPlaceSiteVtbl
;
This
->
doc_host
.
lpOleDocumentSiteVtbl
=
&
OleDocumentSiteVtbl
;
This
->
doc_host
.
lpDispatchVtbl
=
&
DispatchVtbl
;
This
->
doc_host
.
lpServiceProviderVtbl
=
&
ServiceProviderVtbl
;
This
->
lpOleClientSiteVtbl
=
&
OleClientSiteVtbl
;
This
->
lpOleInPlaceSiteVtbl
=
&
OleInPlaceSiteVtbl
;
This
->
lpOleDocumentSiteVtbl
=
&
OleDocumentSiteVtbl
;
This
->
lpDispatchVtbl
=
&
DispatchVtbl
;
This
->
lpServiceProviderVtbl
=
&
ServiceProviderVtbl
;
This
->
doc_host
.
view
=
NULL
;
This
->
doc_host
.
wb
=
This
;
This
->
view
=
NULL
;
}
void
WebBrowser_ClientSite_Destroy
(
WebBrowser
*
This
)
...
...
dlls/shdocvw/dochost.c
View file @
6470c5ca
...
...
@@ -478,14 +478,17 @@ static const IDocHostUIHandler2Vtbl DocHostUIHandler2Vtbl = {
DocHostUIHandler_GetOverrideKeyPath
};
void
WebBrowser_DocHost_Init
(
WebBrowser
*
This
)
void
DocHost_Init
(
DocHost
*
This
)
{
This
->
doc_host
.
lpDocHostUIHandlerVtbl
=
&
DocHostUIHandler2Vtbl
;
This
->
doc_host
.
lpOleCommandTargetVtbl
=
&
OleCommandTargetVtbl
;
This
->
lpDocHostUIHandlerVtbl
=
&
DocHostUIHandler2Vtbl
;
This
->
lpOleCommandTargetVtbl
=
&
OleCommandTargetVtbl
;
This
->
doc_host
.
document
=
NULL
;
This
->
doc_host
.
hostui
=
NULL
;
This
->
document
=
NULL
;
This
->
hostui
=
NULL
;
This
->
hwnd
=
NULL
;
This
->
frame_hwnd
=
NULL
;
This
->
doc_host
.
hwnd
=
NULL
;
This
->
doc_host
.
frame_hwnd
=
NULL
;
DocHost_ClientSite_Init
(
This
)
;
DocHost_Frame_Init
(
This
)
;
}
dlls/shdocvw/frame.c
View file @
6470c5ca
...
...
@@ -174,7 +174,7 @@ static const IOleInPlaceFrameVtbl OleInPlaceFrameVtbl = {
InPlaceFrame_TranslateAccelerator
};
void
WebBrowser_Frame_Init
(
WebBrowser
*
This
)
void
DocHost_Frame_Init
(
DocHost
*
This
)
{
This
->
doc_host
.
lpOleInPlaceFrameVtbl
=
&
OleInPlaceFrameVtbl
;
This
->
lpOleInPlaceFrameVtbl
=
&
OleInPlaceFrameVtbl
;
}
dlls/shdocvw/shdocvw.h
View file @
6470c5ca
...
...
@@ -73,8 +73,6 @@ typedef struct {
HWND
hwnd
;
HWND
frame_hwnd
;
struct
WebBrowser
*
wb
;
/* FIXME */
}
DocHost
;
typedef
struct
WebBrowser
{
...
...
@@ -155,10 +153,10 @@ void WebBrowser_ClassInfo_Init(WebBrowser*);
void
WebBrowser_Events_Init
(
WebBrowser
*
);
void
WebBrowser_HlinkFrame_Init
(
WebBrowser
*
);
void
WebBrowser_ClientSite_Init
(
WebBrowser
*
);
void
WebBrowser_DocHost_Init
(
WebBrowser
*
);
void
DocHost_Init
(
DocHost
*
);
void
DocHost_ClientSite_Init
(
DocHost
*
);
void
WebBrowser_Frame_Init
(
WebBrowser
*
);
void
DocHost_Frame_Init
(
DocHost
*
);
void
WebBrowser_OleObject_Destroy
(
WebBrowser
*
);
void
WebBrowser_Events_Destroy
(
WebBrowser
*
);
...
...
dlls/shdocvw/webbrowser.c
View file @
6470c5ca
...
...
@@ -847,15 +847,13 @@ HRESULT WebBrowser_Create(IUnknown *pOuter, REFIID riid, void **ppv)
ret
->
url
=
NULL
;
ret
->
doc_host
.
disp
=
(
IDispatch
*
)
WEBBROWSER2
(
ret
);
DocHost_Init
(
&
ret
->
doc_host
);
WebBrowser_OleObject_Init
(
ret
);
WebBrowser_ViewObject_Init
(
ret
);
WebBrowser_Persist_Init
(
ret
);
WebBrowser_ClassInfo_Init
(
ret
);
WebBrowser_Events_Init
(
ret
);
WebBrowser_ClientSite_Init
(
ret
);
WebBrowser_DocHost_Init
(
ret
);
WebBrowser_Frame_Init
(
ret
);
WebBrowser_HlinkFrame_Init
(
ret
);
hres
=
IWebBrowser_QueryInterface
(
WEBBROWSER
(
ret
),
riid
,
ppv
);
...
...
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