Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: fpdfsdk/cfx_systemhandler.h

Issue 2341693003: Cleanup CFX_SystemHandler. (Closed)
Patch Set: Review feedback Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | fpdfsdk/cfx_systemhandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/cfx_systemhandler.h
diff --git a/fpdfsdk/cfx_systemhandler.h b/fpdfsdk/cfx_systemhandler.h
index a1c277d04b3a8b25cf74fb46485a65ae6acfa720..5f8a871f05079716058b6588de7082804ac4119d 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;
};
« no previous file with comments | « no previous file | fpdfsdk/cfx_systemhandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698