summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/PWL_Wnd.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-06-02 14:20:04 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-06-02 21:33:03 +0000
commitfac46f8ffe6933d6c4bbf4bc8d4e138753cfa876 (patch)
tree399a1581e6c77c048aadec417aff94d4816230a3 /fpdfsdk/pdfwindow/PWL_Wnd.h
parentd332e2d6d65724486def154f7486ba9088849c1d (diff)
downloadpdfium-fac46f8ffe6933d6c4bbf4bc8d4e138753cfa876.tar.xz
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 <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/pdfwindow/PWL_Wnd.h')
-rw-r--r--fpdfsdk/pdfwindow/PWL_Wnd.h34
1 files changed, 2 insertions, 32 deletions
diff --git a/fpdfsdk/pdfwindow/PWL_Wnd.h b/fpdfsdk/pdfwindow/PWL_Wnd.h
index e3b79179c9..d9d2f8ed66 100644
--- a/fpdfsdk/pdfwindow/PWL_Wnd.h
+++ b/fpdfsdk/pdfwindow/PWL_Wnd.h
@@ -14,14 +14,13 @@
#include "core/fxcrt/cfx_observable.h"
#include "core/fxcrt/cfx_unowned_ptr.h"
#include "core/fxcrt/fx_basic.h"
-#include "fpdfsdk/cfx_systemhandler.h"
#include "fpdfsdk/cpdfsdk_widget.h"
#include "fpdfsdk/pdfwindow/cpwl_color.h"
+#include "fpdfsdk/pdfwindow/cpwl_timer.h"
+#include "fpdfsdk/pdfwindow/cpwl_timer_handler.h"
class CPWL_MsgControl;
class CPWL_ScrollBar;
-class CPWL_Timer;
-class CPWL_TimerHandler;
class CPWL_Wnd;
class CFX_SystemHandler;
class IPVT_FontMap;
@@ -203,35 +202,6 @@ struct PWL_CREATEPARAM {
CFX_Matrix mtChild; // ignore
};
-class CPWL_Timer {
- public:
- CPWL_Timer(CPWL_TimerHandler* pAttached, CFX_SystemHandler* pSystemHandler);
- virtual ~CPWL_Timer();
-
- int32_t SetPWLTimer(int32_t nElapse);
- void KillPWLTimer();
- static void TimerProc(int32_t idEvent);
-
- private:
- int32_t m_nTimerID;
- CFX_UnownedPtr<CPWL_TimerHandler> m_pAttached;
- CFX_UnownedPtr<CFX_SystemHandler> m_pSystemHandler;
-};
-
-class CPWL_TimerHandler {
- public:
- CPWL_TimerHandler();
- virtual ~CPWL_TimerHandler();
-
- void BeginTimer(int32_t nElapse);
- void EndTimer();
- virtual void TimerProc();
- virtual CFX_SystemHandler* GetSystemHandler() const = 0;
-
- private:
- std::unique_ptr<CPWL_Timer> m_pTimer;
-};
-
class CPWL_Wnd : public CPWL_TimerHandler {
public:
CPWL_Wnd();