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-10 16:35:15 +01:00
|
|
|
CLSID clsid;
|
2010-12-06 18:49:00 +01:00
|
|
|
HWND hwnd;
|
2010-12-10 16:35:15 +01:00
|
|
|
RECT rect;
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern const IID IID_HTMLPluginContainer;
|
|
|
|
|
2010-12-10 16:35:15 +01:00
|
|
|
HRESULT create_plugin_host(HTMLDocumentNode*,nsIDOMElement*,IUnknown*,const CLSID*,PluginHost**);
|
2010-12-06 18:49:00 +01:00
|
|
|
void update_plugin_window(PluginHost*,HWND,const RECT*);
|
2010-12-09 16:27:51 +01:00
|
|
|
void detach_plugin_hosts(HTMLDocumentNode*);
|
2010-12-10 16:35:40 +01:00
|
|
|
|
|
|
|
HRESULT create_param_prop_bag(IPropertyBag**);
|