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

Side by Side Diff: xfa/fxfa/app/xfa_fffield.h

Issue 2095653002: Remove NULL in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 5 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 | « xfa/fxfa/app/xfa_ffdocview.cpp ('k') | xfa/fxfa/app/xfa_fffield.cpp » ('j') | 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_APP_XFA_FFFIELD_H_ 7 #ifndef XFA_FXFA_APP_XFA_FFFIELD_H_
8 #define XFA_FXFA_APP_XFA_FFFIELD_H_ 8 #define XFA_FXFA_APP_XFA_FFFIELD_H_
9 9
10 #include "xfa/fwl/core/ifwl_widgetdelegate.h" 10 #include "xfa/fwl/core/ifwl_widgetdelegate.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 FX_BOOL OnKeyDown(uint32_t dwKeyCode, uint32_t dwFlags) override; 50 FX_BOOL OnKeyDown(uint32_t dwKeyCode, uint32_t dwFlags) override;
51 FX_BOOL OnKeyUp(uint32_t dwKeyCode, uint32_t dwFlags) override; 51 FX_BOOL OnKeyUp(uint32_t dwKeyCode, uint32_t dwFlags) override;
52 FX_BOOL OnChar(uint32_t dwChar, uint32_t dwFlags) override; 52 FX_BOOL OnChar(uint32_t dwChar, uint32_t dwFlags) override;
53 FWL_WidgetHit OnHitTest(FX_FLOAT fx, FX_FLOAT fy) override; 53 FWL_WidgetHit OnHitTest(FX_FLOAT fx, FX_FLOAT fy) override;
54 FX_BOOL OnSetCursor(FX_FLOAT fx, FX_FLOAT fy) override; 54 FX_BOOL OnSetCursor(FX_FLOAT fx, FX_FLOAT fy) override;
55 55
56 // IFWL_WidgetDelegate 56 // IFWL_WidgetDelegate
57 void OnProcessMessage(CFWL_Message* pMessage) override; 57 void OnProcessMessage(CFWL_Message* pMessage) override;
58 void OnProcessEvent(CFWL_Event* pEvent) override; 58 void OnProcessEvent(CFWL_Event* pEvent) override;
59 void OnDrawWidget(CFX_Graphics* pGraphics, 59 void OnDrawWidget(CFX_Graphics* pGraphics,
60 const CFX_Matrix* pMatrix = NULL) override; 60 const CFX_Matrix* pMatrix = nullptr) override;
61 61
62 void UpdateFWL(); 62 void UpdateFWL();
63 uint32_t UpdateUIProperty(); 63 uint32_t UpdateUIProperty();
64 64
65 protected: 65 protected:
66 FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy) override; 66 FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy) override;
67 67
68 virtual void SetFWLRect(); 68 virtual void SetFWLRect();
69 void SetFWLThemeProvider(); 69 void SetFWLThemeProvider();
70 CFWL_Widget* GetNormalWidget() { return m_pNormalWidget; } 70 CFWL_Widget* GetNormalWidget() { return m_pNormalWidget; }
71 void FWLToClient(FX_FLOAT& fx, FX_FLOAT& fy); 71 void FWLToClient(FX_FLOAT& fx, FX_FLOAT& fy);
72 void LayoutCaption(); 72 void LayoutCaption();
73 void RenderCaption(CFX_Graphics* pGS, CFX_Matrix* pMatrix = NULL); 73 void RenderCaption(CFX_Graphics* pGS, CFX_Matrix* pMatrix = nullptr);
74 74
75 int32_t CalculateOverride(); 75 int32_t CalculateOverride();
76 int32_t CalculateWidgetAcc(CXFA_WidgetAcc* pAcc); 76 int32_t CalculateWidgetAcc(CXFA_WidgetAcc* pAcc);
77 FX_BOOL ProcessCommittedData(); 77 FX_BOOL ProcessCommittedData();
78 virtual FX_BOOL CommitData(); 78 virtual FX_BOOL CommitData();
79 virtual FX_BOOL IsDataChanged(); 79 virtual FX_BOOL IsDataChanged();
80 void DrawHighlight(CFX_Graphics* pGS, 80 void DrawHighlight(CFX_Graphics* pGS,
81 CFX_Matrix* pMatrix, 81 CFX_Matrix* pMatrix,
82 uint32_t dwStatus, 82 uint32_t dwStatus,
83 FX_BOOL bEllipse = FALSE); 83 FX_BOOL bEllipse = FALSE);
84 void DrawFocus(CFX_Graphics* pGS, CFX_Matrix* pMatrix); 84 void DrawFocus(CFX_Graphics* pGS, CFX_Matrix* pMatrix);
85 void TranslateFWLMessage(CFWL_Message* pMessage); 85 void TranslateFWLMessage(CFWL_Message* pMessage);
86 void CapPlacement(); 86 void CapPlacement();
87 void CapTopBottomPlacement(CXFA_Caption caption, 87 void CapTopBottomPlacement(CXFA_Caption caption,
88 const CFX_RectF& rtWidget, 88 const CFX_RectF& rtWidget,
89 int32_t iCapPlacement); 89 int32_t iCapPlacement);
90 void CapLeftRightPlacement(CXFA_Caption caption, 90 void CapLeftRightPlacement(CXFA_Caption caption,
91 const CFX_RectF& rtWidget, 91 const CFX_RectF& rtWidget,
92 int32_t iCapPlacement); 92 int32_t iCapPlacement);
93 void SetEditScrollOffset(); 93 void SetEditScrollOffset();
94 94
95 CFWL_Widget* m_pNormalWidget; 95 CFWL_Widget* m_pNormalWidget;
96 CFX_RectF m_rtUI; 96 CFX_RectF m_rtUI;
97 CFX_RectF m_rtCaption; 97 CFX_RectF m_rtCaption;
98 }; 98 };
99 99
100 #endif // XFA_FXFA_APP_XFA_FFFIELD_H_ 100 #endif // XFA_FXFA_APP_XFA_FFFIELD_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffdocview.cpp ('k') | xfa/fxfa/app/xfa_fffield.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698