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