• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_UTIL_H_
8 #define FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_UTIL_H_
9 
10 #include "xfa/include/fwl/adapter/fwl_adaptertimermgr.h"
11 
12 #define JS_STR_VIEWERTYPE_STANDARD L"Exchange"
13 #define JS_STR_LANGUANGE L"ENU"
14 #define JS_STR_VIEWERVARIATION L"Full"
15 #define JS_STR_VIEWERVERSION_XFA L"11"
16 
17 class CXFA_FWLAdapterTimerMgr : public IFWL_AdapterTimerMgr {
18  public:
CXFA_FWLAdapterTimerMgr(CPDFDoc_Environment * pEnv)19   CXFA_FWLAdapterTimerMgr(CPDFDoc_Environment* pEnv) : m_pEnv(pEnv) {}
20   virtual FWL_ERR Start(IFWL_Timer* pTimer,
21                         FX_DWORD dwElapse,
22                         FWL_HTIMER& hTimer,
23                         FX_BOOL bImmediately = TRUE);
24   virtual FWL_ERR Stop(FWL_HTIMER hTimer);
25 
26  protected:
27   static void TimerProc(int32_t idEvent);
28 
29   static CFX_PtrArray ms_timerArray;
30   CPDFDoc_Environment* m_pEnv;
31 };
32 
33 class CFWL_TimerInfo {
34  public:
CFWL_TimerInfo()35   CFWL_TimerInfo() : pTimer(nullptr) {}
36   uint32_t uIDEvent;
37   IFWL_Timer* pTimer;
38 };
39 
40 #endif  // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_UTIL_H_
41