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 _FPDFXFA_UTIL_H_ | 7 #ifndef FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_UTIL_H_ |
8 #define _FPDFXFA_UTIL_H_ | 8 #define FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_UTIL_H_ |
| 9 |
| 10 #include "xfa/include/fwl/adapter/fwl_adaptertimermgr.h" |
9 | 11 |
10 #define JS_STR_VIEWERTYPE_STANDARD L"Exchange" | 12 #define JS_STR_VIEWERTYPE_STANDARD L"Exchange" |
11 #define JS_STR_LANGUANGE L"ENU" | 13 #define JS_STR_LANGUANGE L"ENU" |
12 #define JS_STR_VIEWERVARIATION L"Full" | 14 #define JS_STR_VIEWERVARIATION L"Full" |
13 #define JS_STR_VIEWERVERSION_XFA L"11" | 15 #define JS_STR_VIEWERVERSION_XFA L"11" |
14 | 16 |
15 class CXFA_FWLAdapterTimerMgr : public IFWL_AdapterTimerMgr { | 17 class CXFA_FWLAdapterTimerMgr : public IFWL_AdapterTimerMgr { |
16 public: | 18 public: |
17 CXFA_FWLAdapterTimerMgr(CPDFDoc_Environment* pEnv) : m_pEnv(pEnv) {} | 19 CXFA_FWLAdapterTimerMgr(CPDFDoc_Environment* pEnv) : m_pEnv(pEnv) {} |
18 virtual FWL_ERR Start(IFWL_Timer* pTimer, | 20 virtual FWL_ERR Start(IFWL_Timer* pTimer, |
19 FX_DWORD dwElapse, | 21 FX_DWORD dwElapse, |
20 FWL_HTIMER& hTimer, | 22 FWL_HTIMER& hTimer, |
21 FX_BOOL bImmediately = TRUE); | 23 FX_BOOL bImmediately = TRUE); |
22 virtual FWL_ERR Stop(FWL_HTIMER hTimer); | 24 virtual FWL_ERR Stop(FWL_HTIMER hTimer); |
23 | 25 |
24 protected: | 26 protected: |
25 static void TimerProc(int32_t idEvent); | 27 static void TimerProc(int32_t idEvent); |
26 | 28 |
27 static CFX_PtrArray ms_timerArray; | 29 static CFX_PtrArray ms_timerArray; |
28 CPDFDoc_Environment* m_pEnv; | 30 CPDFDoc_Environment* m_pEnv; |
29 }; | 31 }; |
30 | 32 |
31 class CFWL_TimerInfo { | 33 class CFWL_TimerInfo { |
32 public: | 34 public: |
33 CFWL_TimerInfo() : pTimer(NULL) {} | 35 CFWL_TimerInfo() : pTimer(nullptr) {} |
34 uint32_t uIDEvent; | 36 uint32_t uIDEvent; |
35 IFWL_Timer* pTimer; | 37 IFWL_Timer* pTimer; |
36 }; | 38 }; |
37 | 39 |
38 #endif | 40 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_UTIL_H_ |
OLD | NEW |