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
f8682731
Commit
f8682731
authored
Sep 21, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 25, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Added [get|put]_Silent implementation.
As we don't have any dialog in WebBrowser implemented yet, all we have to do is to store silent value.
parent
38d33e33
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
4 deletions
+56
-4
shdocvw.h
dlls/shdocvw/shdocvw.h
+1
-0
webbrowser.c
dlls/shdocvw/tests/webbrowser.c
+44
-0
webbrowser.c
dlls/shdocvw/webbrowser.c
+11
-4
No files found.
dlls/shdocvw/shdocvw.h
View file @
f8682731
...
...
@@ -128,6 +128,7 @@ struct WebBrowser {
VARIANT_BOOL
address_bar
;
VARIANT_BOOL
status_bar
;
VARIANT_BOOL
tool_bar
;
VARIANT_BOOL
silent
;
DocHost
doc_host
;
};
...
...
dlls/shdocvw/tests/webbrowser.c
View file @
f8682731
...
...
@@ -809,6 +809,49 @@ static void test_ie_funcs(IUnknown *unk)
IWebBrowser2_Release
(
wb
);
}
static
void
test_Silent
(
IUnknown
*
unk
)
{
IWebBrowser2
*
wb
;
VARIANT_BOOL
b
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IWebBrowser2
,
(
void
**
)
&
wb
);
ok
(
hres
==
S_OK
,
"Could not get IWebBrowser2 interface: %08lx
\n
"
,
hres
);
if
(
FAILED
(
hres
))
return
;
b
=
100
;
hres
=
IWebBrowser2_get_Silent
(
wb
,
&
b
);
ok
(
hres
==
S_OK
,
"get_Silent failed: %08lx
\n
"
,
hres
);
ok
(
b
==
VARIANT_FALSE
,
"b=%x
\n
"
,
b
);
hres
=
IWebBrowser2_put_Silent
(
wb
,
VARIANT_TRUE
);
ok
(
hres
==
S_OK
,
"set_Silent failed: %08lx
\n
"
,
hres
);
b
=
100
;
hres
=
IWebBrowser2_get_Silent
(
wb
,
&
b
);
ok
(
hres
==
S_OK
,
"get_Silent failed: %08lx
\n
"
,
hres
);
ok
(
b
==
VARIANT_TRUE
,
"b=%x
\n
"
,
b
);
hres
=
IWebBrowser2_put_Silent
(
wb
,
100
);
ok
(
hres
==
S_OK
,
"set_Silent failed: %08lx
\n
"
,
hres
);
b
=
100
;
hres
=
IWebBrowser2_get_Silent
(
wb
,
&
b
);
ok
(
hres
==
S_OK
,
"get_Silent failed: %08lx
\n
"
,
hres
);
ok
(
b
==
VARIANT_TRUE
,
"b=%x
\n
"
,
b
);
hres
=
IWebBrowser2_put_Silent
(
wb
,
VARIANT_FALSE
);
ok
(
hres
==
S_OK
,
"set_Silent failed: %08lx
\n
"
,
hres
);
b
=
100
;
hres
=
IWebBrowser2_get_Silent
(
wb
,
&
b
);
ok
(
hres
==
S_OK
,
"get_Silent failed: %08lx
\n
"
,
hres
);
ok
(
b
==
VARIANT_FALSE
,
"b=%x
\n
"
,
b
);
IWebBrowser_Release
(
wb
);
}
static
void
test_GetControlInfo
(
IUnknown
*
unk
)
{
IOleControl
*
control
;
...
...
@@ -911,6 +954,7 @@ static void test_WebBrowser(void)
test_ClientSite
(
unk
,
NULL
);
test_ie_funcs
(
unk
);
test_GetControlInfo
(
unk
);
test_Silent
(
unk
);
ref
=
IUnknown_Release
(
unk
);
ok
(
ref
==
0
,
"ref=%ld, expected 0
\n
"
,
ref
);
...
...
dlls/shdocvw/webbrowser.c
View file @
f8682731
...
...
@@ -749,15 +749,21 @@ static HRESULT WINAPI WebBrowser_put_Offline(IWebBrowser2 *iface, VARIANT_BOOL b
static
HRESULT
WINAPI
WebBrowser_get_Silent
(
IWebBrowser2
*
iface
,
VARIANT_BOOL
*
pbSilent
)
{
WebBrowser
*
This
=
WEBBROWSER_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pbSilent
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pbSilent
);
*
pbSilent
=
This
->
silent
;
return
S_OK
;
}
static
HRESULT
WINAPI
WebBrowser_put_Silent
(
IWebBrowser2
*
iface
,
VARIANT_BOOL
bSilent
)
{
WebBrowser
*
This
=
WEBBROWSER_THIS
(
iface
);
FIXME
(
"(%p)->(%x)
\n
"
,
This
,
bSilent
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%x)
\n
"
,
This
,
bSilent
);
This
->
silent
=
bSilent
?
VARIANT_TRUE
:
VARIANT_FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
WebBrowser_get_RegisterAsBrowser
(
IWebBrowser2
*
iface
,
...
...
@@ -947,6 +953,7 @@ static HRESULT WebBrowser_Create(INT version, IUnknown *pOuter, REFIID riid, voi
ret
->
address_bar
=
VARIANT_TRUE
;
ret
->
status_bar
=
VARIANT_TRUE
;
ret
->
tool_bar
=
VARIANT_TRUE
;
ret
->
silent
=
VARIANT_FALSE
;
WebBrowser_OleObject_Init
(
ret
);
WebBrowser_ViewObject_Init
(
ret
);
...
...
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