mshtml: Associate PluginHost with containing element.
[wine/wine-gecko.git] / dlls / mshtml / pluginhost.h
blobd030a3ee9e1fe6a2088234992d966fc71570de21
1 /*
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;
21 typedef struct {
22 IOleClientSite IOleClientSite_iface;
23 IAdviseSinkEx IAdviseSinkEx_iface;
24 IPropertyNotifySink IPropertyNotifySink_iface;
25 IDispatch IDispatch_iface;
26 IOleInPlaceSiteEx IOleInPlaceSiteEx_iface;
27 IOleControlSite IOleControlSite_iface;
28 IBindHost IBindHost_iface;
29 IServiceProvider IServiceProvider_iface;
31 LONG ref;
33 IUnknown *plugin_unk;
34 HWND hwnd;
36 HTMLDocumentNode *doc;
37 struct list entry;
39 HTMLPluginContainer *element;
40 } PluginHost;
42 struct HTMLPluginContainer {
43 HTMLElement element;
45 PluginHost *plugin_host;
48 extern const IID IID_HTMLPluginContainer;
50 HRESULT create_plugin_host(HTMLDocumentNode*,nsIDOMElement*,IUnknown*,PluginHost**);
51 void update_plugin_window(PluginHost*,HWND,const RECT*);
52 void detach_plugin_hosts(HTMLDocumentNode*);