diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-12-13 18:05:38 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-12-13 18:05:38 +0000 |
commit | e03171e52ec4232369ab3b46e11d3a0abe1eb630 (patch) | |
tree | 6a57f6a0948032e6ec387c22d8b462215e6ca1e4 /xfa/fwl/theme/cfwl_checkboxtp.h | |
parent | 8bbfdf2fca7197a0eccfef7b6fc27c590a44e7f7 (diff) | |
parent | 326d96bf5d52fdcf790b467b13f58ba3df3e81e4 (diff) | |
download | pdfium-android14-platform-release.tar.gz |
Merge cherrypicks of ['googleplex-android-review.googlesource.com/23916086'] into udc-platform-release.android-platform-14.0.0_r8android-platform-14.0.0_r7android-platform-14.0.0_r6android-platform-14.0.0_r5android-platform-14.0.0_r4android14-platform-release
Change-Id: If925f85c6a039b56ff549fd5327795f57b9cd12c
Diffstat (limited to 'xfa/fwl/theme/cfwl_checkboxtp.h')
-rw-r--r-- | xfa/fwl/theme/cfwl_checkboxtp.h | 29 |
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_ |