From 4a6525492593866be3653a8a37923fe876b5171e Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Tue, 22 Aug 2017 10:59:49 -0400 Subject: Simplifying state of CPDFSDK_PageView. Change-Id: Ic0849cce80e1797637fd875bdedd7cc560b98f22 Reviewed-on: https://pdfium-review.googlesource.com/11210 Reviewed-by: dsinclair Commit-Queue: Henrique Nakashima --- fpdfsdk/cpdfsdk_pageview.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'fpdfsdk/cpdfsdk_pageview.h') diff --git a/fpdfsdk/cpdfsdk_pageview.h b/fpdfsdk/cpdfsdk_pageview.h index face5072c7..c23aaa7988 100644 --- a/fpdfsdk/cpdfsdk_pageview.h +++ b/fpdfsdk/cpdfsdk_pageview.h @@ -14,6 +14,7 @@ #include "core/fxcrt/cfx_unowned_ptr.h" #include "core/fxcrt/fx_system.h" #include "fpdfsdk/cpdfsdk_annot.h" +#include "fpdfsdk/cpdfsdk_annothandlermgr.h" class CFX_RenderDevice; class CPDF_AnnotList; @@ -104,6 +105,13 @@ class CPDFSDK_PageView final : public CPDF_Page::View { int GetPageIndexForStaticPDF() const; + void EnterWidget(CPDFSDK_AnnotHandlerMgr* pAnnotHandlerMgr, + CPDFSDK_Annot::ObservedPtr* pAnnot, + uint32_t nFlag); + void ExitWidget(CPDFSDK_AnnotHandlerMgr* pAnnotHandlerMgr, + bool callExitCallback, + uint32_t nFlag); + CFX_Matrix m_curMatrix; UnderlyingPageType* const m_page; std::unique_ptr m_pAnnotList; @@ -113,7 +121,6 @@ class CPDFSDK_PageView final : public CPDF_Page::View { #ifndef PDF_ENABLE_XFA bool m_bOwnsPage; #endif // PDF_ENABLE_XFA - bool m_bEnterWidget; bool m_bOnWidget; bool m_bValid; bool m_bLocked; -- cgit v1.2.3