| 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 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h" |
| 7 #include "fpdfsdk/include/fsdk_define.h" | 8 #include "fpdfsdk/include/fsdk_define.h" |
| 8 #include "fpdfsdk/include/fsdk_mgr.h" | 9 #include "fpdfsdk/include/fsdk_mgr.h" |
| 9 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h" | |
| 10 | 10 |
| 11 std::vector<CFWL_TimerInfo*> CXFA_FWLAdapterTimerMgr::s_TimerArray; | 11 std::vector<CFWL_TimerInfo*> CXFA_FWLAdapterTimerMgr::s_TimerArray; |
| 12 | 12 |
| 13 FWL_ERR CXFA_FWLAdapterTimerMgr::Start(IFWL_Timer* pTimer, | 13 FWL_ERR CXFA_FWLAdapterTimerMgr::Start(IFWL_Timer* pTimer, |
| 14 FX_DWORD dwElapse, | 14 FX_DWORD dwElapse, |
| 15 FWL_HTIMER& hTimer, | 15 FWL_HTIMER& hTimer, |
| 16 FX_BOOL bImmediately) { | 16 FX_BOOL bImmediately) { |
| 17 if (!m_pEnv) | 17 if (!m_pEnv) |
| 18 return FWL_ERR_Indefinite; | 18 return FWL_ERR_Indefinite; |
| 19 | 19 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 38 } | 38 } |
| 39 | 39 |
| 40 void CXFA_FWLAdapterTimerMgr::TimerProc(int32_t idEvent) { | 40 void CXFA_FWLAdapterTimerMgr::TimerProc(int32_t idEvent) { |
| 41 for (CFWL_TimerInfo* pInfo : s_TimerArray) { | 41 for (CFWL_TimerInfo* pInfo : s_TimerArray) { |
| 42 if (pInfo->uIDEvent == idEvent) { | 42 if (pInfo->uIDEvent == idEvent) { |
| 43 pInfo->pTimer->Run(reinterpret_cast<FWL_HTIMER>(pInfo)); | 43 pInfo->pTimer->Run(reinterpret_cast<FWL_HTIMER>(pInfo)); |
| 44 break; | 44 break; |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 } | 47 } |
| OLD | NEW |