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
146b720f
Commit
146b720f
authored
Dec 13, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 13, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Call DoVerb on embedded plugin.
parent
84a86d48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
pluginhost.c
dlls/mshtml/pluginhost.c
+34
-0
No files found.
dlls/mshtml/pluginhost.c
View file @
146b720f
...
...
@@ -88,6 +88,15 @@ static void update_readystate(PluginHost *host)
}
}
/* FIXME: We shouldn't need this function and we should embed plugin directly in the main document */
void
get_pos_rect
(
PluginHost
*
host
,
RECT
*
ret
)
{
ret
->
top
=
0
;
ret
->
left
=
0
;
ret
->
bottom
=
host
->
rect
.
bottom
-
host
->
rect
.
top
;
ret
->
right
=
host
->
rect
.
right
-
host
->
rect
.
left
;
}
static
void
load_prop_bag
(
PluginHost
*
host
,
IPersistPropertyBag
*
persist_prop_bag
)
{
IPropertyBag
*
prop_bag
;
...
...
@@ -141,6 +150,9 @@ static void activate_plugin(PluginHost *host)
{
IClientSecurity
*
client_security
;
IQuickActivate
*
quick_activate
;
IOleCommandTarget
*
cmdtrg
;
IOleObject
*
ole_obj
;
RECT
rect
;
HRESULT
hres
;
if
(
!
host
->
plugin_unk
)
...
...
@@ -176,6 +188,26 @@ static void activate_plugin(PluginHost *host)
}
load_plugin
(
host
);
/* NOTE: Native QIs for IViewObjectEx, IActiveScript, an undocumented IID, IOleControl and IRunnableObject */
hres
=
IUnknown_QueryInterface
(
host
->
plugin_unk
,
&
IID_IOleCommandTarget
,
(
void
**
)
&
cmdtrg
);
if
(
SUCCEEDED
(
hres
))
{
FIXME
(
"Use IOleCommandTarget
\n
"
);
IOleCommandTarget_Release
(
cmdtrg
);
}
hres
=
IUnknown_QueryInterface
(
host
->
plugin_unk
,
&
IID_IOleObject
,
(
void
**
)
&
ole_obj
);
if
(
FAILED
(
hres
))
{
FIXME
(
"Plugin does not support IOleObject
\n
"
);
return
;
}
get_pos_rect
(
host
,
&
rect
);
hres
=
IOleObject_DoVerb
(
ole_obj
,
OLEIVERB_INPLACEACTIVATE
,
NULL
,
&
host
->
IOleClientSite_iface
,
0
,
host
->
hwnd
,
&
rect
);
IOleObject_Release
(
ole_obj
);
if
(
FAILED
(
hres
))
WARN
(
"DoVerb failed: %08x
\n
"
,
hres
);
}
void
update_plugin_window
(
PluginHost
*
host
,
HWND
hwnd
,
const
RECT
*
rect
)
...
...
@@ -185,6 +217,8 @@ void update_plugin_window(PluginHost *host, HWND hwnd, const RECT *rect)
return
;
}
host
->
rect
=
*
rect
;
if
(
!
host
->
hwnd
)
{
host
->
hwnd
=
hwnd
;
activate_plugin
(
host
);
...
...
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