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

Unified Diff: core/fxcrt/include/fx_basic.h

Issue 2016743002: Add back-pointer to "Associated widget" to CFWL_WidgetImp. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@opaque_layout_item
Patch Set: Initialize m_pAssociate. Created 4 years, 7 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 | « core/fxcrt/fx_basic_util.cpp ('k') | xfa/fwl/core/fwl_widgetimp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fxcrt/include/fx_basic.h
diff --git a/core/fxcrt/include/fx_basic.h b/core/fxcrt/include/fx_basic.h
index 73cb648a46b04b60508f3622c857cdbb3958048f..13b51bd3faeb45bb37d5e172f2ffd304cfadc726 100644
--- a/core/fxcrt/include/fx_basic.h
+++ b/core/fxcrt/include/fx_basic.h
@@ -324,9 +324,7 @@ typedef CFX_ArrayTemplate<CFX_WideStringC> CFX_WideStringCArray;
typedef CFX_ArrayTemplate<FX_FLOAT> CFX_FloatArray;
typedef CFX_ArrayTemplate<uint8_t> CFX_ByteArray;
typedef CFX_ArrayTemplate<int32_t> CFX_Int32Array;
-#endif // PDF_ENABLE_XFA
-#ifdef PDF_ENABLE_XFA
template <class ObjectClass>
class CFX_ObjectArray : public CFX_BasicArray {
public:
@@ -621,52 +619,6 @@ class CFX_PtrList {
#ifdef PDF_ENABLE_XFA
typedef void (*PD_CALLBACK_FREEDATA)(void* pData);
-struct FX_PRIVATEDATA {
- void FreeData();
-
- void* m_pModuleId;
- void* m_pData;
- PD_CALLBACK_FREEDATA m_pCallback;
- FX_BOOL m_bSelfDestruct;
-};
-
-class CFX_PrivateData {
- public:
- CFX_PrivateData();
- ~CFX_PrivateData();
-
- void ClearAll();
-
- void SetPrivateData(void* module_id,
- void* pData,
- PD_CALLBACK_FREEDATA callback);
- void SetPrivateObj(void* module_id, CFX_Deletable* pObj);
-
- void* GetPrivateData(void* module_id);
- FX_BOOL LookupPrivateData(void* module_id, void*& pData) const {
- if (!module_id) {
- return FALSE;
- }
- uint32_t nCount = m_DataList.GetSize();
- for (uint32_t n = 0; n < nCount; n++) {
- if (m_DataList[n].m_pModuleId == module_id) {
- pData = m_DataList[n].m_pData;
- return TRUE;
- }
- }
- return FALSE;
- }
-
- FX_BOOL RemovePrivateData(void* module_id);
-
- protected:
- CFX_ArrayTemplate<FX_PRIVATEDATA> m_DataList;
-
- void AddData(void* module_id,
- void* pData,
- PD_CALLBACK_FREEDATA callback,
- FX_BOOL bSelfDestruct);
-};
#endif // PDF_ENABLE_XFA
class CFX_BitStream {
« no previous file with comments | « core/fxcrt/fx_basic_util.cpp ('k') | xfa/fwl/core/fwl_widgetimp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698