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 /fpdfsdk/fpdfxfa/include | |
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 'fpdfsdk/fpdfxfa/include')
-rw-r--r-- | fpdfsdk/fpdfxfa/include/fpdfxfa_util.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/fpdfsdk/fpdfxfa/include/fpdfxfa_util.h b/fpdfsdk/fpdfxfa/include/fpdfxfa_util.h index dce9a74229..fb5bd0d1b7 100644 --- a/fpdfsdk/fpdfxfa/include/fpdfxfa_util.h +++ b/fpdfsdk/fpdfxfa/include/fpdfxfa_util.h @@ -22,11 +22,12 @@ struct CFWL_TimerInfo; class CXFA_FWLAdapterTimerMgr : public IFWL_AdapterTimerMgr { public: CXFA_FWLAdapterTimerMgr(CPDFDoc_Environment* pEnv) : m_pEnv(pEnv) {} - virtual FWL_Error Start(IFWL_Timer* pTimer, - uint32_t dwElapse, - FWL_HTIMER& hTimer, - FX_BOOL bImmediately = TRUE); - virtual FWL_Error Stop(FWL_HTIMER hTimer); + + FWL_Error Start(IFWL_Timer* pTimer, + uint32_t dwElapse, + bool bImmediately, + IFWL_TimerInfo** pTimerInfo) override; + FWL_Error Stop(IFWL_TimerInfo* pTimerInfo) override; protected: static void TimerProc(int32_t idEvent); @@ -35,7 +36,7 @@ class CXFA_FWLAdapterTimerMgr : public IFWL_AdapterTimerMgr { CPDFDoc_Environment* const m_pEnv; }; -struct CFWL_TimerInfo { +struct CFWL_TimerInfo : public IFWL_TimerInfo { CFWL_TimerInfo() : pTimer(nullptr) {} CFWL_TimerInfo(int32_t event, IFWL_Timer* timer) : idEvent(event), pTimer(timer) {} |