1 // Copyright 2014 PDFium Authors. All rights reserved.
\r
2 // Use of this source code is governed by a BSD-style license that can be
\r
3 // found in the LICENSE file.
\r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
\r
7 #include "../../../foxitlib.h"
\r
8 #include "include/fwl_targetimp.h"
\r
9 #include "include/fwl_threadimp.h"
\r
10 #include "include/fwl_appimp.h"
\r
11 FWL_HTIMER FWL_StartTimer(IFWL_Timer *pTimer, FX_DWORD dwElapse, FX_BOOL bImmediately )
\r
13 IFWL_AdapterNative *pAdapterNative = FWL_GetAdapterNative();
\r
14 _FWL_RETURN_VALUE_IF_FAIL(pAdapterNative, NULL);
\r
15 IFWL_AdapterTimerMgr *pAdapterTimerMgr = pAdapterNative->GetTimerMgr();
\r
16 _FWL_RETURN_VALUE_IF_FAIL(pAdapterTimerMgr, NULL);
\r
17 FWL_HTIMER hTimer = NULL;
\r
18 pAdapterTimerMgr->Start(pTimer, dwElapse, hTimer, bImmediately);
\r
21 FX_INT32 FWL_StopTimer(FWL_HTIMER hTimer)
\r
23 IFWL_AdapterNative *pAdapterNative = FWL_GetAdapterNative();
\r
24 _FWL_RETURN_VALUE_IF_FAIL(pAdapterNative, FWL_ERR_Indefinite);
\r
25 IFWL_AdapterTimerMgr *pAdapterTimerMgr = pAdapterNative->GetTimerMgr();
\r
26 _FWL_RETURN_VALUE_IF_FAIL(pAdapterTimerMgr, FWL_ERR_Indefinite);
\r
27 return pAdapterTimerMgr->Stop(hTimer);
\r