summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffwidget.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-08-17 12:04:41 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-08-17 20:47:42 +0000
commitba1897b238b421e36cb34f223b8b24be2845d413 (patch)
treec9619a96727b48d2030910f6320902df0b7e3297 /xfa/fxfa/cxfa_ffwidget.h
parent129297f6ae97169093d4affe3c8421b757bd95ec (diff)
downloadpdfium-ba1897b238b421e36cb34f223b8b24be2845d413.tar.xz
Remove default parameters from CXFA_FFWidget methods.
Also remove an unused method and move a bunch of internal methods into an anonymous namespace. Change-Id: Ic7b4a975852cc2a7384bf3f681b953a5bf7e7d29 Reviewed-on: https://pdfium-review.googlesource.com/11112 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffwidget.h')
-rw-r--r--xfa/fxfa/cxfa_ffwidget.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/xfa/fxfa/cxfa_ffwidget.h b/xfa/fxfa/cxfa_ffwidget.h
index 0e7c35e361..d7d8707457 100644
--- a/xfa/fxfa/cxfa_ffwidget.h
+++ b/xfa/fxfa/cxfa_ffwidget.h
@@ -68,13 +68,9 @@ void XFA_RectWidthoutMargin(CFX_RectF& rt,
bool bUI = false);
CXFA_FFWidget* XFA_GetWidgetFromLayoutItem(CXFA_LayoutItem* pLayoutItem);
bool XFA_IsCreateWidget(XFA_Element iType);
+
#define XFA_DRAWBOX_ForceRound 1
#define XFA_DRAWBOX_Lowered3D 2
-void XFA_DrawBox(CXFA_Box box,
- CXFA_Graphics* pGS,
- const CFX_RectF& rtWidget,
- CFX_Matrix* pMatrix,
- uint32_t dwFlags = 0);
class CXFA_CalcData {
public:
@@ -157,8 +153,7 @@ class CXFA_FFWidget : public CXFA_ContentLayoutItem {
CXFA_FFDoc* GetDoc();
CXFA_FFApp* GetApp();
IXFA_AppProvider* GetAppProvider();
- void InvalidateWidget(const CFX_RectF* pRect = nullptr);
- void AddInvalidateRect(const CFX_RectF* pRect = nullptr);
+ void AddInvalidateRect();
bool GetCaptionText(CFX_WideString& wsCap);
bool IsFocused() const { return !!(m_dwStatus & XFA_WidgetStatus_Focused); }
CFX_PointF Rotate2Normal(const CFX_PointF& point);
@@ -174,8 +169,12 @@ class CXFA_FFWidget : public CXFA_ContentLayoutItem {
void DrawBorder(CXFA_Graphics* pGS,
CXFA_Box box,
const CFX_RectF& rtBorder,
- CFX_Matrix* pMatrix,
- uint32_t dwFlags = 0);
+ CFX_Matrix* pMatrix);
+ void DrawBorderWithFlags(CXFA_Graphics* pGS,
+ CXFA_Box box,
+ const CFX_RectF& rtBorder,
+ CFX_Matrix* pMatrix,
+ uint32_t dwFlags);
CFX_RectF GetRectWithoutRotate();
bool IsMatchVisibleStatus(uint32_t dwStatus);