• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 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_PWL_CPWL_TIMER_HANDLER_H_
8 #define FPDFSDK_PWL_CPWL_TIMER_HANDLER_H_
9 
10 #include <memory>
11 
12 class CFX_SystemHandler;
13 class CPWL_Timer;
14 
15 class CPWL_TimerHandler {
16  public:
17   CPWL_TimerHandler();
18   virtual ~CPWL_TimerHandler();
19 
20   virtual void TimerProc();
21   virtual CFX_SystemHandler* GetSystemHandler() const = 0;
22 
23   void BeginTimer(int32_t nElapse);
24   void EndTimer();
25 
26  private:
27   std::unique_ptr<CPWL_Timer> m_pTimer;
28 };
29 
30 #endif  // FPDFSDK_PWL_CPWL_TIMER_HANDLER_H_
31