• 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_FPDFXFA_CXFA_FWLADAPTERTIMERMGR_H_
8 #define FPDFSDK_FPDFXFA_CXFA_FWLADAPTERTIMERMGR_H_
9 
10 #include <memory>
11 #include <vector>
12 
13 #include "core/fxcrt/unowned_ptr.h"
14 #include "fpdfsdk/fpdfxfa/cpdfxfa_context.h"
15 #include "xfa/fwl/cfwl_timerinfo.h"
16 #include "xfa/fwl/ifwl_adaptertimermgr.h"
17 
18 class CXFA_FWLAdapterTimerMgr : public IFWL_AdapterTimerMgr {
19  public:
20   explicit CXFA_FWLAdapterTimerMgr(CPDFSDK_FormFillEnvironment* pFormFillEnv);
21   ~CXFA_FWLAdapterTimerMgr();
22 
23   void Start(CFWL_Timer* pTimer,
24              uint32_t dwElapse,
25              bool bImmediately,
26              CFWL_TimerInfo** pTimerInfo) override;
27   void Stop(CFWL_TimerInfo* pTimerInfo) override;
28 
29  protected:
30   static void TimerProc(int32_t idEvent);
31 
32   static std::vector<CFWL_TimerInfo*>* s_TimerArray;
33   UnownedPtr<CPDFSDK_FormFillEnvironment> const m_pFormFillEnv;
34 };
35 
36 #endif  // FPDFSDK_FPDFXFA_CXFA_FWLADAPTERTIMERMGR_H_
37