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 "../../include/fsdk_define.h" | 7 #include "fpdfsdk/include/fsdk_define.h" |
8 #include "../../include/fsdk_mgr.h" | 8 #include "fpdfsdk/include/fsdk_mgr.h" |
9 #include "../../include/fpdfxfa/fpdfxfa_util.h" | 9 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h" |
10 | 10 |
11 CFX_PtrArray CXFA_FWLAdapterTimerMgr::ms_timerArray; | 11 CFX_PtrArray CXFA_FWLAdapterTimerMgr::ms_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 /* = TRUE */) { | 16 FX_BOOL bImmediately /* = TRUE */) { |
17 if (m_pEnv) { | 17 if (m_pEnv) { |
18 uint32_t uIDEvent = m_pEnv->FFI_SetTimer(dwElapse, TimerProc); | 18 uint32_t uIDEvent = m_pEnv->FFI_SetTimer(dwElapse, TimerProc); |
19 CFWL_TimerInfo* pInfo = new CFWL_TimerInfo; | 19 CFWL_TimerInfo* pInfo = new CFWL_TimerInfo; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 (CFWL_TimerInfo*)CXFA_FWLAdapterTimerMgr::ms_timerArray.GetAt(i); | 56 (CFWL_TimerInfo*)CXFA_FWLAdapterTimerMgr::ms_timerArray.GetAt(i); |
57 if (pTemp->uIDEvent == idEvent) { | 57 if (pTemp->uIDEvent == idEvent) { |
58 pInfo = pTemp; | 58 pInfo = pTemp; |
59 break; | 59 break; |
60 } | 60 } |
61 } | 61 } |
62 if (pInfo) { | 62 if (pInfo) { |
63 pInfo->pTimer->Run((FWL_HTIMER)pInfo); | 63 pInfo->pTimer->Run((FWL_HTIMER)pInfo); |
64 } | 64 } |
65 } | 65 } |
OLD | NEW |