From 3fa3351c90332cd51e67bf4624c57bd0ba78e4a6 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Thu, 16 Jun 2016 07:45:23 -0700 Subject: Cleanup XML parser code. This Cl removes the CFDE_XMLSAXParser and CFDE_XMLDOMParser along with the ::LoadXML() method which would create them, it was never called. It also cleans up the use of virtual in the various XML classes. Review-Url: https://codereview.chromium.org/2067253002 --- xfa/fde/xml/fde_xml.h | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'xfa/fde/xml/fde_xml.h') diff --git a/xfa/fde/xml/fde_xml.h b/xfa/fde/xml/fde_xml.h index b4601a9310..e9906beced 100644 --- a/xfa/fde/xml/fde_xml.h +++ b/xfa/fde/xml/fde_xml.h @@ -7,8 +7,7 @@ #ifndef XFA_FDE_XML_FDE_XML_H_ #define XFA_FDE_XML_FDE_XML_H_ -#include "xfa/fgas/crt/fgas_stream.h" -#include "xfa/fgas/crt/fgas_utils.h" +#include "core/fxcrt/include/fx_system.h" enum class FDE_XmlSyntaxResult { None, @@ -40,25 +39,7 @@ struct FDE_XMLNODE { int32_t iNodeNum; FDE_XMLNODETYPE eNodeType; }; -typedef CFX_StackTemplate CFDE_XMLNodeStack; FX_BOOL FDE_IsXMLValidChar(FX_WCHAR ch); -struct FDE_XMLREADERHANDLER { - void* pData; - void (*OnTagEnter)(FDE_XMLREADERHANDLER* pThis, - FDE_XMLNODETYPE eType, - const CFX_WideString& wsTagName); - void (*OnTagBreak)(FDE_XMLREADERHANDLER* pThis, - const CFX_WideString& wsTagName); - void (*OnTagClose)(FDE_XMLREADERHANDLER* pThis, - const CFX_WideString& wsTagName); - void (*OnAttribute)(FDE_XMLREADERHANDLER* pThis, - const CFX_WideString& wsName, - const CFX_WideString& wsValue); - void (*OnData)(FDE_XMLREADERHANDLER* pThis, - FDE_XMLNODETYPE eType, - const CFX_WideString& wsValue); -}; - #endif // XFA_FDE_XML_FDE_XML_H_ -- cgit v1.2.3