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
6738db5a
Commit
6738db5a
authored
Mar 23, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Move hlink_frame_navigate function.
parent
a7caae95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
49 deletions
+49
-49
navigate.c
dlls/mshtml/navigate.c
+49
-49
No files found.
dlls/mshtml/navigate.c
View file @
6738db5a
...
...
@@ -816,55 +816,6 @@ static void parse_post_data(nsIInputStream *post_data_stream, LPWSTR *headers_re
*
post_data_len_ret
=
post_data_len
;
}
void
hlink_frame_navigate
(
HTMLDocument
*
doc
,
IHlinkFrame
*
hlink_frame
,
LPCWSTR
uri
,
nsIInputStream
*
post_data_stream
,
DWORD
hlnf
)
{
BSCallback
*
callback
;
IBindCtx
*
bindctx
;
IMoniker
*
mon
;
IHlink
*
hlink
;
HRESULT
hr
;
callback
=
create_channelbsc
(
NULL
);
if
(
post_data_stream
)
{
parse_post_data
(
post_data_stream
,
&
callback
->
headers
,
&
callback
->
post_data
,
&
callback
->
post_data_len
);
TRACE
(
"headers = %s post_data = %s
\n
"
,
debugstr_w
(
callback
->
headers
),
debugstr_an
(
callback
->
post_data
,
callback
->
post_data_len
));
}
hr
=
CreateAsyncBindCtx
(
0
,
STATUSCLB
(
callback
),
NULL
,
&
bindctx
);
if
(
FAILED
(
hr
))
{
IBindStatusCallback_Release
(
STATUSCLB
(
callback
));
return
;
}
hr
=
CoCreateInstance
(
&
CLSID_StdHlink
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IHlink
,
(
LPVOID
*
)
&
hlink
);
if
(
FAILED
(
hr
))
{
IBindCtx_Release
(
bindctx
);
IBindStatusCallback_Release
(
STATUSCLB
(
callback
));
return
;
}
hr
=
CreateURLMoniker
(
NULL
,
uri
,
&
mon
);
if
(
SUCCEEDED
(
hr
))
{
IHlink_SetMonikerReference
(
hlink
,
0
,
mon
,
NULL
);
if
(
hlnf
&
HLNF_OPENINNEWWINDOW
)
{
static
const
WCHAR
wszBlank
[]
=
{
'_'
,
'b'
,
'l'
,
'a'
,
'n'
,
'k'
,
0
};
IHlink_SetTargetFrameName
(
hlink
,
wszBlank
);
/* FIXME */
}
IHlinkFrame_Navigate
(
hlink_frame
,
hlnf
,
bindctx
,
STATUSCLB
(
callback
),
hlink
);
IMoniker_Release
(
mon
);
}
IBindCtx_Release
(
bindctx
);
IBindStatusCallback_Release
(
STATUSCLB
(
callback
));
}
HRESULT
start_binding
(
HTMLDocument
*
doc
,
BSCallback
*
bscallback
,
IBindCtx
*
bctx
)
{
IStream
*
str
=
NULL
;
...
...
@@ -965,3 +916,52 @@ void channelbsc_set_channel(BSCallback *This, nsChannel *channel, nsIStreamListe
This
->
nscontext
=
context
;
}
}
void
hlink_frame_navigate
(
HTMLDocument
*
doc
,
IHlinkFrame
*
hlink_frame
,
LPCWSTR
uri
,
nsIInputStream
*
post_data_stream
,
DWORD
hlnf
)
{
BSCallback
*
callback
;
IBindCtx
*
bindctx
;
IMoniker
*
mon
;
IHlink
*
hlink
;
HRESULT
hr
;
callback
=
create_channelbsc
(
NULL
);
if
(
post_data_stream
)
{
parse_post_data
(
post_data_stream
,
&
callback
->
headers
,
&
callback
->
post_data
,
&
callback
->
post_data_len
);
TRACE
(
"headers = %s post_data = %s
\n
"
,
debugstr_w
(
callback
->
headers
),
debugstr_an
(
callback
->
post_data
,
callback
->
post_data_len
));
}
hr
=
CreateAsyncBindCtx
(
0
,
STATUSCLB
(
callback
),
NULL
,
&
bindctx
);
if
(
FAILED
(
hr
))
{
IBindStatusCallback_Release
(
STATUSCLB
(
callback
));
return
;
}
hr
=
CoCreateInstance
(
&
CLSID_StdHlink
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IHlink
,
(
LPVOID
*
)
&
hlink
);
if
(
FAILED
(
hr
))
{
IBindCtx_Release
(
bindctx
);
IBindStatusCallback_Release
(
STATUSCLB
(
callback
));
return
;
}
hr
=
CreateURLMoniker
(
NULL
,
uri
,
&
mon
);
if
(
SUCCEEDED
(
hr
))
{
IHlink_SetMonikerReference
(
hlink
,
0
,
mon
,
NULL
);
if
(
hlnf
&
HLNF_OPENINNEWWINDOW
)
{
static
const
WCHAR
wszBlank
[]
=
{
'_'
,
'b'
,
'l'
,
'a'
,
'n'
,
'k'
,
0
};
IHlink_SetTargetFrameName
(
hlink
,
wszBlank
);
/* FIXME */
}
IHlinkFrame_Navigate
(
hlink_frame
,
hlnf
,
bindctx
,
STATUSCLB
(
callback
),
hlink
);
IMoniker_Release
(
mon
);
}
IBindCtx_Release
(
bindctx
);
IBindStatusCallback_Release
(
STATUSCLB
(
callback
));
}
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