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
ccd33999
Commit
ccd33999
authored
Sep 24, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 25, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Store BSCallback in HTMDocument.
parent
7f107fb8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
5 deletions
+33
-5
htmldoc.c
dlls/mshtml/htmldoc.c
+2
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+6
-1
navigate.c
dlls/mshtml/navigate.c
+20
-2
nsio.c
dlls/mshtml/nsio.c
+1
-1
persist.c
dlls/mshtml/persist.c
+4
-1
No files found.
dlls/mshtml/htmldoc.c
View file @
ccd33999
...
...
@@ -152,6 +152,8 @@ static ULONG WINAPI HTMLDocument_Release(IHTMLDocument2 *iface)
if
(
This
->
ipsite
)
IOleDocumentView_SetInPlaceSite
(
DOCVIEW
(
This
),
NULL
);
set_document_bscallback
(
This
,
NULL
);
if
(
This
->
tooltips_hwnd
)
DestroyWindow
(
This
->
tooltips_hwnd
);
if
(
This
->
hwnd
)
...
...
dlls/mshtml/mshtml_private.h
View file @
ccd33999
...
...
@@ -86,6 +86,8 @@ struct HTMLDocument {
IOleInPlaceSite
*
ipsite
;
IOleInPlaceFrame
*
frame
;
BSCallback
*
bscallback
;
HWND
hwnd
;
HWND
tooltips_hwnd
;
...
...
@@ -176,6 +178,8 @@ struct BSCallback {
IMoniker
*
mon
;
IBinding
*
binding
;
HTMLDocument
*
doc
;
nsProtocolStream
*
nsstream
;
};
...
...
@@ -314,8 +318,9 @@ void nsAString_Finish(nsAString*);
nsIInputStream
*
create_nsstream
(
const
char
*
,
PRInt32
);
nsICommandParams
*
create_nscommand_params
(
void
);
BSCallback
*
create_bscallback
(
HTMLDocument
*
,
IMoniker
*
);
BSCallback
*
create_bscallback
(
IMoniker
*
);
HRESULT
start_binding
(
BSCallback
*
);
void
set_document_bscallback
(
HTMLDocument
*
,
BSCallback
*
);
IHlink
*
Hlink_Create
(
void
);
IHTMLSelectionObject
*
HTMLSelectionObject_Create
(
nsISelection
*
);
...
...
dlls/mshtml/navigate.c
View file @
ccd33999
...
...
@@ -586,7 +586,7 @@ static const IServiceProviderVtbl ServiceProviderVtbl = {
BSCServiceProvider_QueryService
};
BSCallback
*
create_bscallback
(
HTMLDocument
*
doc
,
IMoniker
*
mon
)
BSCallback
*
create_bscallback
(
IMoniker
*
mon
)
{
BSCallback
*
ret
=
mshtml_alloc
(
sizeof
(
BSCallback
));
...
...
@@ -604,6 +604,7 @@ BSCallback *create_bscallback(HTMLDocument *doc, IMoniker *mon)
ret
->
nscontext
=
NULL
;
ret
->
nsstream
=
NULL
;
ret
->
binding
=
NULL
;
ret
->
doc
=
NULL
;
if
(
mon
)
IMoniker_AddRef
(
mon
);
...
...
@@ -690,7 +691,7 @@ void hlink_frame_navigate(HTMLDocument *doc, IHlinkFrame *hlink_frame,
IMoniker
*
mon
;
IHlink
*
hlink
;
callback
=
create_bscallback
(
doc
,
NULL
);
callback
=
create_bscallback
(
NULL
);
if
(
post_data_stream
)
{
parse_post_data
(
post_data_stream
,
&
callback
->
headers
,
&
callback
->
post_data
,
...
...
@@ -745,3 +746,20 @@ HRESULT start_binding(BSCallback *bscallback)
bscallback
->
mon
=
NULL
;
return
S_OK
;
}
void
set_document_bscallback
(
HTMLDocument
*
doc
,
BSCallback
*
callback
)
{
if
(
doc
->
bscallback
)
{
if
(
doc
->
bscallback
->
binding
)
IBinding_Abort
(
doc
->
bscallback
->
binding
);
doc
->
bscallback
->
doc
=
NULL
;
IBindStatusCallback_Release
(
STATUSCLB
(
doc
->
bscallback
));
}
doc
->
bscallback
=
callback
;
if
(
callback
)
{
IBindStatusCallback_AddRef
(
STATUSCLB
(
callback
));
callback
->
doc
=
doc
;
}
}
dlls/mshtml/nsio.c
View file @
ccd33999
...
...
@@ -668,7 +668,7 @@ static nsresult NSAPI nsChannel_AsyncOpen(nsIHttpChannel *iface, nsIStreamListen
return
NS_ERROR_UNEXPECTED
;
}
bscallback
=
create_bscallback
(
NULL
,
mon
);
bscallback
=
create_bscallback
(
mon
);
IMoniker_Release
(
mon
);
nsIChannel_AddRef
(
NSCHANNEL
(
This
));
...
...
dlls/mshtml/persist.c
View file @
ccd33999
...
...
@@ -218,7 +218,7 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
}
}
bscallback
=
create_bscallback
(
This
,
pimkName
);
bscallback
=
create_bscallback
(
pimkName
);
task
=
mshtml_alloc
(
sizeof
(
task_t
));
...
...
@@ -260,6 +260,7 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
if
(
pibc
)
FIXME
(
"not supported pibc
\n
"
);
set_document_bscallback
(
This
,
bscallback
);
hres
=
start_binding
(
bscallback
);
IBindStatusCallback_Release
(
STATUSCLB
(
bscallback
));
...
...
@@ -508,4 +509,6 @@ void HTMLDocument_Persist_Init(HTMLDocument *This)
This
->
lpPersistFileVtbl
=
&
PersistFileVtbl
;
This
->
lpMonikerPropVtbl
=
&
MonikerPropVtbl
;
This
->
lpPersistStreamInitVtbl
=
&
PersistStreamInitVtbl
;
This
->
bscallback
=
NULL
;
}
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