| OLD | NEW | 
|    1 // Copyright 2014 PDFium Authors. All rights reserved. |    1 // Copyright 2014 PDFium Authors. All rights reserved. | 
|    2 // Use of this source code is governed by a BSD-style license that can be |    2 // Use of this source code is governed by a BSD-style license that can be | 
|    3 // found in the LICENSE file. |    3 // found in the LICENSE file. | 
|    4  |    4  | 
|    5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |    5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 
|    6  |    6  | 
|    7 #ifndef XFA_FXFA_PARSER_XFA_OBJECT_H_ |    7 #ifndef XFA_FXFA_PARSER_XFA_OBJECT_H_ | 
|    8 #define XFA_FXFA_PARSER_XFA_OBJECT_H_ |    8 #define XFA_FXFA_PARSER_XFA_OBJECT_H_ | 
|    9  |    9  | 
|   10 #include <map> |   10 #include <map> | 
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  121 }; |  121 }; | 
|  122 enum XFA_SOM_MESSAGETYPE { |  122 enum XFA_SOM_MESSAGETYPE { | 
|  123   XFA_SOM_ValidationMessage, |  123   XFA_SOM_ValidationMessage, | 
|  124   XFA_SOM_FormatMessage, |  124   XFA_SOM_FormatMessage, | 
|  125   XFA_SOM_MandatoryMessage |  125   XFA_SOM_MandatoryMessage | 
|  126 }; |  126 }; | 
|  127  |  127  | 
|  128 using CXFA_NodeArray = CFX_ArrayTemplate<CXFA_Node*>; |  128 using CXFA_NodeArray = CFX_ArrayTemplate<CXFA_Node*>; | 
|  129 using CXFA_NodeStack = CFX_StackTemplate<CXFA_Node*>; |  129 using CXFA_NodeStack = CFX_StackTemplate<CXFA_Node*>; | 
|  130 using CXFA_NodeSet = std::unordered_set<CXFA_Node*>; |  130 using CXFA_NodeSet = std::unordered_set<CXFA_Node*>; | 
 |  131  | 
 |  132 typedef void (*PD_CALLBACK_FREEDATA)(void* pData); | 
|  131 typedef void (*PD_CALLBACK_DUPLICATEDATA)(void*& pData); |  133 typedef void (*PD_CALLBACK_DUPLICATEDATA)(void*& pData); | 
|  132  |  134  | 
|  133 struct XFA_MAPDATABLOCKCALLBACKINFO { |  135 struct XFA_MAPDATABLOCKCALLBACKINFO { | 
|  134   PD_CALLBACK_FREEDATA pFree; |  136   PD_CALLBACK_FREEDATA pFree; | 
|  135   PD_CALLBACK_DUPLICATEDATA pCopy; |  137   PD_CALLBACK_DUPLICATEDATA pCopy; | 
|  136 }; |  138 }; | 
|  137  |  139  | 
|  138 struct XFA_MAPDATABLOCK { |  140 struct XFA_MAPDATABLOCK { | 
|  139   uint8_t* GetData() const { return (uint8_t*)this + sizeof(XFA_MAPDATABLOCK); } |  141   uint8_t* GetData() const { return (uint8_t*)this + sizeof(XFA_MAPDATABLOCK); } | 
|  140   XFA_MAPDATABLOCKCALLBACKINFO* pCallbackInfo; |  142   XFA_MAPDATABLOCKCALLBACKINFO* pCallbackInfo; | 
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  812  |  814  | 
|  813 inline CXFA_Node* ToNode(CXFA_Object* pObj) { |  815 inline CXFA_Node* ToNode(CXFA_Object* pObj) { | 
|  814   return pObj ? pObj->AsNode() : nullptr; |  816   return pObj ? pObj->AsNode() : nullptr; | 
|  815 } |  817 } | 
|  816  |  818  | 
|  817 inline const CXFA_Node* ToNode(const CXFA_Object* pObj) { |  819 inline const CXFA_Node* ToNode(const CXFA_Object* pObj) { | 
|  818   return pObj ? pObj->AsNode() : nullptr; |  820   return pObj ? pObj->AsNode() : nullptr; | 
|  819 } |  821 } | 
|  820  |  822  | 
|  821 #endif  // XFA_FXFA_PARSER_XFA_OBJECT_H_ |  823 #endif  // XFA_FXFA_PARSER_XFA_OBJECT_H_ | 
| OLD | NEW |