Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(724)

Unified Diff: xfa/src/fdp/include/fde_xml.h

Issue 1726803002: Remove more _CAPS names (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/src/fdp/include/fde_rdv.h ('k') | xfa/src/fdp/src/css/fde_csscache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/src/fdp/include/fde_xml.h
diff --git a/xfa/src/fdp/include/fde_xml.h b/xfa/src/fdp/include/fde_xml.h
index a83e27e66c822df7df8be61681a027c232ccd2d7..cc0817927018ee22657f72f5d9657e389c0db01a 100644
--- a/xfa/src/fdp/include/fde_xml.h
+++ b/xfa/src/fdp/include/fde_xml.h
@@ -26,9 +26,6 @@ class IFDE_XMLDoc;
class IFDE_XMLParser;
class IFDE_XMLSyntaxParser;
-#ifdef __cplusplus
-extern "C" {
-#endif
enum FDE_XMLNODETYPE {
FDE_XMLNODE_Unknown = 0,
FDE_XMLNODE_Instruction,
@@ -36,18 +33,16 @@ enum FDE_XMLNODETYPE {
FDE_XMLNODE_Text,
FDE_XMLNODE_CharData,
};
-typedef struct _FDE_XMLNODE {
+
+struct FDE_XMLNODE {
int32_t iNodeNum;
FDE_XMLNODETYPE eNodeType;
-} FDE_XMLNODE, *FDE_LPXMLNODE;
-typedef FDE_XMLNODE const* FDE_LPCXMLNODE;
+};
typedef CFX_StackTemplate<FDE_XMLNODE> CFDE_XMLNodeStack;
+
FX_BOOL FDE_IsXMLValidChar(FX_WCHAR ch);
FX_BOOL FDE_IsXMLWhiteSpace(FX_WCHAR ch);
FX_BOOL FDE_IsXMLNameChar(FX_WCHAR ch, FX_BOOL bFirstChar);
-#ifdef __cplusplus
-}
-#endif
class IFDE_XMLNode {
public:
@@ -157,23 +152,24 @@ class IFDE_XMLCharData : public IFDE_XMLDeclaration {
virtual void GetCharData(CFX_WideString& wsCData) const = 0;
virtual void SetCharData(const CFX_WideString& wsCData) = 0;
};
-typedef struct _FDE_XMLREADERHANDLER {
- void* pData;
- void (*OnTagEnter)(_FDE_XMLREADERHANDLER* pThis,
+struct FDE_XMLREADERHANDLER {
+ void* pData;
+ void (*OnTagEnter)(FDE_XMLREADERHANDLER* pThis,
FDE_XMLNODETYPE eType,
const CFX_WideString& wsTagName);
- void (*OnTagBreak)(_FDE_XMLREADERHANDLER* pThis,
+ void (*OnTagBreak)(FDE_XMLREADERHANDLER* pThis,
const CFX_WideString& wsTagName);
- void (*OnTagClose)(_FDE_XMLREADERHANDLER* pThis,
+ void (*OnTagClose)(FDE_XMLREADERHANDLER* pThis,
const CFX_WideString& wsTagName);
- void (*OnAttribute)(_FDE_XMLREADERHANDLER* pThis,
+ void (*OnAttribute)(FDE_XMLREADERHANDLER* pThis,
const CFX_WideString& wsName,
const CFX_WideString& wsValue);
- void (*OnData)(_FDE_XMLREADERHANDLER* pThis,
+ void (*OnData)(FDE_XMLREADERHANDLER* pThis,
FDE_XMLNODETYPE eType,
const CFX_WideString& wsValue);
-} FDE_XMLREADERHANDLER, *FDE_LPXMLREADERHANDLER;
+};
+
class IFDE_XMLDoc {
public:
static IFDE_XMLDoc* Create();
@@ -182,7 +178,7 @@ class IFDE_XMLDoc {
virtual FX_BOOL LoadXML(IFX_Stream* pXMLStream,
int32_t iXMLPlaneSize = 8192,
int32_t iTextDataSize = 256,
- FDE_LPXMLREADERHANDLER pHandler = NULL) = 0;
+ FDE_XMLREADERHANDLER* pHandler = NULL) = 0;
virtual FX_BOOL LoadXML(IFDE_XMLParser* pXMLParser) = 0;
virtual int32_t DoLoad(IFX_Pause* pPause = NULL) = 0;
virtual void CloseXML() = 0;
« no previous file with comments | « xfa/src/fdp/include/fde_rdv.h ('k') | xfa/src/fdp/src/css/fde_csscache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698