From a4060a324d606d5a8e1d2a16d3b55a6d14a0ddbf Mon Sep 17 00:00:00 2001 From: dsinclair Date: Thu, 13 Oct 2016 11:00:00 -0700 Subject: Remove duplicate FWL key flags The FWL key flags exist in two places, with different values between them. This CL combines them to be in a single location. Review-Url: https://codereview.chromium.org/2415743003 --- xfa/fwl/core/fwl_noteimp.h | 10 ---------- xfa/fwl/core/ifwl_app.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'xfa/fwl/core') diff --git a/xfa/fwl/core/fwl_noteimp.h b/xfa/fwl/core/fwl_noteimp.h index 9a0723de7b..23b3c991ab 100644 --- a/xfa/fwl/core/fwl_noteimp.h +++ b/xfa/fwl/core/fwl_noteimp.h @@ -16,16 +16,6 @@ #include "xfa/fwl/core/ifwl_widget.h" #include "xfa/fxgraphics/cfx_graphics.h" -enum FWL_KeyFlag { - FWL_KEYFLAG_Ctrl = 1 << 0, - FWL_KEYFLAG_Alt = 1 << 1, - FWL_KEYFLAG_Shift = 1 << 2, - FWL_KEYFLAG_Command = 1 << 3, - FWL_KEYFLAG_LButton = 1 << 4, - FWL_KEYFLAG_RButton = 1 << 5, - FWL_KEYFLAG_MButton = 1 << 6 -}; - class CFWL_CoreToolTipDP; class CFWL_EventTarget; class CFWL_MsgActivate; diff --git a/xfa/fwl/core/ifwl_app.h b/xfa/fwl/core/ifwl_app.h index 03d44796fd..c030e26b2e 100644 --- a/xfa/fwl/core/ifwl_app.h +++ b/xfa/fwl/core/ifwl_app.h @@ -28,6 +28,16 @@ class CXFA_FWLAdapterWidgetMgr; class IFWL_ThemeProvider; class IFWL_Widget; +enum FWL_KeyFlag { + FWL_KEYFLAG_Ctrl = 1 << 0, + FWL_KEYFLAG_Alt = 1 << 1, + FWL_KEYFLAG_Shift = 1 << 2, + FWL_KEYFLAG_Command = 1 << 3, + FWL_KEYFLAG_LButton = 1 << 4, + FWL_KEYFLAG_RButton = 1 << 5, + FWL_KEYFLAG_MButton = 1 << 6 +}; + class IFWL_App { public: static IFWL_App* Create(CXFA_FFApp* pAdapter); -- cgit v1.2.3