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 "xfa/src/foxitlib.h" | 7 #include "xfa/src/foxitlib.h" |
8 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h" | 8 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h" |
9 #include "xfa/src/fwl/src/core/include/fwl_threadimp.h" | 9 #include "xfa/src/fwl/src/core/include/fwl_threadimp.h" |
10 #include "xfa/src/fwl/src/core/include/fwl_appimp.h" | 10 #include "xfa/src/fwl/src/core/include/fwl_appimp.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 } | 23 } |
24 int32_t FWL_StopTimer(FWL_HTIMER hTimer) { | 24 int32_t FWL_StopTimer(FWL_HTIMER hTimer) { |
25 IFWL_AdapterNative* pAdapterNative = FWL_GetAdapterNative(); | 25 IFWL_AdapterNative* pAdapterNative = FWL_GetAdapterNative(); |
26 if (!pAdapterNative) | 26 if (!pAdapterNative) |
27 return FWL_ERR_Indefinite; | 27 return FWL_ERR_Indefinite; |
28 IFWL_AdapterTimerMgr* pAdapterTimerMgr = pAdapterNative->GetTimerMgr(); | 28 IFWL_AdapterTimerMgr* pAdapterTimerMgr = pAdapterNative->GetTimerMgr(); |
29 if (!pAdapterTimerMgr) | 29 if (!pAdapterTimerMgr) |
30 return FWL_ERR_Indefinite; | 30 return FWL_ERR_Indefinite; |
31 return pAdapterTimerMgr->Stop(hTimer); | 31 return pAdapterTimerMgr->Stop(hTimer); |
32 } | 32 } |
OLD | NEW |