summaryrefslogtreecommitdiff
path: root/xfa/fde/xml/fde_xml.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-06-16 07:45:23 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-16 07:45:23 -0700
commit3fa3351c90332cd51e67bf4624c57bd0ba78e4a6 (patch)
treeccf2f14011ce44862e0e3b9ad9fb85ceebab9a05 /xfa/fde/xml/fde_xml.h
parent5377267504015d056bc0860ffadc23289b21039d (diff)
downloadpdfium-3fa3351c90332cd51e67bf4624c57bd0ba78e4a6.tar.xz
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
Diffstat (limited to 'xfa/fde/xml/fde_xml.h')
-rw-r--r--xfa/fde/xml/fde_xml.h21
1 files changed, 1 insertions, 20 deletions
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<FDE_XMLNODE> 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_