summaryrefslogtreecommitdiff
path: root/fpdfsdk/cfx_systemhandler.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-09-15 12:41:50 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-15 12:41:50 -0700
commit8faac627c4562098c62f8497e56a44500c3c199b (patch)
tree1eeca4146f5376e4416b39c52a091a6d60d93d54 /fpdfsdk/cfx_systemhandler.h
parent4935e606c632e38af8fca1729f8688fa0d152b90 (diff)
downloadpdfium-8faac627c4562098c62f8497e56a44500c3c199b.tar.xz
Cleanup CFX_SystemHandler.
This CL cleans up signatures and code in CFX_SystemHandler. Review-Url: https://codereview.chromium.org/2341693003
Diffstat (limited to 'fpdfsdk/cfx_systemhandler.h')
-rw-r--r--fpdfsdk/cfx_systemhandler.h12
1 files changed, 6 insertions, 6 deletions
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;
};