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
94b591cd
Commit
94b591cd
authored
Dec 15, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added PluginHost::GetContainer implementation.
parent
dc25bca4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
2 deletions
+38
-2
pluginhost.c
dlls/mshtml/pluginhost.c
+11
-2
activex.c
dlls/mshtml/tests/activex.c
+27
-0
No files found.
dlls/mshtml/pluginhost.c
View file @
94b591cd
...
...
@@ -364,8 +364,17 @@ static HRESULT WINAPI PHClientSite_GetMoniker(IOleClientSite *iface, DWORD dwAss
static
HRESULT
WINAPI
PHClientSite_GetContainer
(
IOleClientSite
*
iface
,
IOleContainer
**
ppContainer
)
{
PluginHost
*
This
=
impl_from_IOleClientSite
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
ppContainer
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
ppContainer
);
if
(
!
This
->
doc
)
{
ERR
(
"Called on detached object
\n
"
);
return
E_UNEXPECTED
;
}
*
ppContainer
=
&
This
->
doc
->
basedoc
.
IOleContainer_iface
;
IOleContainer_AddRef
(
*
ppContainer
);
return
S_OK
;
}
static
HRESULT
WINAPI
PHClientSite_ShowObject
(
IOleClientSite
*
iface
)
...
...
dlls/mshtml/tests/activex.c
View file @
94b591cd
...
...
@@ -1164,6 +1164,32 @@ static const IClassFactoryVtbl ClassFactoryVtbl = {
static
IClassFactory
activex_cf
=
{
&
ClassFactoryVtbl
};
static
void
test_container
(
IHTMLDocument2
*
doc_obj
)
{
IHTMLWindow2
*
parent_window
;
IOleContainer
*
container
;
IHTMLDocument2
*
doc
;
HRESULT
hres
;
container
=
NULL
;
hres
=
IOleClientSite_GetContainer
(
client_site
,
&
container
);
ok
(
hres
==
S_OK
,
"GetContainer failed: %08x
\n
"
,
hres
);
ok
(
container
!=
NULL
,
"container == NULL
\n
"
);
hres
=
IHTMLDocument2_get_parentWindow
(
doc_obj
,
&
parent_window
);
ok
(
hres
==
S_OK
,
"get_parentWindow failed: %08x
\n
"
,
hres
);
ok
(
parent_window
!=
NULL
,
"parentWindow == NULL
\n
"
);
hres
=
IHTMLWindow2_get_document
(
parent_window
,
&
doc
);
ok
(
hres
==
S_OK
,
"get_document failed: %08x
\n
"
,
hres
);
ok
(
doc
!=
NULL
,
"doc == NULL
\n
"
);
ok
(
iface_cmp
((
IUnknown
*
)
doc
,
(
IUnknown
*
)
container
),
"container != doc
\n
"
);
IHTMLDocument2_Release
(
doc
);
IHTMLWindow2_Release
(
parent_window
);
IOleContainer_Release
(
container
);
}
static
void
test_ui_activate
(
void
)
{
IOleInPlaceSite
*
ip_site
;
...
...
@@ -1779,6 +1805,7 @@ static void test_object_ax(void)
CHECK_CALLED
(
SetObjectRects
);
test_ui_activate
();
test_container
(
notif_doc
);
SET_EXPECT
(
UIDeactivate
);
SET_EXPECT
(
Invoke_ENABLED
);
...
...
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