2 * Copyright 2010 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 typedef struct HTMLPluginContainer HTMLPluginContainer
;
20 typedef struct PHEventSink PHEventSink
;
23 IOleClientSite IOleClientSite_iface
;
24 IAdviseSinkEx IAdviseSinkEx_iface
;
25 IPropertyNotifySink IPropertyNotifySink_iface
;
26 IDispatch IDispatch_iface
;
27 IOleInPlaceSiteEx IOleInPlaceSiteEx_iface
;
28 IOleControlSite IOleControlSite_iface
;
29 IBindHost IBindHost_iface
;
30 IServiceProvider IServiceProvider_iface
;
35 IOleInPlaceObject
*ip_object
;
44 HTMLDocumentNode
*doc
;
48 HTMLPluginContainer
*element
;
51 struct HTMLPluginContainer
{
54 PluginHost
*plugin_host
;
61 DEFINE_GUID(IID_HTMLPluginContainer
, 0xbd7a6050,0xb373,0x4f6f,0xa4,0x93,0xdd,0x40,0xc5,0x23,0xa8,0x6a);
63 extern const IID IID_HTMLPluginContainer
;
65 HRESULT
create_plugin_host(HTMLDocumentNode
*,HTMLPluginContainer
*);
66 void update_plugin_window(PluginHost
*,HWND
,const RECT
*);
67 void detach_plugin_host(PluginHost
*);
69 HRESULT
get_plugin_disp(HTMLPluginContainer
*,IDispatch
**);
70 HRESULT
get_plugin_dispid(HTMLPluginContainer
*,WCHAR
*,DISPID
*);
71 HRESULT
invoke_plugin_prop(HTMLPluginContainer
*,DISPID
,LCID
,WORD
,DISPPARAMS
*,VARIANT
*,EXCEPINFO
*);
72 void notif_container_change(HTMLPluginContainer
*,DISPID
);
73 void bind_activex_event(HTMLDocumentNode
*,HTMLPluginContainer
*,WCHAR
*,IDispatch
*);