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

Side by Side Diff: xfa/fxfa/include/xfa_ffwidget.h

Issue 2015743002: Banish CFX_PrivateData to the XFA side (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « core/fxcrt/include/fx_basic.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_INCLUDE_XFA_FFWIDGET_H_ 7 #ifndef XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_
8 #define XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_ 8 #define XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 22 matching lines...) Expand all
33 33
34 class CXFA_CalcData { 34 class CXFA_CalcData {
35 public: 35 public:
36 CXFA_CalcData() : m_iRefCount(0) {} 36 CXFA_CalcData() : m_iRefCount(0) {}
37 ~CXFA_CalcData() { m_Globals.RemoveAll(); } 37 ~CXFA_CalcData() { m_Globals.RemoveAll(); }
38 38
39 CFX_ArrayTemplate<CXFA_WidgetAcc*> m_Globals; 39 CFX_ArrayTemplate<CXFA_WidgetAcc*> m_Globals;
40 int32_t m_iRefCount; 40 int32_t m_iRefCount;
41 }; 41 };
42 42
43 class CXFA_FFWidget : public CFX_PrivateData, public CXFA_ContentLayoutItem { 43 class CXFA_FFWidget : public CXFA_ContentLayoutItem {
44 public: 44 public:
45 CXFA_FFWidget(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); 45 CXFA_FFWidget(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);
46 virtual ~CXFA_FFWidget(); 46 virtual ~CXFA_FFWidget();
47 CXFA_FFPageView* GetPageView(); 47 CXFA_FFPageView* GetPageView();
48 void SetPageView(CXFA_FFPageView* pPageView); 48 void SetPageView(CXFA_FFPageView* pPageView);
49 void GetWidgetRect(CFX_RectF& rtWidget); 49 void GetWidgetRect(CFX_RectF& rtWidget);
50 CFX_RectF ReCacheWidgetRect(); 50 CFX_RectF ReCacheWidgetRect();
51 uint32_t GetStatus(); 51 uint32_t GetStatus();
52 void ModifyStatus(uint32_t dwAdded, uint32_t dwRemoved); 52 void ModifyStatus(uint32_t dwAdded, uint32_t dwRemoved);
53 virtual FX_BOOL GetBBox(CFX_RectF& rtBox, 53 virtual FX_BOOL GetBBox(CFX_RectF& rtBox,
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 FX_BOOL XFA_IsCreateWidget(XFA_ELEMENT iType); 177 FX_BOOL XFA_IsCreateWidget(XFA_ELEMENT iType);
178 #define XFA_DRAWBOX_ForceRound 1 178 #define XFA_DRAWBOX_ForceRound 1
179 #define XFA_DRAWBOX_Lowered3D 2 179 #define XFA_DRAWBOX_Lowered3D 2
180 void XFA_DrawBox(CXFA_Box box, 180 void XFA_DrawBox(CXFA_Box box,
181 CFX_Graphics* pGS, 181 CFX_Graphics* pGS,
182 const CFX_RectF& rtWidget, 182 const CFX_RectF& rtWidget,
183 CFX_Matrix* pMatrix, 183 CFX_Matrix* pMatrix,
184 uint32_t dwFlags = 0); 184 uint32_t dwFlags = 0);
185 185
186 #endif // XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_ 186 #endif // XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_
OLDNEW
« no previous file with comments | « core/fxcrt/include/fx_basic.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698