OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_UTIL_H_ | 7 #ifndef FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_UTIL_H_ |
8 #define FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_UTIL_H_ | 8 #define FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_UTIL_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 13 matching lines...) Expand all Loading... |
24 CXFA_FWLAdapterTimerMgr(CPDFDoc_Environment* pEnv) : m_pEnv(pEnv) {} | 24 CXFA_FWLAdapterTimerMgr(CPDFDoc_Environment* pEnv) : m_pEnv(pEnv) {} |
25 virtual FWL_ERR Start(IFWL_Timer* pTimer, | 25 virtual FWL_ERR Start(IFWL_Timer* pTimer, |
26 FX_DWORD dwElapse, | 26 FX_DWORD dwElapse, |
27 FWL_HTIMER& hTimer, | 27 FWL_HTIMER& hTimer, |
28 FX_BOOL bImmediately = TRUE); | 28 FX_BOOL bImmediately = TRUE); |
29 virtual FWL_ERR Stop(FWL_HTIMER hTimer); | 29 virtual FWL_ERR Stop(FWL_HTIMER hTimer); |
30 | 30 |
31 protected: | 31 protected: |
32 static void TimerProc(int32_t idEvent); | 32 static void TimerProc(int32_t idEvent); |
33 | 33 |
34 static std::vector<CFWL_TimerInfo*> s_TimerArray; | 34 static std::vector<CFWL_TimerInfo*>* s_TimerArray; |
35 CPDFDoc_Environment* const m_pEnv; | 35 CPDFDoc_Environment* const m_pEnv; |
36 }; | 36 }; |
37 | 37 |
38 class CFWL_TimerInfo { | 38 class CFWL_TimerInfo { |
39 public: | 39 public: |
40 CFWL_TimerInfo() : pTimer(nullptr) {} | 40 CFWL_TimerInfo() : pTimer(nullptr) {} |
41 CFWL_TimerInfo(uint32_t event, IFWL_Timer* timer) | 41 CFWL_TimerInfo(uint32_t event, IFWL_Timer* timer) |
42 : uIDEvent(event), pTimer(timer) {} | 42 : uIDEvent(event), pTimer(timer) {} |
43 | 43 |
44 uint32_t uIDEvent; | 44 uint32_t uIDEvent; |
45 IFWL_Timer* pTimer; | 45 IFWL_Timer* pTimer; |
46 }; | 46 }; |
47 | 47 |
48 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_UTIL_H_ | 48 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_UTIL_H_ |
OLD | NEW |