diff options
author | tsepez <tsepez@chromium.org> | 2016-06-06 13:23:55 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-06 13:23:55 -0700 |
commit | 6f4f2335cfd22d26db154fbd51ab553fb9902918 (patch) | |
tree | 175379ace9283314d32cf270fcdeba0c1c55cfbe /xfa/fwl/core/ifwl_timer.h | |
parent | 25dc95a3cb9099550fa4d9d4f1c74b0f996fbc41 (diff) | |
download | pdfium-6f4f2335cfd22d26db154fbd51ab553fb9902918.tar.xz |
Remove FWL_HTIMER in favor of IWFL_TimerInfo
Review-Url: https://codereview.chromium.org/2037573003
Diffstat (limited to 'xfa/fwl/core/ifwl_timer.h')
-rw-r--r-- | xfa/fwl/core/ifwl_timer.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/xfa/fwl/core/ifwl_timer.h b/xfa/fwl/core/ifwl_timer.h index 0143560410..162fef9692 100644 --- a/xfa/fwl/core/ifwl_timer.h +++ b/xfa/fwl/core/ifwl_timer.h @@ -8,17 +8,21 @@ #define XFA_FWL_CORE_IFWL_TIMER_H_ #include "core/fxcrt/include/fx_system.h" +#include "xfa/fwl/core/fwl_error.h" -typedef struct FWL_HTIMER_ { void* pData; } * FWL_HTIMER; +class IFWL_TimerInfo; class IFWL_Timer { public: virtual ~IFWL_Timer() {} - virtual int32_t Run(FWL_HTIMER hTimer) = 0; + virtual void Run(IFWL_TimerInfo* hTimer) = 0; + IFWL_TimerInfo* StartTimer(uint32_t dwElapse, bool bImmediately); +}; + +class IFWL_TimerInfo { + public: + virtual ~IFWL_TimerInfo() {} + FWL_Error StopTimer(); }; -FWL_HTIMER FWL_StartTimer(IFWL_Timer* pTimer, - uint32_t dwElapse, - FX_BOOL bImmediately = TRUE); -FWL_Error FWL_StopTimer(FWL_HTIMER hTimer); #endif // XFA_FWL_CORE_IFWL_TIMER_H_ |