From 8faac627c4562098c62f8497e56a44500c3c199b Mon Sep 17 00:00:00 2001 From: dsinclair Date: Thu, 15 Sep 2016 12:41:50 -0700 Subject: Cleanup CFX_SystemHandler. This CL cleans up signatures and code in CFX_SystemHandler. Review-Url: https://codereview.chromium.org/2341693003 --- fpdfsdk/cfx_systemhandler.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'fpdfsdk/cfx_systemhandler.h') diff --git a/fpdfsdk/cfx_systemhandler.h b/fpdfsdk/cfx_systemhandler.h index a1c277d04b..5f8a871f05 100644 --- a/fpdfsdk/cfx_systemhandler.h +++ b/fpdfsdk/cfx_systemhandler.h @@ -10,8 +10,6 @@ #include "core/fxcrt/include/fx_coordinates.h" #include "core/fxcrt/include/fx_system.h" -using FX_HWND = void*; -using FX_HMENU = void*; using TimerCallback = void (*)(int32_t idEvent); struct FX_SYSTEMTIME { @@ -43,17 +41,19 @@ struct FX_SYSTEMTIME { #define FXCT_HBEAM 4 #define FXCT_HAND 5 +class CFFL_FormFiller; class CPDF_Document; class CPDF_Font; class CPDFSDK_Environment; +class CPDFSDK_Widget; class CFX_SystemHandler { public: explicit CFX_SystemHandler(CPDFSDK_Environment* pEnv) : m_pEnv(pEnv) {} ~CFX_SystemHandler() {} - void InvalidateRect(FX_HWND hWnd, FX_RECT rect); - void OutputSelectedRect(void* pFormFiller, CFX_FloatRect& rect); + void InvalidateRect(CPDFSDK_Widget* widget, FX_RECT rect); + void OutputSelectedRect(CFFL_FormFiller* pFormFiller, CFX_FloatRect& rect); bool IsSelectionImplemented() const; void SetCursor(int32_t nCursorType); @@ -62,14 +62,14 @@ class CFX_SystemHandler { CPDF_Font* AddNativeTrueTypeFontToPDF(CPDF_Document* pDoc, CFX_ByteString sFontFaceName, uint8_t nCharset); + int32_t SetTimer(int32_t uElapse, TimerCallback lpTimerFunc); void KillTimer(int32_t nID); + bool IsSHIFTKeyDown(uint32_t nFlag) const; bool IsCTRLKeyDown(uint32_t nFlag) const; bool IsALTKeyDown(uint32_t nFlag) const; - FX_SYSTEMTIME GetLocalTime(); - private: CPDFSDK_Environment* const m_pEnv; }; -- cgit v1.2.3