diff options
43 files changed, 53 insertions, 73 deletions
diff --git a/core/fpdfapi/font/cpdf_cidfont.h b/core/fpdfapi/font/cpdf_cidfont.h index 7aeb54b877..5cbeeda7f5 100644 --- a/core/fpdfapi/font/cpdf_cidfont.h +++ b/core/fpdfapi/font/cpdf_cidfont.h @@ -62,7 +62,7 @@ class CPDF_CIDFont final : public CPDF_Font { void GetVertOrigin(uint16_t CID, short& vx, short& vy) const; int GetCharSize(uint32_t charcode) const; - protected: + private: void LoadGB2312(); int GetGlyphIndex(uint32_t unicodeb, bool* pVertGlyph); int GetVerticalGlyph(int index, bool* pVertGlyph); diff --git a/core/fpdfapi/font/cpdf_truetypefont.h b/core/fpdfapi/font/cpdf_truetypefont.h index a3066d74fa..158a5df85c 100644 --- a/core/fpdfapi/font/cpdf_truetypefont.h +++ b/core/fpdfapi/font/cpdf_truetypefont.h @@ -20,7 +20,7 @@ class CPDF_TrueTypeFont final : public CPDF_SimpleFont { const CPDF_TrueTypeFont* AsTrueTypeFont() const override; CPDF_TrueTypeFont* AsTrueTypeFont() override; - protected: + private: // CPDF_Font: bool Load() override; diff --git a/core/fpdfapi/font/cpdf_type3font.h b/core/fpdfapi/font/cpdf_type3font.h index d85bf701df..fb32323642 100644 --- a/core/fpdfapi/font/cpdf_type3font.h +++ b/core/fpdfapi/font/cpdf_type3font.h @@ -37,9 +37,6 @@ class CPDF_Type3Font final : public CPDF_SimpleFont { CFX_Matrix& GetFontMatrix() { return m_FontMatrix; } - protected: - CFX_Matrix m_FontMatrix; - private: // CPDF_Font: bool Load() override; @@ -47,6 +44,7 @@ class CPDF_Type3Font final : public CPDF_SimpleFont { // CPDF_SimpleFont: void LoadGlyphMap() override; + CFX_Matrix m_FontMatrix; uint32_t m_CharWidthL[256]; UnownedPtr<CPDF_Dictionary> m_pCharProcs; UnownedPtr<CPDF_Dictionary> m_pPageResources; diff --git a/core/fpdfapi/parser/cfdf_document.h b/core/fpdfapi/parser/cfdf_document.h index 6ab751e4dd..7298f4e1c5 100644 --- a/core/fpdfapi/parser/cfdf_document.h +++ b/core/fpdfapi/parser/cfdf_document.h @@ -29,7 +29,7 @@ class CFDF_Document final : public CPDF_IndirectObjectHolder { ByteString WriteToString() const; CPDF_Dictionary* GetRoot() const { return m_pRootDict.Get(); } - protected: + private: void ParseStream(const RetainPtr<IFX_SeekableReadStream>& pFile); UnownedPtr<CPDF_Dictionary> m_pRootDict; diff --git a/core/fpdfapi/parser/cpdf_array.h b/core/fpdfapi/parser/cpdf_array.h index 0c9251ca23..c4686c08e1 100644 --- a/core/fpdfapi/parser/cpdf_array.h +++ b/core/fpdfapi/parser/cpdf_array.h @@ -112,7 +112,7 @@ class CPDF_Array final : public CPDF_Object { const_iterator begin() const { return m_Objects.begin(); } const_iterator end() const { return m_Objects.end(); } - protected: + private: std::unique_ptr<CPDF_Object> CloneNonCyclic( bool bDirect, std::set<const CPDF_Object*>* pVisited) const override; diff --git a/core/fpdfapi/parser/cpdf_boolean.h b/core/fpdfapi/parser/cpdf_boolean.h index 406381b1b9..5aa63afd4c 100644 --- a/core/fpdfapi/parser/cpdf_boolean.h +++ b/core/fpdfapi/parser/cpdf_boolean.h @@ -31,7 +31,7 @@ class CPDF_Boolean final : public CPDF_Object { bool WriteTo(IFX_ArchiveStream* archive, const CPDF_Encryptor* encryptor) const override; - protected: + private: bool m_bValue; }; diff --git a/core/fpdfapi/parser/cpdf_data_avail.h b/core/fpdfapi/parser/cpdf_data_avail.h index 100e2ae296..4dff3ce0c9 100644 --- a/core/fpdfapi/parser/cpdf_data_avail.h +++ b/core/fpdfapi/parser/cpdf_data_avail.h @@ -112,7 +112,7 @@ class CPDF_DataAvail final : public CPDF_Document::Observer { const CPDF_HintTables* GetHintTables() const { return m_pHintTables.get(); } - protected: + private: class PageNode { public: PageNode(); @@ -184,7 +184,6 @@ class CPDF_DataAvail final : public CPDF_Document::Observer { bool m_bPagesLoad = false; std::unique_ptr<CPDF_PageObjectAvail> m_pFormAvail; std::vector<std::unique_ptr<CPDF_Object>> m_PagesArray; - uint32_t m_dwEncryptObjNum = 0; bool m_bTotalLoadPageTree = false; bool m_bCurPageDictLoadOK = false; PageNode m_PageNode; diff --git a/core/fpdfapi/parser/cpdf_dictionary.h b/core/fpdfapi/parser/cpdf_dictionary.h index 4930e5e2e3..1876a610a2 100644 --- a/core/fpdfapi/parser/cpdf_dictionary.h +++ b/core/fpdfapi/parser/cpdf_dictionary.h @@ -106,7 +106,7 @@ class CPDF_Dictionary final : public CPDF_Object { WeakPtr<ByteStringPool> GetByteStringPool() const { return m_pPool; } - protected: + private: ByteString MaybeIntern(const ByteString& str); std::unique_ptr<CPDF_Object> CloneNonCyclic( bool bDirect, diff --git a/core/fpdfapi/parser/cpdf_name.h b/core/fpdfapi/parser/cpdf_name.h index 1ef6c64c59..ee5a6ce9c8 100644 --- a/core/fpdfapi/parser/cpdf_name.h +++ b/core/fpdfapi/parser/cpdf_name.h @@ -30,7 +30,7 @@ class CPDF_Name final : public CPDF_Object { bool WriteTo(IFX_ArchiveStream* archive, const CPDF_Encryptor* encryptor) const override; - protected: + private: ByteString m_Name; }; diff --git a/core/fpdfapi/parser/cpdf_object_avail_unittest.cpp b/core/fpdfapi/parser/cpdf_object_avail_unittest.cpp index e2b23d44f4..7dc1dcc050 100644 --- a/core/fpdfapi/parser/cpdf_object_avail_unittest.cpp +++ b/core/fpdfapi/parser/cpdf_object_avail_unittest.cpp @@ -27,7 +27,7 @@ class TestReadValidator final : public CPDF_ReadValidator { void SimulateReadError() { ReadBlock(nullptr, 0, 1); } - protected: + private: TestReadValidator() : CPDF_ReadValidator( pdfium::MakeRetain<CFX_InvalidSeekableReadStream>(100), diff --git a/core/fpdfapi/parser/cpdf_page_object_avail.h b/core/fpdfapi/parser/cpdf_page_object_avail.h index b62ca4c33a..bb9e80a669 100644 --- a/core/fpdfapi/parser/cpdf_page_object_avail.h +++ b/core/fpdfapi/parser/cpdf_page_object_avail.h @@ -14,7 +14,7 @@ class CPDF_PageObjectAvail final : public CPDF_ObjectAvail { using CPDF_ObjectAvail::CPDF_ObjectAvail; ~CPDF_PageObjectAvail() override; - protected: + private: bool ExcludeObject(const CPDF_Object* object) const override; }; diff --git a/core/fpdfapi/parser/cpdf_page_object_avail_unittest.cpp b/core/fpdfapi/parser/cpdf_page_object_avail_unittest.cpp index f278b6e57c..57ab09c219 100644 --- a/core/fpdfapi/parser/cpdf_page_object_avail_unittest.cpp +++ b/core/fpdfapi/parser/cpdf_page_object_avail_unittest.cpp @@ -28,7 +28,7 @@ class TestReadValidator final : public CPDF_ReadValidator { void SimulateReadError() { ReadBlock(nullptr, 0, 1); } - protected: + private: TestReadValidator() : CPDF_ReadValidator( pdfium::MakeRetain<CFX_InvalidSeekableReadStream>(100), diff --git a/core/fpdfapi/parser/cpdf_reference.h b/core/fpdfapi/parser/cpdf_reference.h index cb9c6ed1d4..f7b03ac721 100644 --- a/core/fpdfapi/parser/cpdf_reference.h +++ b/core/fpdfapi/parser/cpdf_reference.h @@ -42,7 +42,7 @@ class CPDF_Reference final : public CPDF_Object { uint32_t GetRefObjNum() const { return m_RefObjNum; } void SetRef(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum); - protected: + private: std::unique_ptr<CPDF_Object> CloneNonCyclic( bool bDirect, std::set<const CPDF_Object*>* pVisited) const override; diff --git a/core/fpdfapi/parser/cpdf_stream.h b/core/fpdfapi/parser/cpdf_stream.h index 9d8cf6d896..aada80e35c 100644 --- a/core/fpdfapi/parser/cpdf_stream.h +++ b/core/fpdfapi/parser/cpdf_stream.h @@ -62,7 +62,7 @@ class CPDF_Stream final : public CPDF_Object { bool IsMemoryBased() const { return m_bMemoryBased; } bool HasFilter() const; - protected: + private: std::unique_ptr<CPDF_Object> CloneNonCyclic( bool bDirect, std::set<const CPDF_Object*>* pVisited) const override; diff --git a/core/fpdfapi/parser/cpdf_stream_acc.h b/core/fpdfapi/parser/cpdf_stream_acc.h index 3c42639828..ddbdc6ae0f 100644 --- a/core/fpdfapi/parser/cpdf_stream_acc.h +++ b/core/fpdfapi/parser/cpdf_stream_acc.h @@ -41,13 +41,12 @@ class CPDF_StreamAcc final : public Retainable { const CPDF_Dictionary* GetImageParam() const { return m_pImageParam.Get(); } std::unique_ptr<uint8_t, FxFreeDeleter> DetachData(); - protected: + private: explicit CPDF_StreamAcc(const CPDF_Stream* pStream); ~CPDF_StreamAcc() override; void LoadAllData(bool bRawAccess, uint32_t estimated_size, bool bImageAcc); - private: uint8_t* m_pData = nullptr; uint32_t m_dwSize = 0; bool m_bNewBuf = false; diff --git a/core/fpdfapi/parser/cpdf_string.h b/core/fpdfapi/parser/cpdf_string.h index 75cc3c4fe1..d3fc2c5911 100644 --- a/core/fpdfapi/parser/cpdf_string.h +++ b/core/fpdfapi/parser/cpdf_string.h @@ -36,7 +36,7 @@ class CPDF_String final : public CPDF_Object { bool IsHex() const { return m_bHex; } - protected: + private: ByteString m_String; bool m_bHex; }; diff --git a/core/fxcodec/codec/ccodec_flatemodule.cpp b/core/fxcodec/codec/ccodec_flatemodule.cpp index c603ce192b..0dc1822300 100644 --- a/core/fxcodec/codec/ccodec_flatemodule.cpp +++ b/core/fxcodec/codec/ccodec_flatemodule.cpp @@ -642,7 +642,7 @@ class CCodec_FlatePredictorScanlineDecoder final bool v_Rewind() override; uint8_t* v_GetNextLine() override; - protected: + private: void GetNextLineWithPredictedPitch(); void GetNextLineWithoutPredictedPitch(); diff --git a/core/fxcodec/codec/fx_codec.cpp b/core/fxcodec/codec/fx_codec.cpp index b93f5418f3..d38f10aadd 100644 --- a/core/fxcodec/codec/fx_codec.cpp +++ b/core/fxcodec/codec/fx_codec.cpp @@ -1540,7 +1540,7 @@ class CCodec_RLScanlineDecoder final : public CCodec_ScanlineDecoder { uint8_t* v_GetNextLine() override; uint32_t GetSrcOffset() override { return m_SrcOffset; } - protected: + private: bool CheckDestSize(); void GetNextOperator(); void UpdateOperator(uint8_t used_bytes); diff --git a/core/fxcrt/cfx_fileaccess_posix.h b/core/fxcrt/cfx_fileaccess_posix.h index 7b8230de18..c759d8c1aa 100644 --- a/core/fxcrt/cfx_fileaccess_posix.h +++ b/core/fxcrt/cfx_fileaccess_posix.h @@ -37,7 +37,7 @@ class CFX_FileAccess_Posix final : public FileAccessIface { bool Flush() override; bool Truncate(FX_FILESIZE szFile) override; - protected: + private: int32_t m_nFD; }; diff --git a/core/fxcrt/cfx_fileaccess_windows.h b/core/fxcrt/cfx_fileaccess_windows.h index fad2ed6f94..6d58409e65 100644 --- a/core/fxcrt/cfx_fileaccess_windows.h +++ b/core/fxcrt/cfx_fileaccess_windows.h @@ -35,7 +35,7 @@ class CFX_FileAccess_Windows final : public FileAccessIface { bool Flush() override; bool Truncate(FX_FILESIZE szFile) override; - protected: + private: void* m_hFile; }; diff --git a/core/fxcrt/css/cfx_cssvaluelist.h b/core/fxcrt/css/cfx_cssvaluelist.h index 5e04c649b9..4b87f4c381 100644 --- a/core/fxcrt/css/cfx_cssvaluelist.h +++ b/core/fxcrt/css/cfx_cssvaluelist.h @@ -19,7 +19,7 @@ class CFX_CSSValueList final : public CFX_CSSValue { int32_t CountValues() const; RetainPtr<CFX_CSSValue> GetValue(int32_t index) const; - protected: + private: std::vector<RetainPtr<CFX_CSSValue>> m_ppList; }; diff --git a/core/fxge/android/cfx_androidfontinfo.h b/core/fxge/android/cfx_androidfontinfo.h index f671bfbbb7..86b0d34d62 100644 --- a/core/fxge/android/cfx_androidfontinfo.h +++ b/core/fxge/android/cfx_androidfontinfo.h @@ -37,7 +37,7 @@ class CFX_AndroidFontInfo final : public SystemFontInfoIface { bool GetFontCharset(void* hFont, int* charset) override; void DeleteFont(void* hFont) override; - protected: + private: UnownedPtr<CFPF_SkiaFontMgr> m_pFontMgr; }; diff --git a/core/fxge/win32/cfx_windowsdib.h b/core/fxge/win32/cfx_windowsdib.h index 4b7de7d5f9..edc1ed701c 100644 --- a/core/fxge/win32/cfx_windowsdib.h +++ b/core/fxge/win32/cfx_windowsdib.h @@ -42,7 +42,7 @@ class CFX_WindowsDIB final : public CFX_DIBitmap { void LoadFromDevice(HDC hDC, int left, int top); void SetToDevice(HDC hDC, int left, int top); - protected: + private: CFX_WindowsDIB(HDC hDC, int width, int height); ~CFX_WindowsDIB() override; diff --git a/core/fxge/win32/win32_int.h b/core/fxge/win32/win32_int.h index 0bc68c46b9..7b4f9ab246 100644 --- a/core/fxge/win32/win32_int.h +++ b/core/fxge/win32/win32_int.h @@ -193,7 +193,7 @@ class CGdiDisplayDriver final : public CGdiDeviceDriver { explicit CGdiDisplayDriver(HDC hDC); ~CGdiDisplayDriver() override; - protected: + private: bool GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap, int left, int top) override; @@ -234,7 +234,7 @@ class CGdiPrinterDriver final : public CGdiDeviceDriver { explicit CGdiPrinterDriver(HDC hDC); ~CGdiPrinterDriver() override; - protected: + private: int GetDeviceCaps(int caps_id) const override; bool SetDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, uint32_t color, @@ -274,7 +274,7 @@ class CPSPrinterDriver final : public RenderDeviceDriverIface { CPSPrinterDriver(HDC hDC, WindowsPrintMode mode, bool bCmykOutput); ~CPSPrinterDriver() override; - protected: + private: // RenderDeviceDriverIface int GetDeviceCaps(int caps_id) const override; bool StartRendering() override; @@ -339,7 +339,7 @@ class CTextOnlyPrinterDriver final : public RenderDeviceDriverIface { explicit CTextOnlyPrinterDriver(HDC hDC); ~CTextOnlyPrinterDriver() override; - protected: + private: // RenderDeviceDriverIface int GetDeviceCaps(int caps_id) const override; void SaveState() override{}; diff --git a/fpdfsdk/cpdfsdk_helpers.cpp b/fpdfsdk/cpdfsdk_helpers.cpp index 0ec8d173ae..2d2d78aded 100644 --- a/fpdfsdk/cpdfsdk_helpers.cpp +++ b/fpdfsdk/cpdfsdk_helpers.cpp @@ -54,7 +54,7 @@ class FPDF_FileHandlerContext final : public IFX_SeekableStream { void SetPosition(FX_FILESIZE pos) { m_nCurPos = pos; } - protected: + private: explicit FPDF_FileHandlerContext(FPDF_FILEHANDLER* pFS); ~FPDF_FileHandlerContext() override; diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_context.h b/fpdfsdk/fpdfxfa/cpdfxfa_context.h index 887f06d431..1315375b58 100644 --- a/fpdfsdk/fpdfxfa/cpdfxfa_context.h +++ b/fpdfsdk/fpdfxfa/cpdfxfa_context.h @@ -93,7 +93,7 @@ class CPDFXFA_Context final : public CPDF_Document::Extension, std::unique_ptr<IFWL_AdapterTimerMgr> NewTimerMgr() override; - protected: + private: friend class CPDFXFA_DocEnvironment; int GetOriginalPageCount() const { return m_nPageCount; } @@ -107,7 +107,6 @@ class CPDFXFA_Context final : public CPDF_Document::Extension, return &m_XFAPageList; } - private: CJS_Runtime* GetCJSRuntime() const; void CloseXFADoc(); diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_page.h b/fpdfsdk/fpdfxfa/cpdfxfa_page.h index 769bdaa792..90376222f4 100644 --- a/fpdfsdk/fpdfxfa/cpdfxfa_page.h +++ b/fpdfsdk/fpdfxfa/cpdfxfa_page.h @@ -52,7 +52,7 @@ class CPDFXFA_Page final : public IPDF_Page { m_pXFAPageView = pPageView; } - protected: + private: // Refcounted class. CPDFXFA_Page(CPDFXFA_Context* pContext, int page_index); ~CPDFXFA_Page() override; @@ -60,7 +60,6 @@ class CPDFXFA_Page final : public IPDF_Page { bool LoadPDFPage(); bool LoadXFAPageView(); - private: RetainPtr<CPDF_Page> m_pPDFPage; CXFA_FFPageView* m_pXFAPageView; UnownedPtr<CPDFXFA_Context> const m_pContext; diff --git a/fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.h b/fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.h index 8bca0bdd28..770b0e2d97 100644 --- a/fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.h +++ b/fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.h @@ -26,7 +26,7 @@ class CXFA_FWLAdapterTimerMgr final : public IFWL_AdapterTimerMgr { CFWL_TimerInfo** pTimerInfo) override; void Stop(CFWL_TimerInfo* pTimerInfo) override; - protected: + private: static void TimerProc(int32_t idEvent); static std::vector<CFWL_TimerInfo*>* s_TimerArray; diff --git a/fpdfsdk/pwl/cpwl_scroll_bar.h b/fpdfsdk/pwl/cpwl_scroll_bar.h index 0b63bf224d..a61c04d019 100644 --- a/fpdfsdk/pwl/cpwl_scroll_bar.h +++ b/fpdfsdk/pwl/cpwl_scroll_bar.h @@ -57,10 +57,9 @@ class CPWL_SBButton final : public CPWL_Wnd { bool OnLButtonUp(const CFX_PointF& point, uint32_t nFlag) override; bool OnMouseMove(const CFX_PointF& point, uint32_t nFlag) override; - protected: + private: PWL_SCROLLBAR_TYPE m_eScrollBarType; PWL_SBBUTTON_TYPE m_eSBButtonType; - bool m_bMouseDown; }; @@ -142,7 +141,7 @@ class CPWL_ScrollBar final : public CPWL_Wnd { void SetNotifyForever(bool bForever) { m_bNotifyForever = bForever; } - protected: + private: void SetScrollRange(float fMin, float fMax, float fClientWidth); void SetScrollPos(float fPos); @@ -152,7 +151,6 @@ class CPWL_ScrollBar final : public CPWL_Wnd { void NotifyScrollWindow(); CFX_FloatRect GetScrollArea() const; - private: void CreateButtons(const CreateParams& cp); void OnMinButtonLBDown(const CFX_PointF& point); diff --git a/fxbarcode/oned/BC_OnedEAN13Writer.h b/fxbarcode/oned/BC_OnedEAN13Writer.h index 3c7ff2eba3..c80091897f 100644 --- a/fxbarcode/oned/BC_OnedEAN13Writer.h +++ b/fxbarcode/oned/BC_OnedEAN13Writer.h @@ -31,14 +31,13 @@ class CBC_OnedEAN13Writer final : public CBC_OneDimWriter { int32_t CalcChecksum(const ByteString& contents); - protected: + private: bool ShowChars(const WideStringView& contents, CFX_RenderDevice* device, const CFX_Matrix* matrix, int32_t barWidth, int32_t multiple) override; - private: int32_t m_codeWidth; }; diff --git a/fxbarcode/oned/BC_OnedEAN8Writer.h b/fxbarcode/oned/BC_OnedEAN8Writer.h index 269156a25e..853d4dace8 100644 --- a/fxbarcode/oned/BC_OnedEAN8Writer.h +++ b/fxbarcode/oned/BC_OnedEAN8Writer.h @@ -34,14 +34,13 @@ class CBC_OnedEAN8Writer final : public CBC_OneDimWriter { bool SetTextLocation(BC_TEXT_LOC location); int32_t CalcChecksum(const ByteString& contents); - protected: + private: bool ShowChars(const WideStringView& contents, CFX_RenderDevice* device, const CFX_Matrix* matrix, int32_t barWidth, int32_t multiple) override; - private: static constexpr int32_t kDefaultCodeWidth = 3 + (7 * 4) + 5 + (7 * 4) + 3; int32_t m_codeWidth = kDefaultCodeWidth; }; diff --git a/fxbarcode/oned/BC_OnedUPCAWriter.h b/fxbarcode/oned/BC_OnedUPCAWriter.h index 1a9f091f60..6101b4d8d1 100644 --- a/fxbarcode/oned/BC_OnedUPCAWriter.h +++ b/fxbarcode/oned/BC_OnedUPCAWriter.h @@ -36,14 +36,13 @@ class CBC_OnedUPCAWriter final : public CBC_OneDimWriter { void Init(); int32_t CalcChecksum(const ByteString& contents); - protected: + private: bool ShowChars(const WideStringView& contents, CFX_RenderDevice* device, const CFX_Matrix* matrix, int32_t barWidth, int32_t multiple) override; - private: std::unique_ptr<CBC_OnedEAN13Writer> m_subWriter; }; diff --git a/fxjs/cjs_runtimestub.h b/fxjs/cjs_runtimestub.h index cc32744736..779a67579e 100644 --- a/fxjs/cjs_runtimestub.h +++ b/fxjs/cjs_runtimestub.h @@ -36,7 +36,7 @@ class CJS_RuntimeStub final : public IJS_Runtime { Optional<IJS_Runtime::JS_Error> ExecuteScript( const WideString& script) override; - protected: + private: UnownedPtr<CPDFSDK_FormFillEnvironment> const m_pFormFillEnv; std::unique_ptr<IJS_EventContext> m_pContext; }; diff --git a/testing/embedder_test_timer_handling_delegate.h b/testing/embedder_test_timer_handling_delegate.h index 31ce1e205d..34b4cbb551 100644 --- a/testing/embedder_test_timer_handling_delegate.h +++ b/testing/embedder_test_timer_handling_delegate.h @@ -77,7 +77,7 @@ class EmbedderTestTimerHandlingDelegate final : public EmbedderTest::Delegate { void SetFailNextTimer() { fail_next_timer_ = true; } - protected: + private: std::multimap<int, Timer> expiry_to_timer_map_; // Keyed by timeout. bool fail_next_timer_ = false; int next_timer_id_ = 0; diff --git a/xfa/fwl/theme/cfwl_carettp.h b/xfa/fwl/theme/cfwl_carettp.h index a71afc935f..2fe01bed1a 100644 --- a/xfa/fwl/theme/cfwl_carettp.h +++ b/xfa/fwl/theme/cfwl_carettp.h @@ -17,7 +17,7 @@ class CFWL_CaretTP final : public CFWL_WidgetTP { // CFWL_WidgetTP void DrawBackground(CFWL_ThemeBackground* pParams) override; - protected: + private: void DrawCaretBK(CXFA_Graphics* pGraphics, uint32_t dwStates, const CFX_RectF* pRect, diff --git a/xfa/fwl/theme/cfwl_checkboxtp.h b/xfa/fwl/theme/cfwl_checkboxtp.h index fa06c7ec0e..506f78413a 100644 --- a/xfa/fwl/theme/cfwl_checkboxtp.h +++ b/xfa/fwl/theme/cfwl_checkboxtp.h @@ -23,7 +23,7 @@ class CFWL_CheckBoxTP final : public CFWL_WidgetTP { void DrawText(CFWL_ThemeText* pParams) override; void DrawBackground(CFWL_ThemeBackground* pParams) override; - protected: + private: struct CKBThemeData { FX_ARGB clrSignBorderNormal; FX_ARGB clrSignBorderDisable; @@ -66,12 +66,10 @@ class CFWL_CheckBoxTP final : public CFWL_WidgetTP { CFX_Matrix* pMatrix); void InitCheckPath(float fCheckLen); + void SetThemeData(); std::unique_ptr<CKBThemeData> m_pThemeData; std::unique_ptr<CXFA_GEPath> m_pCheckPath; - - private: - void SetThemeData(); }; #endif // XFA_FWL_THEME_CFWL_CHECKBOXTP_H_ diff --git a/xfa/fwl/theme/cfwl_comboboxtp.h b/xfa/fwl/theme/cfwl_comboboxtp.h index dd8311c8a1..1456143e43 100644 --- a/xfa/fwl/theme/cfwl_comboboxtp.h +++ b/xfa/fwl/theme/cfwl_comboboxtp.h @@ -17,7 +17,7 @@ class CFWL_ComboBoxTP final : public CFWL_WidgetTP { // CFWL_WidgetTP void DrawBackground(CFWL_ThemeBackground* pParams) override; - protected: + private: void DrawDropDownButton(CFWL_ThemeBackground* pParams, uint32_t dwStates, CFX_Matrix* pMatrix); diff --git a/xfa/fwl/theme/cfwl_datetimepickertp.h b/xfa/fwl/theme/cfwl_datetimepickertp.h index 5a548511cf..e7a7239e8d 100644 --- a/xfa/fwl/theme/cfwl_datetimepickertp.h +++ b/xfa/fwl/theme/cfwl_datetimepickertp.h @@ -17,7 +17,7 @@ class CFWL_DateTimePickerTP final : public CFWL_WidgetTP { // CFWL_WidgetTP void DrawBackground(CFWL_ThemeBackground* pParams) override; - protected: + private: void DrawDropDownButton(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); }; diff --git a/xfa/fwl/theme/cfwl_listboxtp.h b/xfa/fwl/theme/cfwl_listboxtp.h index 95ce01c441..e87ac6f062 100644 --- a/xfa/fwl/theme/cfwl_listboxtp.h +++ b/xfa/fwl/theme/cfwl_listboxtp.h @@ -17,7 +17,7 @@ class CFWL_ListBoxTP final : public CFWL_WidgetTP { // CFWL_WidgetTP void DrawBackground(CFWL_ThemeBackground* pParams) override; - protected: + private: void DrawListBoxItem(CXFA_Graphics* pGraphics, uint32_t dwStates, const CFX_RectF* prtItem, diff --git a/xfa/fwl/theme/cfwl_monthcalendartp.h b/xfa/fwl/theme/cfwl_monthcalendartp.h index 95e2a190b7..4dd08b49c3 100644 --- a/xfa/fwl/theme/cfwl_monthcalendartp.h +++ b/xfa/fwl/theme/cfwl_monthcalendartp.h @@ -22,7 +22,7 @@ class CFWL_MonthCalendarTP final : public CFWL_WidgetTP { void DrawBackground(CFWL_ThemeBackground* pParams) override; void DrawText(CFWL_ThemeText* pParams) override; - protected: + private: struct MCThemeData { FX_ARGB clrCaption; FX_ARGB clrSeperator; @@ -43,12 +43,10 @@ class CFWL_MonthCalendarTP final : public CFWL_WidgetTP { void DrawHSeperator(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); void DrawWeekNumSep(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); FWLTHEME_STATE GetState(uint32_t dwFWLStates); + void SetThemeData(); std::unique_ptr<MCThemeData> m_pThemeData; WideString wsResource; - - private: - void SetThemeData(); }; #endif // XFA_FWL_THEME_CFWL_MONTHCALENDARTP_H_ diff --git a/xfa/fwl/theme/cfwl_pushbuttontp.h b/xfa/fwl/theme/cfwl_pushbuttontp.h index 2e1782a1b5..6b49ba6479 100644 --- a/xfa/fwl/theme/cfwl_pushbuttontp.h +++ b/xfa/fwl/theme/cfwl_pushbuttontp.h @@ -19,7 +19,7 @@ class CFWL_PushButtonTP final : public CFWL_WidgetTP { // CFWL_WidgetTP void DrawBackground(CFWL_ThemeBackground* pParams) override; - protected: + private: struct PBThemeData { FX_ARGB clrBorder[5]; FX_ARGB clrStart[5]; @@ -34,13 +34,10 @@ class CFWL_PushButtonTP final : public CFWL_WidgetTP { void SetBackgroudColor(uint32_t* pData); void SetCaptionColor(uint32_t* pData); void SetCornerColor(uint32_t* pData); - int32_t GetColorID(uint32_t dwStates) const; + void SetThemeData(); std::unique_ptr<PBThemeData> m_pThemeData; - - private: - void SetThemeData(); }; #endif // XFA_FWL_THEME_CFWL_PUSHBUTTONTP_H_ diff --git a/xfa/fwl/theme/cfwl_scrollbartp.h b/xfa/fwl/theme/cfwl_scrollbartp.h index 53cbb38d83..2a202e1b1e 100644 --- a/xfa/fwl/theme/cfwl_scrollbartp.h +++ b/xfa/fwl/theme/cfwl_scrollbartp.h @@ -19,7 +19,7 @@ class CFWL_ScrollBarTP final : public CFWL_WidgetTP { // CFWL_WidgetTP void DrawBackground(CFWL_ThemeBackground* pParams) override; - protected: + private: struct SBThemeData { FX_ARGB clrTrackBKStart; FX_ARGB clrTrackBKEnd; @@ -51,11 +51,9 @@ class CFWL_ScrollBarTP final : public CFWL_WidgetTP { bool bVert, FWLTHEME_STATE eState, CFX_Matrix* pMatrix); + void SetThemeData(); std::unique_ptr<SBThemeData> m_pThemeData; - - private: - void SetThemeData(); }; #endif // XFA_FWL_THEME_CFWL_SCROLLBARTP_H_ diff --git a/xfa/fxfa/cxfa_ffpageview.h b/xfa/fxfa/cxfa_ffpageview.h index a745b0639b..16477fa2d3 100644 --- a/xfa/fxfa/cxfa_ffpageview.h +++ b/xfa/fxfa/cxfa_ffpageview.h @@ -29,7 +29,7 @@ class CXFA_FFPageView final : public CXFA_ContainerLayoutItem { uint32_t dwTraverseWay, uint32_t dwWidgetFilter); - protected: + private: UnownedPtr<CXFA_FFDocView> const m_pDocView; }; @@ -46,7 +46,7 @@ class CXFA_FFPageWidgetIterator final : public IXFA_WidgetIterator { CXFA_FFWidget* GetCurrentWidget() override; bool SetCurrentWidget(CXFA_FFWidget* hWidget) override; - protected: + private: CXFA_FFWidget* GetWidget(CXFA_LayoutItem* pLayoutItem); UnownedPtr<CXFA_FFPageView> m_pPageView; @@ -85,7 +85,7 @@ class CXFA_FFTabOrderPageWidgetIterator final : public IXFA_WidgetIterator { CXFA_FFWidget* GetCurrentWidget() override; bool SetCurrentWidget(CXFA_FFWidget* hWidget) override; - protected: + private: CXFA_FFWidget* GetTraverseWidget(CXFA_FFWidget* pWidget); CXFA_FFWidget* FindWidgetByName(const WideString& wsWidgetName, CXFA_FFWidget* pRefWidget); |