From 3e577c2660c89646b56753839c1ec59c3ad187f4 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Thu, 10 Nov 2016 11:01:16 -0800 Subject: Convert FWL_SCBCODE to an enum class This Cl changes the enum into an enum class and updates calling code to pass the enum instead of a uint32_t Review-Url: https://codereview.chromium.org/2482253004 --- xfa/fwl/core/cfwl_event.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'xfa/fwl/core/cfwl_event.h') diff --git a/xfa/fwl/core/cfwl_event.h b/xfa/fwl/core/cfwl_event.h index f43ebb7cc9..ba8a4d683f 100644 --- a/xfa/fwl/core/cfwl_event.h +++ b/xfa/fwl/core/cfwl_event.h @@ -13,6 +13,19 @@ #include "xfa/fwl/core/cfwl_message.h" #include "xfa/fwl/core/fwl_error.h" +enum class FWL_SCBCODE { + None = 1, + Min, + Max, + PageBackward, + PageForward, + StepBackward, + StepForward, + Pos, + TrackPos, + EndScroll, +}; + enum class CFWL_EventType { None = 0, @@ -137,7 +150,7 @@ FWL_EVENT_DEF(CFWL_EvtDraw, CFWL_EventType::Draw, CFX_Graphics* m_pGraphics; FWL_EVENT_DEF(CFWL_EvtClick, CFWL_EventType::Click) -FWL_EVENT_DEF(CFWL_EvtScroll, CFWL_EventType::Scroll, uint32_t m_iScrollCode; +FWL_EVENT_DEF(CFWL_EvtScroll, CFWL_EventType::Scroll, FWL_SCBCODE m_iScrollCode; FX_FLOAT m_fPos; bool* m_pRet;) -- cgit v1.2.3