From fac46f8ffe6933d6c4bbf4bc8d4e138753cfa876 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 2 Jun 2017 14:20:04 -0700 Subject: Split timer classes out of PWL_Wnd.h Rename CPWL_TimerHandler and simplify CPWL_Wnd. Change-Id: Ib3850570fc5afdc2fa30f47a5b8754fea3cbf3e6 Reviewed-on: https://pdfium-review.googlesource.com/6175 Reviewed-by: Tom Sepez Commit-Queue: Lei Zhang --- fpdfsdk/pdfwindow/cpwl_timer.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 fpdfsdk/pdfwindow/cpwl_timer.h (limited to 'fpdfsdk/pdfwindow/cpwl_timer.h') diff --git a/fpdfsdk/pdfwindow/cpwl_timer.h b/fpdfsdk/pdfwindow/cpwl_timer.h new file mode 100644 index 0000000000..32a68fcbc2 --- /dev/null +++ b/fpdfsdk/pdfwindow/cpwl_timer.h @@ -0,0 +1,32 @@ +// Copyright 2017 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef FPDFSDK_PDFWINDOW_CPWL_TIMER_H_ +#define FPDFSDK_PDFWINDOW_CPWL_TIMER_H_ + +#include "core/fxcrt/cfx_unowned_ptr.h" +#include "core/fxcrt/fx_basic.h" + +class CFX_SystemHandler; +class CPWL_TimerHandler; + +class CPWL_Timer { + public: + CPWL_Timer(CPWL_TimerHandler* pAttached, CFX_SystemHandler* pSystemHandler); + virtual ~CPWL_Timer(); + + static void TimerProc(int32_t idEvent); + + int32_t SetPWLTimer(int32_t nElapse); + void KillPWLTimer(); + + private: + int32_t m_nTimerID; + CFX_UnownedPtr m_pAttached; + CFX_UnownedPtr m_pSystemHandler; +}; + +#endif // FPDFSDK_PDFWINDOW_CPWL_TIMER_H_ -- cgit v1.2.3