aboutsummaryrefslogtreecommitdiff
path: root/xfa/fwl/theme/cfwl_checkboxtp.h
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/theme/cfwl_checkboxtp.h')
-rw-r--r--xfa/fwl/theme/cfwl_checkboxtp.h29
1 files changed, 17 insertions, 12 deletions
diff --git a/xfa/fwl/theme/cfwl_checkboxtp.h b/xfa/fwl/theme/cfwl_checkboxtp.h
index e79a693c6..810edda16 100644
--- a/xfa/fwl/theme/cfwl_checkboxtp.h
+++ b/xfa/fwl/theme/cfwl_checkboxtp.h
@@ -1,4 +1,4 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
+// Copyright 2014 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -9,13 +9,16 @@
#include <memory>
+#include "fxjs/gc/heap.h"
+#include "xfa/fwl/cfwl_themepart.h"
#include "xfa/fwl/theme/cfwl_widgettp.h"
+class CFGAS_GEPath;
class CFWL_Widget;
class CFWL_CheckBoxTP final : public CFWL_WidgetTP {
public:
- CFWL_CheckBoxTP();
+ CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED;
~CFWL_CheckBoxTP() override;
// CFWL_WidgetTP
@@ -23,39 +26,41 @@ class CFWL_CheckBoxTP final : public CFWL_WidgetTP {
void DrawText(const CFWL_ThemeText& pParams) override;
private:
+ CFWL_CheckBoxTP();
+
void DrawCheckSign(CFWL_Widget* pWidget,
- CXFA_Graphics* pGraphics,
+ CFGAS_GEGraphics* pGraphics,
const CFX_RectF& pRtBox,
- int32_t iState,
+ Mask<CFWL_PartState> iState,
const CFX_Matrix& matrix);
- void DrawSignCheck(CXFA_Graphics* pGraphics,
+ void DrawSignCheck(CFGAS_GEGraphics* pGraphics,
const CFX_RectF& rtSign,
FX_ARGB argbFill,
const CFX_Matrix& matrix);
- void DrawSignCircle(CXFA_Graphics* pGraphics,
+ void DrawSignCircle(CFGAS_GEGraphics* pGraphics,
const CFX_RectF& rtSign,
FX_ARGB argbFill,
const CFX_Matrix& matrix);
- void DrawSignCross(CXFA_Graphics* pGraphics,
+ void DrawSignCross(CFGAS_GEGraphics* pGraphics,
const CFX_RectF& rtSign,
FX_ARGB argbFill,
const CFX_Matrix& matrix);
- void DrawSignDiamond(CXFA_Graphics* pGraphics,
+ void DrawSignDiamond(CFGAS_GEGraphics* pGraphics,
const CFX_RectF& rtSign,
FX_ARGB argbFill,
const CFX_Matrix& matrix);
- void DrawSignSquare(CXFA_Graphics* pGraphics,
+ void DrawSignSquare(CFGAS_GEGraphics* pGraphics,
const CFX_RectF& rtSign,
FX_ARGB argbFill,
const CFX_Matrix& matrix);
- void DrawSignStar(CXFA_Graphics* pGraphics,
+ void DrawSignStar(CFGAS_GEGraphics* pGraphics,
const CFX_RectF& rtSign,
FX_ARGB argbFill,
const CFX_Matrix& matrix);
- void InitCheckPath(float fCheckLen);
+ void EnsureCheckPathInitialized(float fCheckLen);
- std::unique_ptr<CXFA_GEPath> m_pCheckPath;
+ std::unique_ptr<CFGAS_GEPath> m_pCheckPath;
};
#endif // XFA_FWL_THEME_CFWL_CHECKBOXTP_H_