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
2fe9af55
Commit
2fe9af55
authored
Sep 23, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Added WebBrowser::FullScreen property implementation.
parent
00e56273
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
4 deletions
+35
-4
shdocvw.h
dlls/shdocvw/shdocvw.h
+1
-0
webbrowser.c
dlls/shdocvw/tests/webbrowser.c
+23
-0
webbrowser.c
dlls/shdocvw/webbrowser.c
+11
-4
No files found.
dlls/shdocvw/shdocvw.h
View file @
2fe9af55
...
...
@@ -131,6 +131,7 @@ struct WebBrowser {
VARIANT_BOOL
address_bar
;
VARIANT_BOOL
status_bar
;
VARIANT_BOOL
tool_bar
;
VARIANT_BOOL
full_screen
;
DocHost
doc_host
;
};
...
...
dlls/shdocvw/tests/webbrowser.c
View file @
2fe9af55
...
...
@@ -1094,6 +1094,29 @@ static void test_ie_funcs(IUnknown *unk)
hres
=
IWebBrowser2_put_ToolBar
(
wb
,
VARIANT_TRUE
);
ok
(
hres
==
S_OK
,
"put_ToolBar failed: %08x
\n
"
,
hres
);
/* FullScreen */
hres
=
IWebBrowser2_get_FullScreen
(
wb
,
&
b
);
ok
(
hres
==
S_OK
,
"get_FullScreen failed: %08x
\n
"
,
hres
);
ok
(
b
==
VARIANT_FALSE
,
"b=%x
\n
"
,
b
);
hres
=
IWebBrowser2_put_FullScreen
(
wb
,
VARIANT_TRUE
);
ok
(
hres
==
S_OK
,
"put_FullScreen failed: %08x
\n
"
,
hres
);
hres
=
IWebBrowser2_get_FullScreen
(
wb
,
&
b
);
ok
(
hres
==
S_OK
,
"get_FullScreen failed: %08x
\n
"
,
hres
);
ok
(
b
==
VARIANT_TRUE
,
"b=%x
\n
"
,
b
);
hres
=
IWebBrowser2_put_FullScreen
(
wb
,
100
);
ok
(
hres
==
S_OK
,
"put_FullScreen failed: %08x
\n
"
,
hres
);
hres
=
IWebBrowser2_get_FullScreen
(
wb
,
&
b
);
ok
(
hres
==
S_OK
,
"get_FullScreen failed: %08x
\n
"
,
hres
);
ok
(
b
==
VARIANT_TRUE
,
"b=%x
\n
"
,
b
);
hres
=
IWebBrowser2_put_FullScreen
(
wb
,
VARIANT_FALSE
);
ok
(
hres
==
S_OK
,
"put_FullScreen failed: %08x
\n
"
,
hres
);
IWebBrowser2_Release
(
wb
);
}
...
...
dlls/shdocvw/webbrowser.c
View file @
2fe9af55
...
...
@@ -638,15 +638,21 @@ static HRESULT WINAPI WebBrowser_put_MenuBar(IWebBrowser2 *iface, VARIANT_BOOL V
static
HRESULT
WINAPI
WebBrowser_get_FullScreen
(
IWebBrowser2
*
iface
,
VARIANT_BOOL
*
pbFullScreen
)
{
WebBrowser
*
This
=
WEBBROWSER_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pbFullScreen
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pbFullScreen
);
*
pbFullScreen
=
This
->
full_screen
;
return
S_OK
;
}
static
HRESULT
WINAPI
WebBrowser_put_FullScreen
(
IWebBrowser2
*
iface
,
VARIANT_BOOL
bFullScreen
)
{
WebBrowser
*
This
=
WEBBROWSER_THIS
(
iface
);
FIXME
(
"(%p)->(%x)
\n
"
,
This
,
bFullScreen
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%x)
\n
"
,
This
,
bFullScreen
);
This
->
full_screen
=
bFullScreen
?
VARIANT_TRUE
:
VARIANT_FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
WebBrowser_Navigate2
(
IWebBrowser2
*
iface
,
VARIANT
*
URL
,
VARIANT
*
Flags
,
...
...
@@ -927,6 +933,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
->
full_screen
=
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