2005-03-31 12:08:02 +02:00
|
|
|
/*
|
2009-09-16 22:05:24 +02:00
|
|
|
* Copyright 2005-2009 Jacek Caban for CodeWeavers
|
2005-03-31 12:08:02 +02:00
|
|
|
*
|
|
|
|
* 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
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2005-03-31 12:08:02 +02:00
|
|
|
*/
|
|
|
|
|
2007-10-17 15:16:21 +02:00
|
|
|
#include "wingdi.h"
|
2005-08-11 12:30:30 +02:00
|
|
|
#include "docobj.h"
|
2011-03-11 11:14:18 +01:00
|
|
|
#include "docobjectservice.h"
|
2009-11-20 00:00:41 +01:00
|
|
|
#include "comcat.h"
|
2005-08-11 12:30:30 +02:00
|
|
|
#include "mshtml.h"
|
|
|
|
#include "mshtmhst.h"
|
2005-08-27 11:25:56 +02:00
|
|
|
#include "hlink.h"
|
2009-04-15 19:58:05 +02:00
|
|
|
#include "perhist.h"
|
2008-04-17 02:31:43 +02:00
|
|
|
#include "dispex.h"
|
2011-01-19 21:31:43 +01:00
|
|
|
#include "objsafe.h"
|
2012-01-18 19:52:34 +01:00
|
|
|
#include "htiframe.h"
|
2012-01-20 15:10:25 +01:00
|
|
|
#include "tlogstg.h"
|
2013-04-23 16:21:04 +02:00
|
|
|
#include "shdeprecated.h"
|
2005-08-11 12:30:30 +02:00
|
|
|
|
2018-01-31 22:51:04 +01:00
|
|
|
#include "wine/heap.h"
|
2006-12-08 12:38:19 +01:00
|
|
|
#include "wine/list.h"
|
2016-09-12 13:44:31 +02:00
|
|
|
#include "wine/rbtree.h"
|
2007-12-31 01:32:48 +01:00
|
|
|
#include "wine/unicode.h"
|
2006-12-08 12:38:19 +01:00
|
|
|
|
2005-08-11 12:30:30 +02:00
|
|
|
#ifdef INIT_GUID
|
|
|
|
#include "initguid.h"
|
|
|
|
#endif
|
|
|
|
|
2005-08-01 12:59:45 +02:00
|
|
|
#include "nsiface.h"
|
|
|
|
|
2010-10-06 21:35:22 +02:00
|
|
|
#define NS_ERROR_GENERATE_FAILURE(module,code) \
|
2015-09-07 23:51:57 +02:00
|
|
|
((nsresult) (((UINT32)(1u<<31)) | ((UINT32)(module+0x45)<<16) | ((UINT32)(code))))
|
2016-01-30 16:50:52 +01:00
|
|
|
#define NS_ERROR_GENERATE_SUCCESS(module,code) \
|
|
|
|
((nsresult) (((UINT32)(module+0x45)<<16) | ((UINT32)(code))))
|
2010-10-06 21:35:22 +02:00
|
|
|
|
2005-08-01 12:59:45 +02:00
|
|
|
#define NS_OK ((nsresult)0x00000000L)
|
2005-12-09 11:51:02 +01:00
|
|
|
#define NS_ERROR_FAILURE ((nsresult)0x80004005L)
|
2010-08-18 13:37:32 +02:00
|
|
|
#define NS_ERROR_OUT_OF_MEMORY ((nsresult)0x8007000EL)
|
2005-08-01 12:59:45 +02:00
|
|
|
#define NS_ERROR_NOT_IMPLEMENTED ((nsresult)0x80004001L)
|
2011-04-22 14:07:18 +02:00
|
|
|
#define NS_NOINTERFACE ((nsresult)0x80004002L)
|
|
|
|
#define NS_ERROR_INVALID_POINTER ((nsresult)0x80004003L)
|
|
|
|
#define NS_ERROR_NULL_POINTER NS_ERROR_INVALID_POINTER
|
2010-04-03 00:31:42 +02:00
|
|
|
#define NS_ERROR_NOT_AVAILABLE ((nsresult)0x80040111L)
|
2005-08-25 21:24:58 +02:00
|
|
|
#define NS_ERROR_INVALID_ARG ((nsresult)0x80070057L)
|
2006-02-09 12:19:33 +01:00
|
|
|
#define NS_ERROR_UNEXPECTED ((nsresult)0x8000ffffL)
|
2019-03-26 17:27:32 +01:00
|
|
|
#define NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR ((nsresult)0x80530007)
|
2010-10-06 21:35:22 +02:00
|
|
|
|
|
|
|
#define NS_ERROR_MODULE_NETWORK 6
|
|
|
|
|
|
|
|
#define NS_BINDING_ABORTED NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 2)
|
|
|
|
#define NS_ERROR_UNKNOWN_PROTOCOL NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 18)
|
2016-01-30 16:50:52 +01:00
|
|
|
#define NS_SUCCESS_DEFAULT_ACTION NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_NETWORK, 66)
|
2005-08-01 12:59:45 +02:00
|
|
|
|
|
|
|
#define NS_FAILED(res) ((res) & 0x80000000)
|
|
|
|
#define NS_SUCCEEDED(res) (!NS_FAILED(res))
|
|
|
|
|
2005-08-25 21:24:58 +02:00
|
|
|
#define NSAPI WINAPI
|
|
|
|
|
2007-08-17 02:38:00 +02:00
|
|
|
#define MSHTML_E_NODOC 0x800a025c
|
|
|
|
|
2006-03-05 20:38:30 +01:00
|
|
|
typedef struct HTMLDOMNode HTMLDOMNode;
|
2006-04-28 20:01:07 +02:00
|
|
|
typedef struct ConnectionPoint ConnectionPoint;
|
2006-06-03 00:37:58 +02:00
|
|
|
typedef struct BSCallback BSCallback;
|
2017-02-13 21:10:51 +01:00
|
|
|
typedef struct EventTarget EventTarget;
|
2005-08-01 12:59:45 +02:00
|
|
|
|
2010-11-08 12:49:07 +01:00
|
|
|
#define TID_LIST \
|
|
|
|
XIID(NULL) \
|
|
|
|
XDIID(DispCEventObj) \
|
|
|
|
XDIID(DispCPlugins) \
|
|
|
|
XDIID(DispDOMChildrenCollection) \
|
2019-01-24 13:49:51 +01:00
|
|
|
XDIID(DispDOMCustomEvent) \
|
2018-02-05 17:29:50 +01:00
|
|
|
XDIID(DispDOMEvent) \
|
2018-02-06 00:10:26 +01:00
|
|
|
XDIID(DispDOMKeyboardEvent) \
|
2018-02-05 17:30:43 +01:00
|
|
|
XDIID(DispDOMMouseEvent) \
|
2018-02-06 00:09:35 +01:00
|
|
|
XDIID(DispDOMUIEvent) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XDIID(DispHTMLAnchorElement) \
|
2015-08-04 16:59:39 +02:00
|
|
|
XDIID(DispHTMLAreaElement) \
|
2011-08-25 15:23:35 +02:00
|
|
|
XDIID(DispHTMLAttributeCollection) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XDIID(DispHTMLBody) \
|
2013-03-14 17:52:34 +01:00
|
|
|
XDIID(DispHTMLButtonElement) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XDIID(DispHTMLCommentElement) \
|
|
|
|
XDIID(DispHTMLCurrentStyle) \
|
|
|
|
XDIID(DispHTMLDocument) \
|
2011-02-24 13:04:18 +01:00
|
|
|
XDIID(DispHTMLDOMAttribute) \
|
2019-04-18 15:36:56 +02:00
|
|
|
XDIID(DispHTMLDOMImplementation) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XDIID(DispHTMLDOMTextNode) \
|
|
|
|
XDIID(DispHTMLElementCollection) \
|
|
|
|
XDIID(DispHTMLEmbed) \
|
|
|
|
XDIID(DispHTMLFormElement) \
|
|
|
|
XDIID(DispHTMLGenericElement) \
|
|
|
|
XDIID(DispHTMLFrameElement) \
|
2011-06-21 13:47:20 +02:00
|
|
|
XDIID(DispHTMLHeadElement) \
|
2016-03-31 14:51:08 +02:00
|
|
|
XDIID(DispHTMLHtmlElement) \
|
2012-05-02 10:28:09 +02:00
|
|
|
XDIID(DispHTMLHistory) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XDIID(DispHTMLIFrame) \
|
|
|
|
XDIID(DispHTMLImg) \
|
|
|
|
XDIID(DispHTMLInputElement) \
|
2013-02-28 13:15:15 +01:00
|
|
|
XDIID(DispHTMLLabelElement) \
|
2012-10-15 11:16:30 +02:00
|
|
|
XDIID(DispHTMLLinkElement) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XDIID(DispHTMLLocation) \
|
2012-04-02 15:53:07 +02:00
|
|
|
XDIID(DispHTMLMetaElement) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XDIID(DispHTMLNavigator) \
|
|
|
|
XDIID(DispHTMLObjectElement) \
|
|
|
|
XDIID(DispHTMLOptionElement) \
|
|
|
|
XDIID(DispHTMLScreen) \
|
|
|
|
XDIID(DispHTMLScriptElement) \
|
|
|
|
XDIID(DispHTMLSelectElement) \
|
|
|
|
XDIID(DispHTMLStyle) \
|
2010-11-12 12:31:24 +01:00
|
|
|
XDIID(DispHTMLStyleElement) \
|
2013-08-19 12:12:11 +02:00
|
|
|
XDIID(DispHTMLStyleSheet) \
|
2019-05-07 14:45:11 +02:00
|
|
|
XDIID(DispHTMLStyleSheetRule) \
|
2014-05-09 14:05:21 +02:00
|
|
|
XDIID(DispHTMLStyleSheetRulesCollection) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XDIID(DispHTMLStyleSheetsCollection) \
|
|
|
|
XDIID(DispHTMLTable) \
|
2012-03-28 13:35:13 +02:00
|
|
|
XDIID(DispHTMLTableCell) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XDIID(DispHTMLTableRow) \
|
|
|
|
XDIID(DispHTMLTextAreaElement) \
|
2011-06-21 13:48:12 +02:00
|
|
|
XDIID(DispHTMLTitleElement) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XDIID(DispHTMLUnknownElement) \
|
2019-03-27 18:52:14 +01:00
|
|
|
XDIID(DispHTMLW3CComputedStyle) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XDIID(DispHTMLWindow2) \
|
2015-06-11 05:38:53 +02:00
|
|
|
XDIID(DispHTMLXMLHttpRequest) \
|
2019-04-18 15:36:34 +02:00
|
|
|
XDIID(DispSVGCircleElement) \
|
2019-04-18 15:36:25 +02:00
|
|
|
XDIID(DispSVGSVGElement) \
|
2019-04-18 15:36:44 +02:00
|
|
|
XDIID(DispSVGTSpanElement) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XDIID(HTMLDocumentEvents) \
|
2013-03-15 15:02:15 +01:00
|
|
|
XDIID(HTMLElementEvents2) \
|
2019-01-24 13:49:51 +01:00
|
|
|
XIID(IDOMCustomEvent) \
|
2017-10-19 17:02:08 +02:00
|
|
|
XIID(IDOMEvent) \
|
2018-02-06 00:10:26 +01:00
|
|
|
XIID(IDOMKeyboardEvent) \
|
2018-02-05 17:30:43 +01:00
|
|
|
XIID(IDOMMouseEvent) \
|
2018-02-06 00:09:35 +01:00
|
|
|
XIID(IDOMUIEvent) \
|
2017-12-04 18:02:11 +01:00
|
|
|
XIID(IDocumentEvent) \
|
2016-06-15 17:44:00 +02:00
|
|
|
XIID(IDocumentSelector) \
|
2016-06-16 19:29:46 +02:00
|
|
|
XIID(IElementSelector) \
|
2017-07-25 17:57:13 +02:00
|
|
|
XIID(IElementTraversal) \
|
2017-11-01 16:44:02 +01:00
|
|
|
XIID(IEventTarget) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLAnchorElement) \
|
2015-08-04 16:59:39 +02:00
|
|
|
XIID(IHTMLAreaElement) \
|
2011-08-25 15:23:35 +02:00
|
|
|
XIID(IHTMLAttributeCollection) \
|
|
|
|
XIID(IHTMLAttributeCollection2) \
|
|
|
|
XIID(IHTMLAttributeCollection3) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLBodyElement) \
|
|
|
|
XIID(IHTMLBodyElement2) \
|
2013-03-14 17:52:34 +01:00
|
|
|
XIID(IHTMLButtonElement) \
|
2018-08-31 16:36:24 +02:00
|
|
|
XIID(IHTMLCSSStyleDeclaration) \
|
2018-09-06 16:15:35 +02:00
|
|
|
XIID(IHTMLCSSStyleDeclaration2) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLCommentElement) \
|
|
|
|
XIID(IHTMLCurrentStyle) \
|
|
|
|
XIID(IHTMLCurrentStyle2) \
|
|
|
|
XIID(IHTMLCurrentStyle3) \
|
|
|
|
XIID(IHTMLCurrentStyle4) \
|
|
|
|
XIID(IHTMLDocument2) \
|
|
|
|
XIID(IHTMLDocument3) \
|
|
|
|
XIID(IHTMLDocument4) \
|
|
|
|
XIID(IHTMLDocument5) \
|
2016-07-05 22:47:21 +02:00
|
|
|
XIID(IHTMLDocument6) \
|
2017-09-12 13:15:23 +02:00
|
|
|
XIID(IHTMLDocument7) \
|
2011-02-24 13:04:18 +01:00
|
|
|
XIID(IHTMLDOMAttribute) \
|
2015-03-09 15:35:55 +01:00
|
|
|
XIID(IHTMLDOMAttribute2) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLDOMChildrenCollection) \
|
2014-08-22 14:48:37 +02:00
|
|
|
XIID(IHTMLDOMImplementation) \
|
2019-04-18 15:36:56 +02:00
|
|
|
XIID(IHTMLDOMImplementation2) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLDOMNode) \
|
|
|
|
XIID(IHTMLDOMNode2) \
|
2017-07-19 20:32:55 +02:00
|
|
|
XIID(IHTMLDOMNode3) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLDOMTextNode) \
|
2014-11-20 11:19:41 +01:00
|
|
|
XIID(IHTMLDOMTextNode2) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLElement) \
|
|
|
|
XIID(IHTMLElement2) \
|
|
|
|
XIID(IHTMLElement3) \
|
|
|
|
XIID(IHTMLElement4) \
|
2016-07-01 11:20:11 +02:00
|
|
|
XIID(IHTMLElement6) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLElementCollection) \
|
|
|
|
XIID(IHTMLEmbedElement) \
|
|
|
|
XIID(IHTMLEventObj) \
|
|
|
|
XIID(IHTMLFiltersCollection) \
|
|
|
|
XIID(IHTMLFormElement) \
|
|
|
|
XIID(IHTMLFrameBase) \
|
|
|
|
XIID(IHTMLFrameBase2) \
|
|
|
|
XIID(IHTMLFrameElement3) \
|
|
|
|
XIID(IHTMLGenericElement) \
|
2011-06-21 13:47:20 +02:00
|
|
|
XIID(IHTMLHeadElement) \
|
2016-03-31 14:51:08 +02:00
|
|
|
XIID(IHTMLHtmlElement) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLIFrameElement) \
|
2012-09-03 12:52:53 +02:00
|
|
|
XIID(IHTMLIFrameElement2) \
|
2012-09-03 13:16:57 +02:00
|
|
|
XIID(IHTMLIFrameElement3) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLImageElementFactory) \
|
|
|
|
XIID(IHTMLImgElement) \
|
|
|
|
XIID(IHTMLInputElement) \
|
2017-06-15 13:48:06 +02:00
|
|
|
XIID(IHTMLInputTextElement2) \
|
2013-02-28 13:15:15 +01:00
|
|
|
XIID(IHTMLLabelElement) \
|
2012-10-15 11:16:30 +02:00
|
|
|
XIID(IHTMLLinkElement) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLLocation) \
|
2012-04-02 15:53:07 +02:00
|
|
|
XIID(IHTMLMetaElement) \
|
2011-05-31 12:20:15 +02:00
|
|
|
XIID(IHTMLMimeTypesCollection) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLObjectElement) \
|
2012-03-27 13:39:21 +02:00
|
|
|
XIID(IHTMLObjectElement2) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLOptionElement) \
|
2014-05-12 10:23:26 +02:00
|
|
|
XIID(IHTMLOptionElementFactory) \
|
2018-06-14 17:35:14 +02:00
|
|
|
XIID(IHTMLPerformance) \
|
2018-07-11 21:37:48 +02:00
|
|
|
XIID(IHTMLPerformanceNavigation) \
|
2018-07-11 21:37:59 +02:00
|
|
|
XIID(IHTMLPerformanceTiming) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLPluginsCollection) \
|
|
|
|
XIID(IHTMLRect) \
|
2019-03-27 18:52:48 +01:00
|
|
|
XIID(IHTMLRectCollection) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLScreen) \
|
|
|
|
XIID(IHTMLScriptElement) \
|
|
|
|
XIID(IHTMLSelectElement) \
|
2014-11-11 10:55:53 +01:00
|
|
|
XIID(IHTMLSelectionObject) \
|
2015-03-20 16:00:17 +01:00
|
|
|
XIID(IHTMLSelectionObject2) \
|
2012-08-20 16:19:41 +02:00
|
|
|
XIID(IHTMLStorage) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLStyle) \
|
|
|
|
XIID(IHTMLStyle2) \
|
|
|
|
XIID(IHTMLStyle3) \
|
|
|
|
XIID(IHTMLStyle4) \
|
2011-07-28 16:30:02 +02:00
|
|
|
XIID(IHTMLStyle5) \
|
|
|
|
XIID(IHTMLStyle6) \
|
2010-11-12 12:31:24 +01:00
|
|
|
XIID(IHTMLStyleElement) \
|
2013-08-19 12:12:11 +02:00
|
|
|
XIID(IHTMLStyleSheet) \
|
2019-05-07 14:45:11 +02:00
|
|
|
XIID(IHTMLStyleSheetRule) \
|
2014-05-09 14:05:21 +02:00
|
|
|
XIID(IHTMLStyleSheetRulesCollection) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLStyleSheetsCollection) \
|
|
|
|
XIID(IHTMLTable) \
|
2011-09-21 08:37:34 +02:00
|
|
|
XIID(IHTMLTable2) \
|
|
|
|
XIID(IHTMLTable3) \
|
2012-03-28 13:35:13 +02:00
|
|
|
XIID(IHTMLTableCell) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLTableRow) \
|
|
|
|
XIID(IHTMLTextAreaElement) \
|
|
|
|
XIID(IHTMLTextContainer) \
|
2011-06-21 13:48:12 +02:00
|
|
|
XIID(IHTMLTitleElement) \
|
2014-11-11 10:55:34 +01:00
|
|
|
XIID(IHTMLTxtRange) \
|
2010-11-08 12:49:07 +01:00
|
|
|
XIID(IHTMLUniqueName) \
|
|
|
|
XIID(IHTMLWindow2) \
|
|
|
|
XIID(IHTMLWindow3) \
|
|
|
|
XIID(IHTMLWindow4) \
|
2012-08-20 16:19:41 +02:00
|
|
|
XIID(IHTMLWindow5) \
|
2011-10-19 16:15:16 +02:00
|
|
|
XIID(IHTMLWindow6) \
|
2018-05-17 16:22:09 +02:00
|
|
|
XIID(IHTMLWindow7) \
|
2015-06-11 05:38:53 +02:00
|
|
|
XIID(IHTMLXMLHttpRequest) \
|
2015-06-09 17:21:02 +02:00
|
|
|
XIID(IHTMLXMLHttpRequestFactory) \
|
2012-05-02 10:28:09 +02:00
|
|
|
XIID(IOmHistory) \
|
2019-04-18 15:36:14 +02:00
|
|
|
XIID(IOmNavigator) \
|
2019-04-18 15:36:34 +02:00
|
|
|
XIID(ISVGCircleElement) \
|
2019-04-18 15:36:25 +02:00
|
|
|
XIID(ISVGElement) \
|
2019-04-18 15:36:44 +02:00
|
|
|
XIID(ISVGSVGElement) \
|
|
|
|
XIID(ISVGTSpanElement) \
|
|
|
|
XIID(ISVGTextContentElement)
|
2010-11-08 12:49:07 +01:00
|
|
|
|
2008-04-17 02:32:18 +02:00
|
|
|
typedef enum {
|
2010-11-08 12:49:07 +01:00
|
|
|
#define XIID(iface) iface ## _tid,
|
|
|
|
#define XDIID(iface) iface ## _tid,
|
|
|
|
TID_LIST
|
|
|
|
#undef XIID
|
|
|
|
#undef XDIID
|
2008-04-17 02:32:18 +02:00
|
|
|
LAST_tid
|
|
|
|
} tid_t;
|
|
|
|
|
2016-07-05 22:47:00 +02:00
|
|
|
typedef enum {
|
|
|
|
COMPAT_MODE_QUIRKS,
|
2017-05-09 17:32:45 +02:00
|
|
|
COMPAT_MODE_IE5,
|
2016-07-05 22:47:00 +02:00
|
|
|
COMPAT_MODE_IE7,
|
|
|
|
COMPAT_MODE_IE8,
|
|
|
|
COMPAT_MODE_IE9,
|
|
|
|
COMPAT_MODE_IE10,
|
|
|
|
COMPAT_MODE_IE11
|
|
|
|
} compat_mode_t;
|
|
|
|
|
|
|
|
#define COMPAT_MODE_CNT (COMPAT_MODE_IE11+1)
|
|
|
|
#define COMPAT_MODE_NONE COMPAT_MODE_QUIRKS
|
|
|
|
|
2017-05-09 17:32:58 +02:00
|
|
|
typedef struct {
|
|
|
|
unsigned document_mode;
|
|
|
|
unsigned ie_version;
|
|
|
|
} compat_mode_info_t;
|
|
|
|
|
|
|
|
extern const compat_mode_info_t compat_mode_info[COMPAT_MODE_CNT] DECLSPEC_HIDDEN;
|
|
|
|
|
2008-04-19 12:55:24 +02:00
|
|
|
typedef struct dispex_data_t dispex_data_t;
|
2008-06-18 00:10:26 +02:00
|
|
|
typedef struct dispex_dynamic_data_t dispex_dynamic_data_t;
|
2008-04-19 12:55:24 +02:00
|
|
|
|
2008-04-29 01:38:09 +02:00
|
|
|
#define MSHTML_DISPID_CUSTOM_MIN 0x60000000
|
|
|
|
#define MSHTML_DISPID_CUSTOM_MAX 0x6fffffff
|
2010-04-29 18:29:23 +02:00
|
|
|
#define MSHTML_CUSTOM_DISPID_CNT (MSHTML_DISPID_CUSTOM_MAX-MSHTML_DISPID_CUSTOM_MIN)
|
2008-04-29 01:38:09 +02:00
|
|
|
|
2010-12-27 18:34:39 +01:00
|
|
|
typedef struct DispatchEx DispatchEx;
|
|
|
|
|
2008-04-29 01:38:09 +02:00
|
|
|
typedef struct {
|
2010-12-27 18:34:39 +01:00
|
|
|
HRESULT (*value)(DispatchEx*,LCID,WORD,DISPPARAMS*,VARIANT*,EXCEPINFO*,IServiceProvider*);
|
|
|
|
HRESULT (*get_dispid)(DispatchEx*,BSTR,DWORD,DISPID*);
|
|
|
|
HRESULT (*invoke)(DispatchEx*,DISPID,LCID,WORD,DISPPARAMS*,VARIANT*,EXCEPINFO*,IServiceProvider*);
|
2017-08-21 21:35:57 +02:00
|
|
|
compat_mode_t (*get_compat_mode)(DispatchEx*);
|
2011-08-23 11:33:18 +02:00
|
|
|
HRESULT (*populate_props)(DispatchEx*);
|
2008-04-29 01:38:09 +02:00
|
|
|
} dispex_static_data_vtbl_t;
|
|
|
|
|
2008-04-19 12:55:24 +02:00
|
|
|
typedef struct {
|
2008-04-29 01:38:09 +02:00
|
|
|
const dispex_static_data_vtbl_t *vtbl;
|
2008-04-19 12:55:24 +02:00
|
|
|
const tid_t disp_tid;
|
2008-05-06 16:04:58 +02:00
|
|
|
const tid_t* const iface_tids;
|
2016-07-07 12:49:45 +02:00
|
|
|
void (*init_info)(dispex_data_t*,compat_mode_t);
|
|
|
|
dispex_data_t *info_cache[COMPAT_MODE_CNT];
|
2017-08-21 21:35:57 +02:00
|
|
|
dispex_data_t *delayed_init_info;
|
2008-04-19 12:55:24 +02:00
|
|
|
} dispex_static_data_t;
|
|
|
|
|
2017-11-24 15:09:13 +01:00
|
|
|
typedef HRESULT (*dispex_hook_invoke_t)(DispatchEx*,LCID,WORD,DISPPARAMS*,VARIANT*,
|
|
|
|
EXCEPINFO*,IServiceProvider*);
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
DISPID dispid;
|
|
|
|
dispex_hook_invoke_t invoke;
|
|
|
|
} dispex_hook_t;
|
|
|
|
|
2010-12-27 18:34:39 +01:00
|
|
|
struct DispatchEx {
|
2010-12-31 11:07:33 +01:00
|
|
|
IDispatchEx IDispatchEx_iface;
|
2008-04-17 02:31:43 +02:00
|
|
|
|
|
|
|
IUnknown *outer;
|
2008-04-19 12:55:24 +02:00
|
|
|
|
2016-07-05 22:46:33 +02:00
|
|
|
dispex_data_t *info;
|
2008-06-18 00:10:26 +02:00
|
|
|
dispex_dynamic_data_t *dynamic_data;
|
2010-12-27 18:34:39 +01:00
|
|
|
};
|
2008-04-17 02:31:43 +02:00
|
|
|
|
2012-07-19 11:28:35 +02:00
|
|
|
typedef struct {
|
2014-11-03 12:39:59 +01:00
|
|
|
UINT_PTR x;
|
2012-07-19 11:28:35 +02:00
|
|
|
} nsCycleCollectingAutoRefCnt;
|
|
|
|
|
|
|
|
typedef struct {
|
2014-11-03 12:39:59 +01:00
|
|
|
void *vtbl;
|
|
|
|
int ref_flags;
|
|
|
|
void *callbacks;
|
|
|
|
} ExternalCycleCollectionParticipant;
|
2012-07-19 11:28:35 +02:00
|
|
|
|
|
|
|
typedef struct nsCycleCollectionTraversalCallback nsCycleCollectionTraversalCallback;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
nsresult (NSAPI *traverse)(void*,void*,nsCycleCollectionTraversalCallback*);
|
|
|
|
nsresult (NSAPI *unlink)(void*);
|
2014-11-03 12:39:59 +01:00
|
|
|
void (NSAPI *delete_cycle_collectable)(void*);
|
2012-07-19 11:28:35 +02:00
|
|
|
} CCObjCallback;
|
|
|
|
|
|
|
|
DEFINE_GUID(IID_nsXPCOMCycleCollectionParticipant, 0x9674489b,0x1f6f,0x4550,0xa7,0x30, 0xcc,0xae,0xdd,0x10,0x4c,0xf9);
|
|
|
|
|
2015-03-26 15:30:04 +01:00
|
|
|
nsrefcnt (__cdecl *ccref_incr)(nsCycleCollectingAutoRefCnt*,nsISupports*) DECLSPEC_HIDDEN;
|
|
|
|
nsrefcnt (__cdecl *ccref_decr)(nsCycleCollectingAutoRefCnt*,nsISupports*,ExternalCycleCollectionParticipant*) DECLSPEC_HIDDEN;
|
|
|
|
void (__cdecl *ccref_init)(nsCycleCollectingAutoRefCnt*,nsrefcnt) DECLSPEC_HIDDEN;
|
|
|
|
void (__cdecl *ccp_init)(ExternalCycleCollectionParticipant*,const CCObjCallback*) DECLSPEC_HIDDEN;
|
|
|
|
void (__cdecl *describe_cc_node)(nsCycleCollectingAutoRefCnt*,const char*,nsCycleCollectionTraversalCallback*) DECLSPEC_HIDDEN;
|
|
|
|
void (__cdecl *note_cc_edge)(nsISupports*,const char*,nsCycleCollectionTraversalCallback*) DECLSPEC_HIDDEN;
|
2012-07-19 11:28:35 +02:00
|
|
|
|
2016-07-07 12:49:45 +02:00
|
|
|
void init_dispex_with_compat_mode(DispatchEx*,IUnknown*,dispex_static_data_t*,compat_mode_t) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
void release_dispex(DispatchEx*) DECLSPEC_HIDDEN;
|
|
|
|
BOOL dispex_query_interface(DispatchEx*,REFIID,void**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT dispex_get_dprop_ref(DispatchEx*,const WCHAR*,BOOL,VARIANT**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT get_dispids(tid_t,DWORD*,DISPID**) DECLSPEC_HIDDEN;
|
2014-11-28 16:19:04 +01:00
|
|
|
HRESULT remove_attribute(DispatchEx*,DISPID,VARIANT_BOOL*) DECLSPEC_HIDDEN;
|
2012-04-17 12:10:48 +02:00
|
|
|
HRESULT dispex_get_dynid(DispatchEx*,const WCHAR*,DISPID*) DECLSPEC_HIDDEN;
|
2012-07-19 11:28:54 +02:00
|
|
|
void dispex_traverse(DispatchEx*,nsCycleCollectionTraversalCallback*) DECLSPEC_HIDDEN;
|
|
|
|
void dispex_unlink(DispatchEx*) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
void release_typelib(void) DECLSPEC_HIDDEN;
|
2017-04-20 16:23:50 +02:00
|
|
|
HRESULT get_class_typeinfo(const CLSID*,ITypeInfo**) DECLSPEC_HIDDEN;
|
2017-10-18 16:38:51 +02:00
|
|
|
const void *dispex_get_vtbl(DispatchEx*) DECLSPEC_HIDDEN;
|
2017-11-24 15:09:13 +01:00
|
|
|
void dispex_info_add_interface(dispex_data_t*,tid_t,const dispex_hook_t*) DECLSPEC_HIDDEN;
|
2017-09-21 23:25:55 +02:00
|
|
|
compat_mode_t dispex_compat_mode(DispatchEx*) DECLSPEC_HIDDEN;
|
2008-04-17 02:31:43 +02:00
|
|
|
|
2016-07-07 12:49:45 +02:00
|
|
|
static inline void init_dispex(DispatchEx *dispex, IUnknown *outer, dispex_static_data_t *desc)
|
|
|
|
{
|
|
|
|
init_dispex_with_compat_mode(dispex, outer, desc, COMPAT_MODE_NONE);
|
|
|
|
}
|
|
|
|
|
2012-07-24 15:55:54 +02:00
|
|
|
typedef enum {
|
|
|
|
DISPEXPROP_CUSTOM,
|
|
|
|
DISPEXPROP_DYNAMIC,
|
|
|
|
DISPEXPROP_BUILTIN
|
|
|
|
} dispex_prop_type_t;
|
|
|
|
|
|
|
|
dispex_prop_type_t get_dispid_type(DISPID) DECLSPEC_HIDDEN;
|
|
|
|
|
2010-02-21 21:08:39 +01:00
|
|
|
typedef struct HTMLWindow HTMLWindow;
|
2012-06-25 14:04:59 +02:00
|
|
|
typedef struct HTMLInnerWindow HTMLInnerWindow;
|
|
|
|
typedef struct HTMLOuterWindow HTMLOuterWindow;
|
2009-09-16 22:08:20 +02:00
|
|
|
typedef struct HTMLDocumentNode HTMLDocumentNode;
|
|
|
|
typedef struct HTMLDocumentObj HTMLDocumentObj;
|
2009-11-01 19:19:19 +01:00
|
|
|
typedef struct HTMLFrameBase HTMLFrameBase;
|
2019-03-11 14:22:24 +01:00
|
|
|
typedef struct GeckoBrowser GeckoBrowser;
|
2011-08-25 15:23:35 +02:00
|
|
|
typedef struct HTMLAttributeCollection HTMLAttributeCollection;
|
2009-09-16 22:05:24 +02:00
|
|
|
|
2009-09-09 21:31:32 +02:00
|
|
|
typedef struct ScriptHost ScriptHost;
|
|
|
|
|
2009-11-01 19:21:57 +01:00
|
|
|
typedef enum {
|
|
|
|
GLOBAL_SCRIPTVAR,
|
2012-04-17 12:10:48 +02:00
|
|
|
GLOBAL_ELEMENTVAR,
|
2012-09-04 13:58:39 +02:00
|
|
|
GLOBAL_DISPEXVAR,
|
|
|
|
GLOBAL_FRAMEVAR
|
2009-11-01 19:21:57 +01:00
|
|
|
} global_prop_type_t;
|
|
|
|
|
2009-09-09 21:31:32 +02:00
|
|
|
typedef struct {
|
2009-11-01 19:21:57 +01:00
|
|
|
global_prop_type_t type;
|
2009-09-09 21:31:32 +02:00
|
|
|
WCHAR *name;
|
|
|
|
ScriptHost *script_host;
|
|
|
|
DISPID id;
|
|
|
|
} global_prop_t;
|
|
|
|
|
2017-02-13 21:10:51 +01:00
|
|
|
struct EventTarget {
|
2015-05-14 13:24:19 +02:00
|
|
|
DispatchEx dispex;
|
2017-09-21 23:25:55 +02:00
|
|
|
IEventTarget IEventTarget_iface;
|
2017-02-13 21:12:33 +01:00
|
|
|
struct wine_rb_tree handler_map;
|
2017-02-13 21:10:51 +01:00
|
|
|
};
|
2015-05-14 13:24:19 +02:00
|
|
|
|
2006-12-06 18:21:16 +01:00
|
|
|
typedef struct {
|
2014-05-12 10:23:26 +02:00
|
|
|
DispatchEx dispex;
|
2011-01-03 01:04:25 +01:00
|
|
|
IHTMLOptionElementFactory IHTMLOptionElementFactory_iface;
|
2009-09-16 22:05:24 +02:00
|
|
|
|
|
|
|
LONG ref;
|
|
|
|
|
2012-06-25 14:05:58 +02:00
|
|
|
HTMLInnerWindow *window;
|
2009-09-16 22:05:24 +02:00
|
|
|
} HTMLOptionElementFactory;
|
|
|
|
|
2009-10-20 23:04:34 +02:00
|
|
|
typedef struct {
|
2009-10-20 23:05:03 +02:00
|
|
|
DispatchEx dispex;
|
2011-01-03 01:05:51 +01:00
|
|
|
IHTMLImageElementFactory IHTMLImageElementFactory_iface;
|
2009-10-20 23:04:34 +02:00
|
|
|
|
|
|
|
LONG ref;
|
|
|
|
|
2012-06-26 12:32:27 +02:00
|
|
|
HTMLInnerWindow *window;
|
2009-10-20 23:04:34 +02:00
|
|
|
} HTMLImageElementFactory;
|
|
|
|
|
2015-06-09 17:21:02 +02:00
|
|
|
typedef struct {
|
|
|
|
DispatchEx dispex;
|
|
|
|
IHTMLXMLHttpRequestFactory IHTMLXMLHttpRequestFactory_iface;
|
|
|
|
|
|
|
|
LONG ref;
|
2015-06-30 15:50:30 +02:00
|
|
|
|
|
|
|
HTMLInnerWindow *window;
|
2015-06-09 17:21:02 +02:00
|
|
|
} HTMLXMLHttpRequestFactory;
|
|
|
|
|
2009-09-16 22:05:50 +02:00
|
|
|
struct HTMLLocation {
|
|
|
|
DispatchEx dispex;
|
2011-01-03 01:12:05 +01:00
|
|
|
IHTMLLocation IHTMLLocation_iface;
|
2009-09-16 22:05:50 +02:00
|
|
|
|
|
|
|
LONG ref;
|
|
|
|
|
2012-08-14 11:29:17 +02:00
|
|
|
HTMLInnerWindow *window;
|
2009-09-16 22:05:50 +02:00
|
|
|
};
|
|
|
|
|
2013-04-23 16:21:04 +02:00
|
|
|
typedef struct {
|
|
|
|
DispatchEx dispex;
|
|
|
|
IOmHistory IOmHistory_iface;
|
|
|
|
|
|
|
|
LONG ref;
|
|
|
|
|
|
|
|
HTMLInnerWindow *window;
|
|
|
|
} OmHistory;
|
|
|
|
|
2010-02-21 21:07:43 +01:00
|
|
|
typedef struct nsChannelBSC nsChannelBSC;
|
|
|
|
|
2009-09-16 22:05:24 +02:00
|
|
|
struct HTMLWindow {
|
2010-12-27 12:50:32 +01:00
|
|
|
IHTMLWindow2 IHTMLWindow2_iface;
|
2010-12-27 14:22:27 +01:00
|
|
|
IHTMLWindow3 IHTMLWindow3_iface;
|
|
|
|
IHTMLWindow4 IHTMLWindow4_iface;
|
2012-01-23 16:42:15 +01:00
|
|
|
IHTMLWindow5 IHTMLWindow5_iface;
|
2011-10-19 16:15:16 +02:00
|
|
|
IHTMLWindow6 IHTMLWindow6_iface;
|
2018-05-17 16:22:09 +02:00
|
|
|
IHTMLWindow7 IHTMLWindow7_iface;
|
2010-12-27 14:22:27 +01:00
|
|
|
IHTMLPrivateWindow IHTMLPrivateWindow_iface;
|
2010-12-31 11:03:45 +01:00
|
|
|
IDispatchEx IDispatchEx_iface;
|
2010-12-27 01:43:10 +01:00
|
|
|
IServiceProvider IServiceProvider_iface;
|
2012-01-20 15:10:25 +01:00
|
|
|
ITravelLogClient ITravelLogClient_iface;
|
2013-04-26 15:47:54 +02:00
|
|
|
IObjectIdentity IObjectIdentity_iface;
|
2017-04-21 13:49:51 +02:00
|
|
|
IProvideMultipleClassInfo IProvideMultipleClassInfo_iface;
|
2006-12-06 18:21:16 +01:00
|
|
|
|
|
|
|
LONG ref;
|
|
|
|
|
2012-06-25 14:04:59 +02:00
|
|
|
HTMLInnerWindow *inner_window;
|
|
|
|
HTMLOuterWindow *outer_window;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct HTMLOuterWindow {
|
|
|
|
HTMLWindow base;
|
|
|
|
|
2009-10-26 23:05:37 +01:00
|
|
|
LONG task_magic;
|
2009-10-26 23:02:50 +01:00
|
|
|
|
2006-12-06 18:21:16 +01:00
|
|
|
nsIDOMWindow *nswindow;
|
2016-06-13 17:40:51 +02:00
|
|
|
mozIDOMWindowProxy *window_proxy;
|
2012-06-25 14:04:59 +02:00
|
|
|
HTMLOuterWindow *parent;
|
2009-11-01 19:19:19 +01:00
|
|
|
HTMLFrameBase *frame_element;
|
2013-09-27 15:22:30 +02:00
|
|
|
|
2019-03-11 14:25:21 +01:00
|
|
|
GeckoBrowser *browser;
|
|
|
|
struct list browser_entry;
|
|
|
|
|
2009-11-01 19:25:13 +01:00
|
|
|
READYSTATE readystate;
|
2013-09-27 15:22:30 +02:00
|
|
|
BOOL readystate_locked;
|
|
|
|
unsigned readystate_pending;
|
2006-12-08 12:38:19 +01:00
|
|
|
|
2012-07-12 14:25:43 +02:00
|
|
|
HTMLInnerWindow *pending_window;
|
2009-10-26 23:04:28 +01:00
|
|
|
IMoniker *mon;
|
2011-11-10 14:35:41 +01:00
|
|
|
IUri *uri;
|
2012-11-08 18:16:42 +01:00
|
|
|
IUri *uri_nofrag;
|
2011-11-10 14:35:11 +01:00
|
|
|
BSTR url;
|
2012-11-12 12:58:41 +01:00
|
|
|
DWORD load_flags;
|
2009-10-26 23:03:53 +01:00
|
|
|
|
2009-10-21 21:30:20 +02:00
|
|
|
struct list sibling_entry;
|
2016-09-12 13:44:31 +02:00
|
|
|
struct wine_rb_entry entry;
|
2009-09-16 22:05:24 +02:00
|
|
|
};
|
2006-12-06 18:21:16 +01:00
|
|
|
|
2012-06-25 14:04:59 +02:00
|
|
|
struct HTMLInnerWindow {
|
|
|
|
HTMLWindow base;
|
2015-05-14 13:24:44 +02:00
|
|
|
EventTarget event_target;
|
2012-06-25 14:05:17 +02:00
|
|
|
|
|
|
|
HTMLDocumentNode *doc;
|
2012-06-25 14:05:48 +02:00
|
|
|
|
2019-03-11 14:23:13 +01:00
|
|
|
struct list children;
|
2012-06-25 14:06:09 +02:00
|
|
|
struct list script_hosts;
|
|
|
|
|
2012-06-25 14:06:27 +02:00
|
|
|
IHTMLEventObj *event;
|
|
|
|
|
2012-06-26 12:32:27 +02:00
|
|
|
HTMLImageElementFactory *image_factory;
|
2012-06-25 14:05:58 +02:00
|
|
|
HTMLOptionElementFactory *option_factory;
|
2015-06-30 15:50:30 +02:00
|
|
|
HTMLXMLHttpRequestFactory *xhr_factory;
|
2012-06-26 12:32:40 +02:00
|
|
|
IHTMLScreen *screen;
|
2013-04-23 16:21:04 +02:00
|
|
|
OmHistory *history;
|
2012-08-20 16:19:41 +02:00
|
|
|
IHTMLStorage *session_storage;
|
2019-03-22 15:16:28 +01:00
|
|
|
IHTMLStorage *local_storage;
|
2012-06-25 14:05:58 +02:00
|
|
|
|
2018-06-14 17:35:14 +02:00
|
|
|
BOOL performance_initialized;
|
|
|
|
VARIANT performance;
|
|
|
|
|
2012-10-16 17:07:48 +02:00
|
|
|
unsigned parser_callback_cnt;
|
2012-10-16 17:08:25 +02:00
|
|
|
struct list script_queue;
|
2012-10-16 17:07:48 +02:00
|
|
|
|
2012-06-25 14:05:48 +02:00
|
|
|
global_prop_t *global_props;
|
|
|
|
DWORD global_prop_cnt;
|
|
|
|
DWORD global_prop_size;
|
2012-07-11 13:51:00 +02:00
|
|
|
|
2012-07-12 14:25:58 +02:00
|
|
|
LONG task_magic;
|
|
|
|
|
2012-08-14 11:29:17 +02:00
|
|
|
HTMLLocation *location;
|
|
|
|
|
2012-08-14 11:28:37 +02:00
|
|
|
IMoniker *mon;
|
2012-07-12 14:25:43 +02:00
|
|
|
nsChannelBSC *bscallback;
|
2012-07-11 13:51:00 +02:00
|
|
|
struct list bindings;
|
2012-06-25 14:04:59 +02:00
|
|
|
};
|
|
|
|
|
2006-06-30 23:44:04 +02:00
|
|
|
typedef enum {
|
|
|
|
UNKNOWN_USERMODE,
|
|
|
|
BROWSEMODE,
|
|
|
|
EDITMODE
|
|
|
|
} USERMODE;
|
|
|
|
|
2010-01-04 00:37:47 +01:00
|
|
|
typedef struct _cp_static_data_t {
|
2009-11-23 19:28:43 +01:00
|
|
|
tid_t tid;
|
2010-01-04 00:37:47 +01:00
|
|
|
void (*on_advise)(IUnknown*,struct _cp_static_data_t*);
|
2013-03-15 15:02:15 +01:00
|
|
|
BOOL pass_event_arg;
|
2009-11-23 19:28:43 +01:00
|
|
|
DWORD id_cnt;
|
|
|
|
DISPID *ids;
|
|
|
|
} cp_static_data_t;
|
|
|
|
|
2013-03-15 15:01:53 +01:00
|
|
|
typedef struct {
|
|
|
|
const IID *riid;
|
|
|
|
cp_static_data_t *desc;
|
|
|
|
} cpc_entry_t;
|
|
|
|
|
2009-11-23 19:28:17 +01:00
|
|
|
typedef struct ConnectionPointContainer {
|
2011-01-03 01:02:57 +01:00
|
|
|
IConnectionPointContainer IConnectionPointContainer_iface;
|
2007-06-29 02:49:27 +02:00
|
|
|
|
2013-03-15 15:01:53 +01:00
|
|
|
ConnectionPoint *cps;
|
|
|
|
const cpc_entry_t *cp_entries;
|
2007-06-29 02:49:27 +02:00
|
|
|
IUnknown *outer;
|
2009-11-23 19:28:17 +01:00
|
|
|
struct ConnectionPointContainer *forward_container;
|
2007-06-29 02:49:27 +02:00
|
|
|
} ConnectionPointContainer;
|
|
|
|
|
2013-03-15 15:01:53 +01:00
|
|
|
struct ConnectionPoint {
|
2011-01-03 01:02:57 +01:00
|
|
|
IConnectionPoint IConnectionPoint_iface;
|
2007-06-29 02:47:59 +02:00
|
|
|
|
2010-01-04 00:37:09 +01:00
|
|
|
ConnectionPointContainer *container;
|
2007-06-29 02:47:59 +02:00
|
|
|
|
|
|
|
union {
|
|
|
|
IUnknown *unk;
|
|
|
|
IDispatch *disp;
|
|
|
|
IPropertyNotifySink *propnotif;
|
|
|
|
} *sinks;
|
|
|
|
DWORD sinks_size;
|
|
|
|
|
2007-12-04 13:36:27 +01:00
|
|
|
const IID *iid;
|
2009-11-23 19:28:43 +01:00
|
|
|
cp_static_data_t *data;
|
2007-06-29 02:47:59 +02:00
|
|
|
};
|
|
|
|
|
2006-08-03 02:36:15 +02:00
|
|
|
struct HTMLDocument {
|
2010-12-16 14:59:51 +01:00
|
|
|
IHTMLDocument2 IHTMLDocument2_iface;
|
2010-12-22 10:39:41 +01:00
|
|
|
IHTMLDocument3 IHTMLDocument3_iface;
|
2010-12-22 10:41:19 +01:00
|
|
|
IHTMLDocument4 IHTMLDocument4_iface;
|
2010-12-22 10:43:37 +01:00
|
|
|
IHTMLDocument5 IHTMLDocument5_iface;
|
2010-12-22 10:45:14 +01:00
|
|
|
IHTMLDocument6 IHTMLDocument6_iface;
|
2014-03-13 14:13:11 +01:00
|
|
|
IHTMLDocument7 IHTMLDocument7_iface;
|
2016-06-15 17:44:00 +02:00
|
|
|
IDocumentSelector IDocumentSelector_iface;
|
2017-10-11 15:16:20 +02:00
|
|
|
IDocumentEvent IDocumentEvent_iface;
|
2010-12-22 10:48:41 +01:00
|
|
|
IPersistMoniker IPersistMoniker_iface;
|
|
|
|
IPersistFile IPersistFile_iface;
|
|
|
|
IPersistHistory IPersistHistory_iface;
|
2010-12-23 02:12:25 +01:00
|
|
|
IMonikerProp IMonikerProp_iface;
|
2010-12-23 02:16:00 +01:00
|
|
|
IOleObject IOleObject_iface;
|
2010-12-23 02:17:39 +01:00
|
|
|
IOleDocument IOleDocument_iface;
|
2010-12-23 02:20:05 +01:00
|
|
|
IOleInPlaceActiveObject IOleInPlaceActiveObject_iface;
|
2010-12-23 02:22:21 +01:00
|
|
|
IOleInPlaceObjectWindowless IOleInPlaceObjectWindowless_iface;
|
2010-12-27 01:43:10 +01:00
|
|
|
IServiceProvider IServiceProvider_iface;
|
2010-12-27 01:44:54 +01:00
|
|
|
IOleCommandTarget IOleCommandTarget_iface;
|
2010-12-27 01:46:09 +01:00
|
|
|
IOleControl IOleControl_iface;
|
2010-12-27 01:47:29 +01:00
|
|
|
IHlinkTarget IHlinkTarget_iface;
|
2010-12-22 10:48:41 +01:00
|
|
|
IPersistStreamInit IPersistStreamInit_iface;
|
2010-12-31 11:02:05 +01:00
|
|
|
IDispatchEx IDispatchEx_iface;
|
2010-12-27 01:48:10 +01:00
|
|
|
ISupportErrorInfo ISupportErrorInfo_iface;
|
2010-12-27 01:49:48 +01:00
|
|
|
IObjectWithSite IObjectWithSite_iface;
|
|
|
|
IOleContainer IOleContainer_iface;
|
2011-01-19 21:31:43 +01:00
|
|
|
IObjectSafety IObjectSafety_iface;
|
2017-04-21 13:49:40 +02:00
|
|
|
IProvideMultipleClassInfo IProvideMultipleClassInfo_iface;
|
2019-05-31 17:50:51 +02:00
|
|
|
IMarkupServices IMarkupServices_iface;
|
2019-05-31 17:51:03 +02:00
|
|
|
IMarkupContainer IMarkupContainer_iface;
|
2019-06-03 05:54:32 +02:00
|
|
|
IDisplayServices IDisplayServices_iface;
|
2005-04-12 13:57:51 +02:00
|
|
|
|
2017-02-02 16:09:52 +01:00
|
|
|
IUnknown *outer_unk;
|
2009-09-16 22:14:38 +02:00
|
|
|
IDispatchEx *dispex;
|
2009-09-16 22:14:21 +02:00
|
|
|
|
2009-09-16 22:07:58 +02:00
|
|
|
HTMLDocumentObj *doc_obj;
|
|
|
|
HTMLDocumentNode *doc_node;
|
|
|
|
|
2012-06-25 14:04:59 +02:00
|
|
|
HTMLOuterWindow *window;
|
2005-08-01 12:59:45 +02:00
|
|
|
|
2007-06-29 02:49:27 +02:00
|
|
|
ConnectionPointContainer cp_container;
|
2006-08-03 02:36:15 +02:00
|
|
|
};
|
2005-04-11 18:11:52 +02:00
|
|
|
|
2009-09-16 22:06:31 +02:00
|
|
|
static inline HRESULT htmldoc_query_interface(HTMLDocument *This, REFIID riid, void **ppv)
|
|
|
|
{
|
2017-02-02 16:09:52 +01:00
|
|
|
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
|
2009-09-16 22:06:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static inline ULONG htmldoc_addref(HTMLDocument *This)
|
|
|
|
{
|
2017-02-02 16:09:52 +01:00
|
|
|
return IUnknown_AddRef(This->outer_unk);
|
2009-09-16 22:06:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static inline ULONG htmldoc_release(HTMLDocument *This)
|
|
|
|
{
|
2017-02-02 16:09:52 +01:00
|
|
|
return IUnknown_Release(This->outer_unk);
|
2009-09-16 22:06:31 +02:00
|
|
|
}
|
|
|
|
|
2009-09-16 22:07:58 +02:00
|
|
|
struct HTMLDocumentObj {
|
2009-09-16 22:06:31 +02:00
|
|
|
HTMLDocument basedoc;
|
2009-09-16 22:14:38 +02:00
|
|
|
DispatchEx dispex;
|
2019-06-03 21:50:15 +02:00
|
|
|
IUnknown IUnknown_inner;
|
2011-01-03 01:10:03 +01:00
|
|
|
ICustomDoc ICustomDoc_iface;
|
2018-02-28 16:31:56 +01:00
|
|
|
IOleDocumentView IOleDocumentView_iface;
|
|
|
|
IViewObjectEx IViewObjectEx_iface;
|
2012-01-18 19:52:34 +01:00
|
|
|
ITargetContainer ITargetContainer_iface;
|
2009-09-16 22:06:31 +02:00
|
|
|
|
2012-05-30 15:49:15 +02:00
|
|
|
IWindowForBindingUI IWindowForBindingUI_iface;
|
|
|
|
|
2009-09-16 22:06:31 +02:00
|
|
|
LONG ref;
|
2009-09-16 22:09:17 +02:00
|
|
|
|
2019-03-11 14:22:24 +01:00
|
|
|
GeckoBrowser *nscontainer;
|
2009-09-16 22:10:03 +02:00
|
|
|
|
|
|
|
IOleClientSite *client;
|
|
|
|
IDocHostUIHandler *hostui;
|
2012-11-12 12:58:27 +01:00
|
|
|
IOleCommandTarget *client_cmdtrg;
|
2010-11-29 00:18:01 +01:00
|
|
|
BOOL custom_hostui;
|
2009-09-16 22:10:03 +02:00
|
|
|
IOleInPlaceSite *ipsite;
|
|
|
|
IOleInPlaceFrame *frame;
|
|
|
|
IOleInPlaceUIWindow *ip_window;
|
2010-02-15 16:03:25 +01:00
|
|
|
IAdviseSink *view_sink;
|
2011-03-11 11:14:18 +01:00
|
|
|
IDocObjectService *doc_object_service;
|
2013-04-15 17:40:43 +02:00
|
|
|
IUnknown *webbrowser;
|
2013-04-23 16:21:04 +02:00
|
|
|
ITravelLog *travel_log;
|
|
|
|
IUnknown *browser_service;
|
2017-11-22 16:15:38 +01:00
|
|
|
IOleAdviseHolder *advise_holder;
|
2009-09-16 22:10:30 +02:00
|
|
|
|
2009-09-16 22:11:05 +02:00
|
|
|
DOCHOSTUIINFO hostinfo;
|
|
|
|
|
2009-09-16 22:10:30 +02:00
|
|
|
IOleUndoManager *undomgr;
|
2015-10-13 08:41:30 +02:00
|
|
|
IHTMLEditServices *editsvcs;
|
2009-09-16 22:10:47 +02:00
|
|
|
|
|
|
|
HWND hwnd;
|
|
|
|
HWND tooltips_hwnd;
|
2009-09-16 22:11:26 +02:00
|
|
|
|
2017-02-03 18:58:54 +01:00
|
|
|
BOOL is_mhtml;
|
2009-12-07 14:54:33 +01:00
|
|
|
BOOL request_uiactivate;
|
2009-09-16 22:11:26 +02:00
|
|
|
BOOL in_place_active;
|
|
|
|
BOOL ui_active;
|
|
|
|
BOOL window_active;
|
2010-03-03 14:56:56 +01:00
|
|
|
BOOL hostui_setup;
|
2009-09-16 22:11:26 +02:00
|
|
|
BOOL container_locked;
|
|
|
|
BOOL focus;
|
2012-01-09 17:56:54 +01:00
|
|
|
BOOL has_popup;
|
2009-12-07 14:51:52 +01:00
|
|
|
INT download_state;
|
2009-09-16 22:12:06 +02:00
|
|
|
|
2009-09-16 22:12:56 +02:00
|
|
|
LPWSTR mime;
|
2009-09-16 22:12:25 +02:00
|
|
|
|
2009-09-16 22:13:13 +02:00
|
|
|
DWORD update;
|
2017-11-23 17:36:51 +01:00
|
|
|
LONG task_magic;
|
2009-09-16 22:07:58 +02:00
|
|
|
};
|
2009-09-16 22:06:31 +02:00
|
|
|
|
2011-04-22 14:07:18 +02:00
|
|
|
typedef struct nsWeakReference nsWeakReference;
|
|
|
|
|
2019-03-12 16:09:57 +01:00
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
SCRIPTMODE_GECKO,
|
|
|
|
SCRIPTMODE_ACTIVESCRIPT
|
|
|
|
} SCRIPTMODE;
|
|
|
|
|
2019-03-11 14:22:24 +01:00
|
|
|
struct GeckoBrowser {
|
2010-12-27 23:27:55 +01:00
|
|
|
nsIWebBrowserChrome nsIWebBrowserChrome_iface;
|
2010-12-27 23:30:53 +01:00
|
|
|
nsIContextMenuListener nsIContextMenuListener_iface;
|
|
|
|
nsIURIContentListener nsIURIContentListener_iface;
|
|
|
|
nsIEmbeddingSiteWindow nsIEmbeddingSiteWindow_iface;
|
|
|
|
nsITooltipListener nsITooltipListener_iface;
|
|
|
|
nsIInterfaceRequestor nsIInterfaceRequestor_iface;
|
|
|
|
nsISupportsWeakReference nsISupportsWeakReference_iface;
|
2005-08-25 21:24:58 +02:00
|
|
|
|
2005-08-01 12:59:45 +02:00
|
|
|
nsIWebBrowser *webbrowser;
|
|
|
|
nsIWebNavigation *navigation;
|
|
|
|
nsIBaseWindow *window;
|
2005-08-26 12:05:52 +02:00
|
|
|
nsIWebBrowserFocus *focus;
|
2005-08-01 12:59:45 +02:00
|
|
|
|
2019-03-11 14:26:39 +01:00
|
|
|
HTMLOuterWindow *content_window;
|
|
|
|
|
2007-09-12 11:41:36 +02:00
|
|
|
nsIEditor *editor;
|
2007-06-10 11:49:12 +02:00
|
|
|
nsIController *editor_controller;
|
|
|
|
|
2006-02-15 11:51:44 +01:00
|
|
|
LONG ref;
|
|
|
|
|
2011-04-22 14:07:18 +02:00
|
|
|
nsWeakReference *weak_reference;
|
|
|
|
|
2009-09-16 22:09:17 +02:00
|
|
|
HTMLDocumentObj *doc;
|
2005-08-25 21:24:58 +02:00
|
|
|
|
2006-08-16 16:34:32 +02:00
|
|
|
nsIURIContentListener *content_listener;
|
|
|
|
|
2005-08-01 12:59:45 +02:00
|
|
|
HWND hwnd;
|
2019-03-12 16:09:57 +01:00
|
|
|
SCRIPTMODE script_mode;
|
2019-03-12 16:10:24 +01:00
|
|
|
USERMODE usermode;
|
2019-03-11 14:24:26 +01:00
|
|
|
|
|
|
|
struct list document_nodes;
|
2019-03-11 14:25:21 +01:00
|
|
|
struct list outer_windows;
|
2005-08-01 12:59:45 +02:00
|
|
|
};
|
|
|
|
|
2007-10-04 02:09:48 +02:00
|
|
|
typedef struct {
|
2017-04-21 13:50:49 +02:00
|
|
|
const CLSID *clsid;
|
2007-10-04 02:10:36 +02:00
|
|
|
HRESULT (*qi)(HTMLDOMNode*,REFIID,void**);
|
2007-10-04 02:09:48 +02:00
|
|
|
void (*destructor)(HTMLDOMNode*);
|
2013-03-15 15:01:53 +01:00
|
|
|
const cpc_entry_t *cpc_entries;
|
2010-11-14 14:41:39 +01:00
|
|
|
HRESULT (*clone)(HTMLDOMNode*,nsIDOMNode*,HTMLDOMNode**);
|
2012-09-04 13:58:58 +02:00
|
|
|
HRESULT (*handle_event)(HTMLDOMNode*,DWORD,nsIDOMEvent*,BOOL*);
|
2011-08-25 15:23:35 +02:00
|
|
|
HRESULT (*get_attr_col)(HTMLDOMNode*,HTMLAttributeCollection**);
|
2017-10-16 22:31:42 +02:00
|
|
|
EventTarget *(*get_event_prop_target)(HTMLDOMNode*,int);
|
2008-10-09 22:26:41 +02:00
|
|
|
HRESULT (*put_disabled)(HTMLDOMNode*,VARIANT_BOOL);
|
|
|
|
HRESULT (*get_disabled)(HTMLDOMNode*,VARIANT_BOOL*);
|
2009-11-24 21:13:38 +01:00
|
|
|
HRESULT (*get_document)(HTMLDOMNode*,IDispatch**);
|
2009-11-30 17:58:59 +01:00
|
|
|
HRESULT (*get_readystate)(HTMLDOMNode*,BSTR*);
|
2009-12-01 21:04:17 +01:00
|
|
|
HRESULT (*get_dispid)(HTMLDOMNode*,BSTR,DWORD,DISPID*);
|
|
|
|
HRESULT (*invoke)(HTMLDOMNode*,DISPID,LCID,WORD,DISPPARAMS*,VARIANT*,EXCEPINFO*,IServiceProvider*);
|
2009-12-03 01:12:12 +01:00
|
|
|
HRESULT (*bind_to_tree)(HTMLDOMNode*);
|
2012-07-19 11:29:13 +02:00
|
|
|
void (*traverse)(HTMLDOMNode*,nsCycleCollectionTraversalCallback*);
|
|
|
|
void (*unlink)(HTMLDOMNode*);
|
2014-12-21 19:29:46 +01:00
|
|
|
BOOL (*is_text_edit)(HTMLDOMNode*);
|
2016-03-31 14:50:33 +02:00
|
|
|
BOOL (*is_settable)(HTMLDOMNode*,DISPID);
|
2007-10-04 02:09:48 +02:00
|
|
|
} NodeImplVtbl;
|
|
|
|
|
2006-03-05 20:38:30 +01:00
|
|
|
struct HTMLDOMNode {
|
2015-05-14 13:24:19 +02:00
|
|
|
EventTarget event_target;
|
2010-12-30 01:39:16 +01:00
|
|
|
IHTMLDOMNode IHTMLDOMNode_iface;
|
2010-12-30 01:40:18 +01:00
|
|
|
IHTMLDOMNode2 IHTMLDOMNode2_iface;
|
2017-07-19 20:32:40 +02:00
|
|
|
IHTMLDOMNode3 IHTMLDOMNode3_iface;
|
2007-10-04 02:09:48 +02:00
|
|
|
const NodeImplVtbl *vtbl;
|
2006-03-05 20:38:30 +01:00
|
|
|
|
2012-07-19 11:28:35 +02:00
|
|
|
nsCycleCollectingAutoRefCnt ccref;
|
2007-10-14 12:07:27 +02:00
|
|
|
|
2006-03-05 20:38:30 +01:00
|
|
|
nsIDOMNode *nsnode;
|
2009-09-16 22:13:31 +02:00
|
|
|
HTMLDocumentNode *doc;
|
2006-03-05 20:38:30 +01:00
|
|
|
};
|
|
|
|
|
2012-06-27 10:55:32 +02:00
|
|
|
static inline void node_addref(HTMLDOMNode *node)
|
|
|
|
{
|
|
|
|
IHTMLDOMNode_AddRef(&node->IHTMLDOMNode_iface);
|
|
|
|
}
|
|
|
|
|
2012-06-25 14:04:40 +02:00
|
|
|
static inline void node_release(HTMLDOMNode *node)
|
|
|
|
{
|
|
|
|
IHTMLDOMNode_Release(&node->IHTMLDOMNode_iface);
|
|
|
|
}
|
|
|
|
|
2006-03-05 20:39:59 +01:00
|
|
|
typedef struct {
|
2007-09-12 23:39:17 +02:00
|
|
|
HTMLDOMNode node;
|
2007-12-04 13:37:21 +01:00
|
|
|
ConnectionPointContainer cp_container;
|
2007-09-12 23:39:17 +02:00
|
|
|
|
2010-12-30 01:24:59 +01:00
|
|
|
IHTMLElement IHTMLElement_iface;
|
2010-12-30 01:27:28 +01:00
|
|
|
IHTMLElement2 IHTMLElement2_iface;
|
2010-12-30 01:30:37 +01:00
|
|
|
IHTMLElement3 IHTMLElement3_iface;
|
2011-02-24 13:03:42 +01:00
|
|
|
IHTMLElement4 IHTMLElement4_iface;
|
2016-07-01 11:20:11 +02:00
|
|
|
IHTMLElement6 IHTMLElement6_iface;
|
2016-01-11 14:01:24 +01:00
|
|
|
IHTMLUniqueName IHTMLUniqueName_iface;
|
2016-06-16 19:29:46 +02:00
|
|
|
IElementSelector IElementSelector_iface;
|
2017-07-25 17:57:08 +02:00
|
|
|
IElementTraversal IElementTraversal_iface;
|
2017-04-21 13:50:03 +02:00
|
|
|
IProvideMultipleClassInfo IProvideMultipleClassInfo_iface;
|
2006-03-05 20:39:59 +01:00
|
|
|
|
2018-02-12 23:29:04 +01:00
|
|
|
nsIDOMElement *dom_element; /* NULL for legacy comments represented as HTML elements */
|
|
|
|
nsIDOMHTMLElement *html_element; /* NULL for non-HTML elements (like SVG elements) */
|
2011-02-28 13:13:12 +01:00
|
|
|
HTMLStyle *style;
|
2012-07-25 14:47:13 +02:00
|
|
|
HTMLStyle *runtime_style;
|
2011-09-02 14:17:10 +02:00
|
|
|
HTMLAttributeCollection *attrs;
|
2012-03-16 12:17:50 +01:00
|
|
|
WCHAR *filter;
|
2016-01-11 14:01:57 +01:00
|
|
|
unsigned unique_id;
|
2006-03-05 20:39:59 +01:00
|
|
|
} HTMLElement;
|
|
|
|
|
2010-01-28 02:09:02 +01:00
|
|
|
#define HTMLELEMENT_TIDS \
|
|
|
|
IHTMLDOMNode_tid, \
|
|
|
|
IHTMLDOMNode2_tid, \
|
|
|
|
IHTMLElement_tid, \
|
|
|
|
IHTMLElement3_tid, \
|
2016-01-11 14:02:11 +01:00
|
|
|
IHTMLElement4_tid, \
|
2016-07-07 12:50:18 +02:00
|
|
|
IHTMLUniqueName_tid
|
2010-01-28 02:09:02 +01:00
|
|
|
|
2015-03-26 15:30:04 +01:00
|
|
|
extern cp_static_data_t HTMLElementEvents2_data DECLSPEC_HIDDEN;
|
2013-03-15 15:02:15 +01:00
|
|
|
#define HTMLELEMENT_CPC {&DIID_HTMLElementEvents2, &HTMLElementEvents2_data}
|
2015-03-26 15:30:04 +01:00
|
|
|
extern const cpc_entry_t HTMLElement_cpc[] DECLSPEC_HIDDEN;
|
2013-03-15 15:01:53 +01:00
|
|
|
|
2009-11-01 19:19:19 +01:00
|
|
|
struct HTMLFrameBase {
|
2009-11-01 19:17:17 +01:00
|
|
|
HTMLElement element;
|
|
|
|
|
2011-01-03 00:59:45 +01:00
|
|
|
IHTMLFrameBase IHTMLFrameBase_iface;
|
|
|
|
IHTMLFrameBase2 IHTMLFrameBase2_iface;
|
2009-11-01 19:18:38 +01:00
|
|
|
|
2012-06-25 14:04:59 +02:00
|
|
|
HTMLOuterWindow *content_window;
|
2009-12-07 23:28:04 +01:00
|
|
|
|
|
|
|
nsIDOMHTMLFrameElement *nsframe;
|
|
|
|
nsIDOMHTMLIFrameElement *nsiframe;
|
2009-11-01 19:19:19 +01:00
|
|
|
};
|
2009-11-01 19:17:17 +01:00
|
|
|
|
2009-10-27 21:09:25 +01:00
|
|
|
typedef struct nsDocumentEventListener nsDocumentEventListener;
|
|
|
|
|
2009-09-16 22:13:49 +02:00
|
|
|
struct HTMLDocumentNode {
|
|
|
|
HTMLDOMNode node;
|
|
|
|
HTMLDocument basedoc;
|
|
|
|
|
2011-01-03 01:01:38 +01:00
|
|
|
IInternetHostSecurityManager IInternetHostSecurityManager_iface;
|
2009-09-29 00:11:28 +02:00
|
|
|
|
2011-01-03 01:01:38 +01:00
|
|
|
nsIDocumentObserver nsIDocumentObserver_iface;
|
2009-10-21 21:28:09 +02:00
|
|
|
|
2009-09-16 22:13:49 +02:00
|
|
|
LONG ref;
|
|
|
|
|
2012-07-30 15:55:30 +02:00
|
|
|
HTMLInnerWindow *window;
|
|
|
|
|
2019-03-11 14:24:26 +01:00
|
|
|
GeckoBrowser *browser;
|
|
|
|
struct list browser_entry;
|
|
|
|
|
2017-08-22 17:54:54 +02:00
|
|
|
compat_mode_t document_mode;
|
|
|
|
BOOL document_mode_locked;
|
|
|
|
|
2009-10-21 21:27:42 +02:00
|
|
|
nsIDOMHTMLDocument *nsdoc;
|
2009-10-11 21:10:47 +02:00
|
|
|
BOOL content_ready;
|
2009-09-16 22:13:49 +02:00
|
|
|
|
2014-08-22 14:48:37 +02:00
|
|
|
IHTMLDOMImplementation *dom_implementation;
|
|
|
|
|
2009-11-20 00:00:41 +01:00
|
|
|
ICatInformation *catmgr;
|
2009-10-27 21:09:25 +01:00
|
|
|
nsDocumentEventListener *nsevent_listener;
|
2009-10-27 21:10:02 +01:00
|
|
|
BOOL *event_vector;
|
2009-10-01 00:05:36 +02:00
|
|
|
|
2011-05-31 12:19:04 +02:00
|
|
|
WCHAR **elem_vars;
|
|
|
|
unsigned elem_vars_size;
|
|
|
|
unsigned elem_vars_cnt;
|
|
|
|
|
2010-08-18 13:39:04 +02:00
|
|
|
BOOL skip_mutation_notif;
|
2009-10-21 21:28:09 +02:00
|
|
|
|
2014-12-30 15:22:08 +01:00
|
|
|
UINT charset;
|
|
|
|
|
2016-01-06 18:39:39 +01:00
|
|
|
unsigned unique_id;
|
|
|
|
|
2009-09-16 22:13:49 +02:00
|
|
|
struct list selection_list;
|
|
|
|
struct list range_list;
|
2010-12-09 16:27:51 +01:00
|
|
|
struct list plugin_hosts;
|
2009-09-16 22:13:49 +02:00
|
|
|
};
|
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
HRESULT HTMLDocument_Create(IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
|
2017-01-25 11:56:40 +01:00
|
|
|
HRESULT MHTMLDocument_Create(IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
HRESULT HTMLLoadOptions_Create(IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
|
2019-03-13 17:54:22 +01:00
|
|
|
HRESULT create_document_node(nsIDOMHTMLDocument*,GeckoBrowser*,HTMLInnerWindow*,
|
|
|
|
compat_mode_t,HTMLDocumentNode**) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
|
2019-03-11 14:24:59 +01:00
|
|
|
HRESULT create_outer_window(GeckoBrowser*,mozIDOMWindowProxy*,HTMLOuterWindow*,HTMLOuterWindow**) DECLSPEC_HIDDEN;
|
2012-07-12 14:25:43 +02:00
|
|
|
HRESULT update_window_doc(HTMLInnerWindow*) DECLSPEC_HIDDEN;
|
2016-06-13 17:40:51 +02:00
|
|
|
HTMLOuterWindow *mozwindow_to_window(const mozIDOMWindowProxy*) DECLSPEC_HIDDEN;
|
2012-06-25 14:04:59 +02:00
|
|
|
void get_top_window(HTMLOuterWindow*,HTMLOuterWindow**) DECLSPEC_HIDDEN;
|
2012-06-25 14:05:58 +02:00
|
|
|
HRESULT HTMLOptionElementFactory_Create(HTMLInnerWindow*,HTMLOptionElementFactory**) DECLSPEC_HIDDEN;
|
2012-06-26 12:32:27 +02:00
|
|
|
HRESULT HTMLImageElementFactory_Create(HTMLInnerWindow*,HTMLImageElementFactory**) DECLSPEC_HIDDEN;
|
2015-06-09 17:21:02 +02:00
|
|
|
HRESULT HTMLXMLHttpRequestFactory_Create(HTMLInnerWindow*,HTMLXMLHttpRequestFactory**) DECLSPEC_HIDDEN;
|
2012-08-14 11:29:17 +02:00
|
|
|
HRESULT HTMLLocation_Create(HTMLInnerWindow*,HTMLLocation**) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
IOmNavigator *OmNavigator_Create(void) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLScreen_Create(IHTMLScreen**) DECLSPEC_HIDDEN;
|
2018-06-14 17:35:14 +02:00
|
|
|
HRESULT create_performance(IHTMLPerformance**) DECLSPEC_HIDDEN;
|
2013-04-23 16:21:04 +02:00
|
|
|
HRESULT create_history(HTMLInnerWindow*,OmHistory**) DECLSPEC_HIDDEN;
|
2019-03-13 17:54:22 +01:00
|
|
|
HRESULT create_dom_implementation(HTMLDocumentNode*,IHTMLDOMImplementation**) DECLSPEC_HIDDEN;
|
|
|
|
void detach_dom_implementation(IHTMLDOMImplementation*) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
|
2012-08-20 16:19:41 +02:00
|
|
|
HRESULT create_storage(IHTMLStorage**) DECLSPEC_HIDDEN;
|
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
void HTMLDocument_Persist_Init(HTMLDocument*) DECLSPEC_HIDDEN;
|
|
|
|
void HTMLDocument_OleCmd_Init(HTMLDocument*) DECLSPEC_HIDDEN;
|
|
|
|
void HTMLDocument_OleObj_Init(HTMLDocument*) DECLSPEC_HIDDEN;
|
|
|
|
void HTMLDocument_Service_Init(HTMLDocument*) DECLSPEC_HIDDEN;
|
|
|
|
|
2018-02-28 16:31:56 +01:00
|
|
|
void HTMLDocument_View_Init(HTMLDocumentObj*) DECLSPEC_HIDDEN;
|
2012-01-18 19:52:34 +01:00
|
|
|
void TargetContainer_Init(HTMLDocumentObj*) DECLSPEC_HIDDEN;
|
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
void HTMLDocumentNode_SecMgr_Init(HTMLDocumentNode*) DECLSPEC_HIDDEN;
|
|
|
|
|
|
|
|
HRESULT HTMLCurrentStyle_Create(HTMLElement*,IHTMLCurrentStyle**) DECLSPEC_HIDDEN;
|
|
|
|
|
2013-03-15 15:01:53 +01:00
|
|
|
void ConnectionPointContainer_Init(ConnectionPointContainer*,IUnknown*,const cpc_entry_t*) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
void ConnectionPointContainer_Destroy(ConnectionPointContainer*) DECLSPEC_HIDDEN;
|
|
|
|
|
2019-03-11 14:22:24 +01:00
|
|
|
HRESULT create_gecko_browser(HTMLDocumentObj*,GeckoBrowser**) DECLSPEC_HIDDEN;
|
|
|
|
void detach_gecko_browser(GeckoBrowser*) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
|
2018-02-22 19:48:18 +01:00
|
|
|
compat_mode_t lock_document_mode(HTMLDocumentNode*) DECLSPEC_HIDDEN;
|
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
void init_mutation(nsIComponentManager*) DECLSPEC_HIDDEN;
|
|
|
|
void init_document_mutation(HTMLDocumentNode*) DECLSPEC_HIDDEN;
|
|
|
|
void release_document_mutation(HTMLDocumentNode*) DECLSPEC_HIDDEN;
|
2013-04-29 10:47:19 +02:00
|
|
|
JSContext *get_context_from_document(nsIDOMHTMLDocument*) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
|
|
|
|
void HTMLDocument_LockContainer(HTMLDocumentObj*,BOOL) DECLSPEC_HIDDEN;
|
|
|
|
void show_context_menu(HTMLDocumentObj*,DWORD,POINT*,IDispatch*) DECLSPEC_HIDDEN;
|
|
|
|
void notif_focus(HTMLDocumentObj*) DECLSPEC_HIDDEN;
|
|
|
|
|
|
|
|
void show_tooltip(HTMLDocumentObj*,DWORD,DWORD,LPCWSTR) DECLSPEC_HIDDEN;
|
|
|
|
void hide_tooltip(HTMLDocumentObj*) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT get_client_disp_property(IOleClientSite*,DISPID,VARIANT*) DECLSPEC_HIDDEN;
|
|
|
|
|
2014-12-30 15:22:08 +01:00
|
|
|
UINT get_document_charset(HTMLDocumentNode*) DECLSPEC_HIDDEN;
|
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
HRESULT ProtocolFactory_Create(REFCLSID,REFIID,void**) DECLSPEC_HIDDEN;
|
|
|
|
|
2012-03-08 12:18:04 +01:00
|
|
|
BOOL load_gecko(void) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
void close_gecko(void) DECLSPEC_HIDDEN;
|
|
|
|
void register_nsservice(nsIComponentRegistrar*,nsIServiceManager*) DECLSPEC_HIDDEN;
|
2016-01-30 16:50:52 +01:00
|
|
|
void init_nsio(nsIComponentManager*) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
void release_nsio(void) DECLSPEC_HIDDEN;
|
|
|
|
BOOL is_gecko_path(const char*) DECLSPEC_HIDDEN;
|
2019-03-11 14:22:24 +01:00
|
|
|
void set_viewer_zoom(GeckoBrowser*,float) DECLSPEC_HIDDEN;
|
|
|
|
float get_viewer_zoom(GeckoBrowser*) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
|
2015-01-23 14:38:16 +01:00
|
|
|
void init_node_cc(void) DECLSPEC_HIDDEN;
|
2012-07-19 11:28:35 +02:00
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
HRESULT nsuri_to_url(LPCWSTR,BOOL,BSTR*) DECLSPEC_HIDDEN;
|
|
|
|
|
2013-03-15 15:01:53 +01:00
|
|
|
void call_property_onchanged(ConnectionPointContainer*,DISPID) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
HRESULT call_set_active_object(IOleInPlaceUIWindow*,IOleInPlaceActiveObject*) DECLSPEC_HIDDEN;
|
|
|
|
|
|
|
|
void *nsalloc(size_t) __WINE_ALLOC_SIZE(1) DECLSPEC_HIDDEN;
|
|
|
|
void nsfree(void*) DECLSPEC_HIDDEN;
|
|
|
|
|
2015-06-30 15:51:21 +02:00
|
|
|
BOOL nsACString_Init(nsACString *str, const char *data) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
void nsACString_InitDepend(nsACString*,const char*) DECLSPEC_HIDDEN;
|
|
|
|
void nsACString_SetData(nsACString*,const char*) DECLSPEC_HIDDEN;
|
2013-01-23 18:44:42 +01:00
|
|
|
UINT32 nsACString_GetData(const nsACString*,const char**) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
void nsACString_Finish(nsACString*) DECLSPEC_HIDDEN;
|
|
|
|
|
|
|
|
BOOL nsAString_Init(nsAString*,const PRUnichar*) DECLSPEC_HIDDEN;
|
|
|
|
void nsAString_InitDepend(nsAString*,const PRUnichar*) DECLSPEC_HIDDEN;
|
2019-04-19 16:36:55 +02:00
|
|
|
void nsAString_SetData(nsAString*,const PRUnichar*) DECLSPEC_HIDDEN;
|
2013-01-23 18:44:42 +01:00
|
|
|
UINT32 nsAString_GetData(const nsAString*,const PRUnichar**) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
void nsAString_Finish(nsAString*) DECLSPEC_HIDDEN;
|
2014-11-06 11:42:45 +01:00
|
|
|
|
2019-03-26 17:27:32 +01:00
|
|
|
HRESULT map_nsresult(nsresult) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
HRESULT return_nsstr(nsresult,nsAString*,BSTR*) DECLSPEC_HIDDEN;
|
2017-07-20 18:11:22 +02:00
|
|
|
HRESULT return_nsstr_variant(nsresult nsres, nsAString *nsstr, VARIANT *p) DECLSPEC_HIDDEN;
|
2019-04-19 16:37:16 +02:00
|
|
|
HRESULT variant_to_nsstr(VARIANT*,BOOL,nsAString*) DECLSPEC_HIDDEN;
|
2018-02-20 13:25:44 +01:00
|
|
|
HRESULT return_nsform(nsresult,nsIDOMHTMLFormElement*,IHTMLFormElement**) DECLSPEC_HIDDEN;
|
2014-11-06 11:42:45 +01:00
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
nsICommandParams *create_nscommand_params(void) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT nsnode_to_nsstring(nsIDOMNode*,nsAString*) DECLSPEC_HIDDEN;
|
2019-03-12 16:11:41 +01:00
|
|
|
void setup_editor_controller(GeckoBrowser*) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
nsresult get_nsinterface(nsISupports*,REFIID,void**) DECLSPEC_HIDDEN;
|
2012-01-27 17:45:39 +01:00
|
|
|
nsIWritableVariant *create_nsvariant(void) DECLSPEC_HIDDEN;
|
2015-06-30 15:50:30 +02:00
|
|
|
nsIXMLHttpRequest *create_nsxhr(nsIDOMWindow *nswindow) DECLSPEC_HIDDEN;
|
2012-07-20 12:36:50 +02:00
|
|
|
nsresult create_nsfile(const PRUnichar*,nsIFile**) DECLSPEC_HIDDEN;
|
2013-09-19 16:12:51 +02:00
|
|
|
char *get_nscategory_entry(const char*,const char*) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
|
2012-07-12 14:25:43 +02:00
|
|
|
HRESULT create_pending_window(HTMLOuterWindow*,nsChannelBSC*) DECLSPEC_HIDDEN;
|
2012-07-12 14:26:13 +02:00
|
|
|
HRESULT start_binding(HTMLInnerWindow*,BSCallback*,IBindCtx*) DECLSPEC_HIDDEN;
|
2012-07-12 14:25:43 +02:00
|
|
|
HRESULT async_start_doc_binding(HTMLOuterWindow*,HTMLInnerWindow*) DECLSPEC_HIDDEN;
|
2012-07-11 13:51:00 +02:00
|
|
|
void abort_window_bindings(HTMLInnerWindow*) DECLSPEC_HIDDEN;
|
2011-07-23 12:50:49 +02:00
|
|
|
void set_download_state(HTMLDocumentObj*,int) DECLSPEC_HIDDEN;
|
2012-05-29 14:38:04 +02:00
|
|
|
void call_docview_84(HTMLDocumentObj*) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
|
2012-06-25 14:04:59 +02:00
|
|
|
void set_ready_state(HTMLOuterWindow*,READYSTATE) DECLSPEC_HIDDEN;
|
2014-10-09 16:08:15 +02:00
|
|
|
HRESULT get_readystate_string(READYSTATE,BSTR*) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
|
|
|
|
HRESULT HTMLSelectionObject_Create(HTMLDocumentNode*,nsISelection*,IHTMLSelectionObject**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLTxtRange_Create(HTMLDocumentNode*,nsIDOMRange*,IHTMLTxtRange**) DECLSPEC_HIDDEN;
|
|
|
|
IHTMLStyleSheet *HTMLStyleSheet_Create(nsIDOMStyleSheet*) DECLSPEC_HIDDEN;
|
|
|
|
IHTMLStyleSheetsCollection *HTMLStyleSheetsCollection_Create(nsIDOMStyleSheetList*) DECLSPEC_HIDDEN;
|
2006-02-13 13:26:00 +01:00
|
|
|
|
2019-03-11 14:22:44 +01:00
|
|
|
void detach_document_node(HTMLDocumentNode*) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
void detach_selection(HTMLDocumentNode*) DECLSPEC_HIDDEN;
|
|
|
|
void detach_ranges(HTMLDocumentNode*) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT get_node_text(HTMLDOMNode*,BSTR*) DECLSPEC_HIDDEN;
|
2011-10-03 13:28:05 +02:00
|
|
|
HRESULT replace_node_by_html(nsIDOMHTMLDocument*,nsIDOMNode*,const WCHAR*) DECLSPEC_HIDDEN;
|
2007-08-15 19:17:49 +02:00
|
|
|
|
2018-02-12 01:30:27 +01:00
|
|
|
HRESULT create_nselem(HTMLDocumentNode*,const WCHAR*,nsIDOMElement**) DECLSPEC_HIDDEN;
|
2012-10-11 14:07:44 +02:00
|
|
|
HRESULT create_element(HTMLDocumentNode*,const WCHAR*,HTMLElement**) DECLSPEC_HIDDEN;
|
2009-10-19 23:04:19 +02:00
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
HRESULT HTMLDOMTextNode_Create(HTMLDocumentNode*,nsIDOMNode*,HTMLDOMNode**) DECLSPEC_HIDDEN;
|
2008-04-24 18:25:34 +02:00
|
|
|
|
2014-03-26 08:06:39 +01:00
|
|
|
BOOL variant_to_nscolor(const VARIANT *v, nsAString *nsstr) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT nscolor_to_str(LPCWSTR color, BSTR *ret) DECLSPEC_HIDDEN;
|
|
|
|
|
2019-03-12 16:09:57 +01:00
|
|
|
static inline BOOL is_main_content_window(HTMLOuterWindow *window)
|
|
|
|
{
|
|
|
|
return window->browser && window == window->browser->content_window;
|
|
|
|
}
|
2014-03-26 08:06:39 +01:00
|
|
|
|
2011-08-25 15:23:35 +02:00
|
|
|
struct HTMLAttributeCollection {
|
|
|
|
DispatchEx dispex;
|
|
|
|
IHTMLAttributeCollection IHTMLAttributeCollection_iface;
|
|
|
|
IHTMLAttributeCollection2 IHTMLAttributeCollection2_iface;
|
|
|
|
IHTMLAttributeCollection3 IHTMLAttributeCollection3_iface;
|
|
|
|
|
|
|
|
LONG ref;
|
|
|
|
|
|
|
|
HTMLElement *elem;
|
|
|
|
struct list attrs;
|
|
|
|
};
|
|
|
|
|
2011-02-24 13:04:08 +01:00
|
|
|
typedef struct {
|
2011-02-24 13:04:18 +01:00
|
|
|
DispatchEx dispex;
|
2011-02-24 13:04:08 +01:00
|
|
|
IHTMLDOMAttribute IHTMLDOMAttribute_iface;
|
2015-03-09 15:35:55 +01:00
|
|
|
IHTMLDOMAttribute2 IHTMLDOMAttribute2_iface;
|
2011-02-24 13:04:08 +01:00
|
|
|
|
|
|
|
LONG ref;
|
2011-03-02 13:34:04 +01:00
|
|
|
|
2016-03-30 14:39:57 +02:00
|
|
|
/* value is valid only for detached attributes (when elem == NULL). */
|
2016-03-01 14:31:25 +01:00
|
|
|
VARIANT value;
|
2016-03-30 14:39:57 +02:00
|
|
|
/* name must be valid for detached attributes */
|
|
|
|
WCHAR *name;
|
2013-02-20 15:21:15 +01:00
|
|
|
|
2011-03-02 13:34:04 +01:00
|
|
|
HTMLElement *elem;
|
2013-02-20 15:21:15 +01:00
|
|
|
DISPID dispid;
|
2011-03-02 13:34:04 +01:00
|
|
|
struct list entry;
|
2011-02-24 13:04:08 +01:00
|
|
|
} HTMLDOMAttribute;
|
|
|
|
|
2016-03-30 14:39:57 +02:00
|
|
|
HTMLDOMAttribute *unsafe_impl_from_IHTMLDOMAttribute(IHTMLDOMAttribute*) DECLSPEC_HIDDEN;
|
|
|
|
|
2013-02-20 15:21:15 +01:00
|
|
|
HRESULT HTMLDOMAttribute_Create(const WCHAR*,HTMLElement*,DISPID,HTMLDOMAttribute**) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
|
|
|
|
HRESULT HTMLElement_Create(HTMLDocumentNode*,nsIDOMNode*,BOOL,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLCommentElement_Create(HTMLDocumentNode*,nsIDOMNode*,HTMLElement**) DECLSPEC_HIDDEN;
|
2018-02-12 01:29:41 +01:00
|
|
|
HRESULT HTMLAnchorElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLAreaElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLBodyElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLButtonElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLEmbedElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLFormElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLFrameElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLHeadElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLHtmlElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLIFrame_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLStyleElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLImgElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLInputElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLLabelElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLLinkElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLMetaElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLObjectElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLOptionElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLScriptElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLSelectElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLTable_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLTableCell_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLTableRow_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLTextAreaElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLTitleElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLGenericElement_Create(HTMLDocumentNode*,nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
|
2019-04-18 15:36:14 +02:00
|
|
|
HRESULT create_svg_element(HTMLDocumentNode*,nsIDOMSVGElement*,const WCHAR*,HTMLElement**) DECLSPEC_HIDDEN;
|
|
|
|
|
2017-09-21 23:25:17 +02:00
|
|
|
void HTMLDOMNode_Init(HTMLDocumentNode*,HTMLDOMNode*,nsIDOMNode*,dispex_static_data_t*) DECLSPEC_HIDDEN;
|
2018-02-12 01:29:41 +01:00
|
|
|
void HTMLElement_Init(HTMLElement*,HTMLDocumentNode*,nsIDOMElement*,dispex_static_data_t*) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
|
2017-09-21 23:25:27 +02:00
|
|
|
void EventTarget_Init(EventTarget*,IUnknown*,dispex_static_data_t*,compat_mode_t) DECLSPEC_HIDDEN;
|
2017-09-21 23:25:36 +02:00
|
|
|
HRESULT EventTarget_QI(EventTarget*,REFIID,void**) DECLSPEC_HIDDEN;
|
2017-11-01 16:44:02 +01:00
|
|
|
void EventTarget_init_dispex_info(dispex_data_t*,compat_mode_t) DECLSPEC_HIDDEN;
|
2017-09-21 23:25:27 +02:00
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
HRESULT HTMLDOMNode_QI(HTMLDOMNode*,REFIID,void**) DECLSPEC_HIDDEN;
|
|
|
|
void HTMLDOMNode_destructor(HTMLDOMNode*) DECLSPEC_HIDDEN;
|
2017-07-19 20:32:55 +02:00
|
|
|
void HTMLDOMNode_init_dispex_info(dispex_data_t*,compat_mode_t) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
|
|
|
|
HRESULT HTMLElement_QI(HTMLDOMNode*,REFIID,void**) DECLSPEC_HIDDEN;
|
|
|
|
void HTMLElement_destructor(HTMLDOMNode*) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT HTMLElement_clone(HTMLDOMNode*,nsIDOMNode*,HTMLDOMNode**) DECLSPEC_HIDDEN;
|
2011-08-25 15:23:35 +02:00
|
|
|
HRESULT HTMLElement_get_attr_col(HTMLDOMNode*,HTMLAttributeCollection**) DECLSPEC_HIDDEN;
|
2012-09-04 13:58:58 +02:00
|
|
|
HRESULT HTMLElement_handle_event(HTMLDOMNode*,DWORD,nsIDOMEvent*,BOOL*) DECLSPEC_HIDDEN;
|
2016-07-07 12:50:18 +02:00
|
|
|
void HTMLElement_init_dispex_info(dispex_data_t*,compat_mode_t) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
|
2018-02-19 14:49:07 +01:00
|
|
|
HRESULT get_node(nsIDOMNode*,BOOL,HTMLDOMNode**) DECLSPEC_HIDDEN;
|
2018-02-19 14:50:02 +01:00
|
|
|
HRESULT get_element(nsIDOMElement*,HTMLElement**) DECLSPEC_HIDDEN;
|
2018-02-19 14:48:44 +01:00
|
|
|
HRESULT get_document_node(nsIDOMDocument*,HTMLDocumentNode**) DECLSPEC_HIDDEN;
|
2012-01-27 17:45:39 +01:00
|
|
|
|
|
|
|
HTMLElement *unsafe_impl_from_IHTMLElement(IHTMLElement*) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
|
2012-06-25 14:05:48 +02:00
|
|
|
HRESULT search_window_props(HTMLInnerWindow*,BSTR,DWORD,DISPID*) DECLSPEC_HIDDEN;
|
2012-09-03 12:52:15 +02:00
|
|
|
HRESULT get_frame_by_name(HTMLOuterWindow*,const WCHAR*,BOOL,HTMLOuterWindow**) DECLSPEC_HIDDEN;
|
2012-10-02 15:46:20 +02:00
|
|
|
HRESULT get_doc_elem_by_id(HTMLDocumentNode*,const WCHAR*,HTMLElement**) DECLSPEC_HIDDEN;
|
2014-03-13 14:47:14 +01:00
|
|
|
HTMLOuterWindow *get_target_window(HTMLOuterWindow*,nsAString*,BOOL*) DECLSPEC_HIDDEN;
|
2015-08-07 09:21:48 +02:00
|
|
|
HRESULT handle_link_click_event(HTMLElement*,nsAString*,nsAString*,nsIDOMEvent*,BOOL*) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
|
2011-12-05 17:29:43 +01:00
|
|
|
HRESULT wrap_iface(IUnknown*,IUnknown*,IUnknown**) DECLSPEC_HIDDEN;
|
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
IHTMLElementCollection *create_all_collection(HTMLDOMNode*,BOOL) DECLSPEC_HIDDEN;
|
2018-02-20 13:25:06 +01:00
|
|
|
IHTMLElementCollection *create_collection_from_nodelist(nsIDOMNodeList*,compat_mode_t) DECLSPEC_HIDDEN;
|
|
|
|
IHTMLElementCollection *create_collection_from_htmlcol(nsIDOMHTMLCollection*,compat_mode_t) DECLSPEC_HIDDEN;
|
2018-02-19 14:49:25 +01:00
|
|
|
IHTMLDOMChildrenCollection *create_child_collection(nsIDOMNodeList*) DECLSPEC_HIDDEN;
|
2015-05-04 19:14:13 +02:00
|
|
|
|
2016-03-30 14:38:44 +02:00
|
|
|
HRESULT attr_value_to_string(VARIANT*) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT get_elem_attr_value_by_dispid(HTMLElement*,DISPID,VARIANT*) DECLSPEC_HIDDEN;
|
2014-09-16 20:20:02 +02:00
|
|
|
HRESULT get_elem_source_index(HTMLElement*,LONG*) DECLSPEC_HIDDEN;
|
2007-10-04 02:13:01 +02:00
|
|
|
|
2018-02-12 01:28:00 +01:00
|
|
|
nsresult get_elem_attr_value(nsIDOMElement*,const WCHAR*,nsAString*,const PRUnichar**) DECLSPEC_HIDDEN;
|
2014-07-23 15:29:32 +02:00
|
|
|
HRESULT elem_string_attr_getter(HTMLElement*,const WCHAR*,BOOL,BSTR*) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT elem_string_attr_setter(HTMLElement*,const WCHAR*,const WCHAR*) DECLSPEC_HIDDEN;
|
2014-05-27 11:28:56 +02:00
|
|
|
|
2016-01-11 14:01:57 +01:00
|
|
|
HRESULT elem_unique_id(unsigned id, BSTR *p) DECLSPEC_HIDDEN;
|
|
|
|
|
2007-06-10 11:49:12 +02:00
|
|
|
/* commands */
|
2007-06-10 11:26:47 +02:00
|
|
|
typedef struct {
|
|
|
|
DWORD id;
|
2019-03-12 16:11:33 +01:00
|
|
|
HRESULT (*query)(HTMLDocumentNode*,OLECMD*);
|
|
|
|
HRESULT (*exec)(HTMLDocumentNode*,DWORD,VARIANT*,VARIANT*);
|
2007-06-10 11:26:47 +02:00
|
|
|
} cmdtable_t;
|
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
extern const cmdtable_t editmode_cmds[] DECLSPEC_HIDDEN;
|
2007-06-10 11:28:52 +02:00
|
|
|
|
2019-03-12 16:10:56 +01:00
|
|
|
void do_ns_command(HTMLDocumentNode*,const char*,nsICommandParams*) DECLSPEC_HIDDEN;
|
2007-09-26 20:45:31 +02:00
|
|
|
|
2007-06-10 11:49:12 +02:00
|
|
|
/* timer */
|
2007-06-10 11:38:51 +02:00
|
|
|
#define UPDATE_UI 0x0001
|
|
|
|
#define UPDATE_TITLE 0x0002
|
|
|
|
|
2017-11-22 16:15:48 +01:00
|
|
|
void update_doc(HTMLDocumentObj*,DWORD) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
void update_title(HTMLDocumentObj*) DECLSPEC_HIDDEN;
|
2013-09-19 16:13:06 +02:00
|
|
|
void set_document_navigation(HTMLDocumentObj*,BOOL) DECLSPEC_HIDDEN;
|
2007-06-10 11:38:51 +02:00
|
|
|
|
2012-01-05 18:30:27 +01:00
|
|
|
HRESULT do_query_service(IUnknown*,REFGUID,REFIID,void**) DECLSPEC_HIDDEN;
|
|
|
|
|
2006-11-24 10:17:54 +01:00
|
|
|
/* editor */
|
2013-04-23 12:57:59 +02:00
|
|
|
HRESULT setup_edit_mode(HTMLDocumentObj*) DECLSPEC_HIDDEN;
|
2019-03-12 16:11:58 +01:00
|
|
|
void init_editor(HTMLDocumentNode*) DECLSPEC_HIDDEN;
|
2019-03-12 16:10:39 +01:00
|
|
|
void handle_edit_event(HTMLDocumentNode*,nsIDOMEvent*) DECLSPEC_HIDDEN;
|
2019-03-12 16:11:33 +01:00
|
|
|
HRESULT editor_exec_copy(HTMLDocumentNode*,DWORD,VARIANT*,VARIANT*) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT editor_exec_cut(HTMLDocumentNode*,DWORD,VARIANT*,VARIANT*) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT editor_exec_paste(HTMLDocumentNode*,DWORD,VARIANT*,VARIANT*) DECLSPEC_HIDDEN;
|
2019-03-12 16:11:10 +01:00
|
|
|
HRESULT browser_is_dirty(GeckoBrowser*) DECLSPEC_HIDDEN;
|
2019-03-12 16:10:24 +01:00
|
|
|
void set_dirty(GeckoBrowser*,VARIANT_BOOL) DECLSPEC_HIDDEN;
|
2006-11-30 23:32:05 +01:00
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
extern DWORD mshtml_tls DECLSPEC_HIDDEN;
|
2006-09-24 23:10:38 +02:00
|
|
|
|
2009-10-26 23:05:10 +01:00
|
|
|
typedef struct task_t task_t;
|
|
|
|
typedef void (*task_proc_t)(task_t*);
|
2007-02-10 17:36:13 +01:00
|
|
|
|
2009-10-26 23:05:10 +01:00
|
|
|
struct task_t {
|
|
|
|
LONG target_magic;
|
|
|
|
task_proc_t proc;
|
2011-08-03 12:34:34 +02:00
|
|
|
task_proc_t destr;
|
2014-12-24 13:09:59 +01:00
|
|
|
struct list entry;
|
2009-10-26 23:05:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
task_t header;
|
|
|
|
HTMLDocumentObj *doc;
|
|
|
|
} docobj_task_t;
|
2006-09-24 23:12:06 +02:00
|
|
|
|
2006-09-24 23:10:38 +02:00
|
|
|
typedef struct {
|
|
|
|
HWND thread_hwnd;
|
2014-12-24 13:09:59 +01:00
|
|
|
struct list task_list;
|
2008-04-21 18:21:19 +02:00
|
|
|
struct list timer_list;
|
2006-09-24 23:10:38 +02:00
|
|
|
} thread_data_t;
|
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
thread_data_t *get_thread_data(BOOL) DECLSPEC_HIDDEN;
|
|
|
|
HWND get_thread_hwnd(void) DECLSPEC_HIDDEN;
|
2009-10-26 23:05:10 +01:00
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
LONG get_task_target_magic(void) DECLSPEC_HIDDEN;
|
2012-10-19 11:56:59 +02:00
|
|
|
HRESULT push_task(task_t*,task_proc_t,task_proc_t,LONG) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
void remove_target_tasks(LONG) DECLSPEC_HIDDEN;
|
2009-10-26 23:05:10 +01:00
|
|
|
|
2016-05-02 15:39:28 +02:00
|
|
|
HRESULT set_task_timer(HTMLInnerWindow*,LONG,BOOL,IDispatch*,LONG*) DECLSPEC_HIDDEN;
|
2016-05-02 15:39:34 +02:00
|
|
|
HRESULT clear_task_timer(HTMLInnerWindow*,DWORD) DECLSPEC_HIDDEN;
|
2006-09-24 23:10:38 +02:00
|
|
|
|
2018-10-09 12:22:16 +02:00
|
|
|
BOOL parse_compat_version(const WCHAR*,compat_mode_t*) DECLSPEC_HIDDEN;
|
|
|
|
|
2014-04-28 11:06:08 +02:00
|
|
|
const char *debugstr_mshtml_guid(const GUID*) DECLSPEC_HIDDEN;
|
2008-09-30 17:40:19 +02:00
|
|
|
|
2005-06-27 11:50:56 +02:00
|
|
|
DEFINE_GUID(CLSID_AboutProtocol, 0x3050F406, 0x98B5, 0x11CF, 0xBB,0x82, 0x00,0xAA,0x00,0xBD,0xCE,0x0B);
|
|
|
|
DEFINE_GUID(CLSID_JSProtocol, 0x3050F3B2, 0x98B5, 0x11CF, 0xBB,0x82, 0x00,0xAA,0x00,0xBD,0xCE,0x0B);
|
|
|
|
DEFINE_GUID(CLSID_MailtoProtocol, 0x3050F3DA, 0x98B5, 0x11CF, 0xBB,0x82, 0x00,0xAA,0x00,0xBD,0xCE,0x0B);
|
|
|
|
DEFINE_GUID(CLSID_ResProtocol, 0x3050F3BC, 0x98B5, 0x11CF, 0xBB,0x82, 0x00,0xAA,0x00,0xBD,0xCE,0x0B);
|
|
|
|
DEFINE_GUID(CLSID_SysimageProtocol, 0x76E67A63, 0x06E9, 0x11D2, 0xA8,0x40, 0x00,0x60,0x08,0x05,0x93,0x82);
|
|
|
|
|
2006-05-24 17:58:27 +02:00
|
|
|
DEFINE_GUID(CLSID_CMarkup,0x3050f4fb,0x98b5,0x11cf,0xbb,0x82,0x00,0xaa,0x00,0xbd,0xce,0x0b);
|
|
|
|
|
2011-03-11 11:14:18 +01:00
|
|
|
DEFINE_OLEGUID(CGID_DocHostCmdPriv, 0x000214D4L, 0, 0);
|
|
|
|
|
2012-08-13 11:03:27 +02:00
|
|
|
DEFINE_GUID(CLSID_JScript, 0xf414c260,0x6ac0,0x11cf, 0xb6,0xd1,0x00,0xaa,0x00,0xbb,0xbb,0x58);
|
|
|
|
DEFINE_GUID(CLSID_VBScript, 0xb54f3741,0x5b07,0x11cf, 0xa4,0xb0,0x00,0xaa,0x00,0x4a,0x55,0xe8);
|
|
|
|
|
2015-01-20 16:24:27 +01:00
|
|
|
DEFINE_GUID(IID_UndocumentedScriptIface,0x719c3050,0xf9d3,0x11cf,0xa4,0x93,0x00,0x40,0x05,0x23,0xa8,0xa0);
|
|
|
|
DEFINE_GUID(IID_IDispatchJS,0x719c3050,0xf9d3,0x11cf,0xa4,0x93,0x00,0x40,0x05,0x23,0xa8,0xa6);
|
|
|
|
|
2006-07-16 23:21:36 +02:00
|
|
|
/* memory allocation functions */
|
|
|
|
|
2009-09-06 19:05:40 +02:00
|
|
|
static inline void * __WINE_ALLOC_SIZE(2) heap_realloc_zero(void *mem, size_t len)
|
|
|
|
{
|
|
|
|
return HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, mem, len);
|
|
|
|
}
|
|
|
|
|
2007-12-31 01:32:48 +01:00
|
|
|
static inline LPWSTR heap_strdupW(LPCWSTR str)
|
|
|
|
{
|
|
|
|
LPWSTR ret = NULL;
|
|
|
|
|
|
|
|
if(str) {
|
|
|
|
DWORD size;
|
|
|
|
|
|
|
|
size = (strlenW(str)+1)*sizeof(WCHAR);
|
|
|
|
ret = heap_alloc(size);
|
2012-11-17 22:52:32 +01:00
|
|
|
if(ret)
|
|
|
|
memcpy(ret, str, size);
|
2007-12-31 01:32:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2010-08-03 21:38:11 +02:00
|
|
|
static inline LPWSTR heap_strndupW(LPCWSTR str, unsigned len)
|
|
|
|
{
|
|
|
|
LPWSTR ret = NULL;
|
|
|
|
|
|
|
|
if(str) {
|
|
|
|
ret = heap_alloc((len+1)*sizeof(WCHAR));
|
2012-11-17 22:52:32 +01:00
|
|
|
if(ret)
|
|
|
|
{
|
|
|
|
memcpy(ret, str, len*sizeof(WCHAR));
|
|
|
|
ret[len] = 0;
|
|
|
|
}
|
2010-08-03 21:38:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2008-03-26 15:24:03 +01:00
|
|
|
static inline char *heap_strdupA(const char *str)
|
|
|
|
{
|
|
|
|
char *ret = NULL;
|
|
|
|
|
|
|
|
if(str) {
|
|
|
|
DWORD size;
|
|
|
|
|
|
|
|
size = strlen(str)+1;
|
|
|
|
ret = heap_alloc(size);
|
2012-11-17 22:52:32 +01:00
|
|
|
if(ret)
|
|
|
|
memcpy(ret, str, size);
|
2008-03-26 15:24:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2008-02-01 15:31:19 +01:00
|
|
|
static inline WCHAR *heap_strdupAtoW(const char *str)
|
|
|
|
{
|
|
|
|
LPWSTR ret = NULL;
|
|
|
|
|
|
|
|
if(str) {
|
|
|
|
DWORD len;
|
|
|
|
|
|
|
|
len = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0);
|
|
|
|
ret = heap_alloc(len*sizeof(WCHAR));
|
2012-11-17 22:52:32 +01:00
|
|
|
if(ret)
|
|
|
|
MultiByteToWideChar(CP_ACP, 0, str, -1, ret, len);
|
2008-02-01 15:31:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
2007-12-31 01:32:48 +01:00
|
|
|
|
2008-03-26 15:24:03 +01:00
|
|
|
static inline char *heap_strdupWtoA(LPCWSTR str)
|
|
|
|
{
|
|
|
|
char *ret = NULL;
|
|
|
|
|
|
|
|
if(str) {
|
|
|
|
DWORD size = WideCharToMultiByte(CP_ACP, 0, str, -1, NULL, 0, NULL, NULL);
|
|
|
|
ret = heap_alloc(size);
|
2012-11-17 22:52:32 +01:00
|
|
|
if(ret)
|
|
|
|
WideCharToMultiByte(CP_ACP, 0, str, -1, ret, size, NULL, NULL);
|
2008-03-26 15:24:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2012-11-21 15:06:34 +01:00
|
|
|
static inline WCHAR *heap_strdupUtoW(const char *str)
|
|
|
|
{
|
|
|
|
WCHAR *ret = NULL;
|
|
|
|
|
|
|
|
if(str) {
|
|
|
|
size_t len;
|
|
|
|
|
|
|
|
len = MultiByteToWideChar(CP_UTF8, 0, str, -1, NULL, 0);
|
|
|
|
ret = heap_alloc(len*sizeof(WCHAR));
|
|
|
|
if(ret)
|
|
|
|
MultiByteToWideChar(CP_UTF8, 0, str, -1, ret, len);
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline char *heap_strdupWtoU(const WCHAR *str)
|
|
|
|
{
|
|
|
|
char *ret = NULL;
|
|
|
|
|
|
|
|
if(str) {
|
|
|
|
size_t size = WideCharToMultiByte(CP_UTF8, 0, str, -1, NULL, 0, NULL, NULL);
|
|
|
|
ret = heap_alloc(size);
|
|
|
|
if(ret)
|
|
|
|
WideCharToMultiByte(CP_UTF8, 0, str, -1, ret, size, NULL, NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2015-07-22 17:34:12 +02:00
|
|
|
static inline char *heap_strndupWtoU(LPCWSTR str, unsigned len)
|
|
|
|
{
|
|
|
|
char *ret = NULL;
|
|
|
|
DWORD size;
|
|
|
|
|
|
|
|
if(str && len) {
|
|
|
|
size = WideCharToMultiByte(CP_UTF8, 0, str, len, NULL, 0, NULL, NULL);
|
|
|
|
ret = heap_alloc(size + 1);
|
|
|
|
if(ret) {
|
|
|
|
WideCharToMultiByte(CP_UTF8, 0, str, len, ret, size, NULL, NULL);
|
|
|
|
ret[size] = '\0';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2017-11-02 16:47:45 +01:00
|
|
|
static inline VARIANT_BOOL variant_bool(BOOL b)
|
|
|
|
{
|
|
|
|
return b ? VARIANT_TRUE : VARIANT_FALSE;
|
|
|
|
}
|
|
|
|
|
2017-12-04 18:01:23 +01:00
|
|
|
#ifdef __i386__
|
|
|
|
extern void *call_thiscall_func;
|
|
|
|
#endif
|
|
|
|
|
2018-10-09 12:22:16 +02:00
|
|
|
compat_mode_t get_max_compat_mode(IUri*) DECLSPEC_HIDDEN;
|
2014-10-11 17:35:19 +02:00
|
|
|
UINT cp_from_charset_string(BSTR) DECLSPEC_HIDDEN;
|
2016-01-12 14:42:46 +01:00
|
|
|
BSTR charset_string_from_cp(UINT) DECLSPEC_HIDDEN;
|
2011-05-01 20:27:06 +02:00
|
|
|
HINSTANCE get_shdoclc(void) DECLSPEC_HIDDEN;
|
|
|
|
void set_statustext(HTMLDocumentObj*,INT,LPCWSTR) DECLSPEC_HIDDEN;
|
2019-03-11 14:24:09 +01:00
|
|
|
IInternetSecurityManager *get_security_manager(void) DECLSPEC_HIDDEN;
|
2006-11-09 23:54:09 +01:00
|
|
|
|
2011-05-01 20:27:06 +02:00
|
|
|
extern HINSTANCE hInst DECLSPEC_HIDDEN;
|