diff options
author | dsinclair <dsinclair@chromium.org> | 2016-11-10 11:01:16 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-10 11:01:16 -0800 |
commit | 3e577c2660c89646b56753839c1ec59c3ad187f4 (patch) | |
tree | 9b35b8cedcc885230ec521473ef2a3c9b5aaa6c6 /xfa/fwl/core/cfwl_event.h | |
parent | f3480661a20c259581e7c100b0d5d06950a9559b (diff) | |
download | pdfium-3e577c2660c89646b56753839c1ec59c3ad187f4.tar.xz |
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
Diffstat (limited to 'xfa/fwl/core/cfwl_event.h')
-rw-r--r-- | xfa/fwl/core/cfwl_event.h | 15 |
1 files changed, 14 insertions, 1 deletions
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;) |