2010-12-06 18:48:22 +01:00
|
|
|
/*
|
|
|
|
* Copyright 2010 Jacek Caban for CodeWeavers
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2010-12-09 16:28:18 +01:00
|
|
|
typedef struct HTMLPluginContainer HTMLPluginContainer;
|
2010-12-06 18:48:22 +01:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
IOleClientSite IOleClientSite_iface;
|
2010-12-06 18:49:16 +01:00
|
|
|
IAdviseSinkEx IAdviseSinkEx_iface;
|
2010-12-06 18:49:49 +01:00
|
|
|
IPropertyNotifySink IPropertyNotifySink_iface;
|
2010-12-06 18:50:12 +01:00
|
|
|
IDispatch IDispatch_iface;
|
2010-12-06 18:50:35 +01:00
|
|
|
IOleInPlaceSiteEx IOleInPlaceSiteEx_iface;
|
2010-12-06 18:50:52 +01:00
|
|
|
IOleControlSite IOleControlSite_iface;
|
2010-12-06 18:51:05 +01:00
|
|
|
IBindHost IBindHost_iface;
|
2010-12-06 18:51:20 +01:00
|
|
|
IServiceProvider IServiceProvider_iface;
|
2010-12-06 18:48:22 +01:00
|
|
|
|
|
|
|
LONG ref;
|
|
|
|
|
|
|
|
IUnknown *plugin_unk;
|
2010-12-13 16:00:29 +01:00
|
|
|
IOleInPlaceObject *ip_object;
|
2010-12-10 16:35:15 +01:00
|
|
|
CLSID clsid;
|
2010-12-15 00:42:11 +01:00
|
|
|
|
2010-12-17 03:38:21 +01:00
|
|
|
IDispatch *disp;
|
|
|
|
|
2010-12-06 18:49:00 +01:00
|
|
|
HWND hwnd;
|
2010-12-10 16:35:15 +01:00
|
|
|
RECT rect;
|
2010-12-15 00:42:11 +01:00
|
|
|
BOOL ui_active;
|
2010-12-09 16:27:51 +01:00
|
|
|
|
|
|
|
HTMLDocumentNode *doc;
|
|
|
|
struct list entry;
|
2010-12-09 16:28:34 +01:00
|
|
|
|
|
|
|
HTMLPluginContainer *element;
|
2010-12-06 18:48:22 +01:00
|
|
|
} PluginHost;
|
|
|
|
|
2010-12-09 16:28:18 +01:00
|
|
|
struct HTMLPluginContainer {
|
|
|
|
HTMLElement element;
|
|
|
|
|
|
|
|
PluginHost *plugin_host;
|
2010-12-17 03:38:33 +01:00
|
|
|
|
|
|
|
DISPID *props;
|
|
|
|
DWORD props_size;
|
|
|
|
DWORD props_len;
|
2010-12-09 16:28:18 +01:00
|
|
|
};
|
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
extern const IID IID_HTMLPluginContainer DECLSPEC_HIDDEN;
|
2010-12-09 16:28:18 +01:00
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
HRESULT create_plugin_host(HTMLDocumentNode*,nsIDOMElement*,IUnknown*,const CLSID*,PluginHost**) DECLSPEC_HIDDEN;
|
|
|
|
void update_plugin_window(PluginHost*,HWND,const RECT*) DECLSPEC_HIDDEN;
|
|
|
|
void detach_plugin_host(PluginHost*) DECLSPEC_HIDDEN;
|
2010-12-10 16:35:40 +01:00
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
HRESULT create_param_prop_bag(nsIDOMHTMLElement*,IPropertyBag**) DECLSPEC_HIDDEN;
|
2010-12-13 16:00:48 +01:00
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
HRESULT create_ip_window(IOleInPlaceUIWindow**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT create_ip_frame(IOleInPlaceFrame**) DECLSPEC_HIDDEN;
|
2010-12-17 03:38:21 +01:00
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
HRESULT get_plugin_disp(HTMLPluginContainer*,IDispatch**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT get_plugin_dispid(HTMLPluginContainer*,WCHAR*,DISPID*) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT invoke_plugin_prop(HTMLPluginContainer*,DISPID,LCID,WORD,DISPPARAMS*,VARIANT*,EXCEPINFO*) DECLSPEC_HIDDEN;
|