From 242b95e2a9df3b57dd9aa28adea58ad51f84a221 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Wed, 16 Nov 2016 14:25:01 -0800 Subject: Move the message definitions to their own files. Currently the CFWL messages are created by a macro in the CFWL_Message header file. This Cl splits out the class to their own files and writes them directly instead of using the macro. Review-Url: https://codereview.chromium.org/2510823003 --- xfa/fwl/core/cfwl_widgetmgr.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'xfa/fwl/core/cfwl_widgetmgr.h') diff --git a/xfa/fwl/core/cfwl_widgetmgr.h b/xfa/fwl/core/cfwl_widgetmgr.h index 10176c2598..cdfa24a91d 100644 --- a/xfa/fwl/core/cfwl_widgetmgr.h +++ b/xfa/fwl/core/cfwl_widgetmgr.h @@ -14,7 +14,6 @@ #include "xfa/fwl/core/fwl_error.h" #include "xfa/fxgraphics/cfx_graphics.h" -#define FWL_WGTMGR_DisableThread 0x00000001 #define FWL_WGTMGR_DisableForm 0x00000002 class CFWL_Message; @@ -45,8 +44,7 @@ class CFWL_WidgetMgrItem { class IFWL_WidgetMgrDelegate { public: - virtual void OnSetCapability( - uint32_t dwCapability = FWL_WGTMGR_DisableThread) = 0; + virtual void OnSetCapability(uint32_t dwCapability) = 0; virtual void OnProcessMessageToForm(CFWL_Message* pMessage) = 0; virtual void OnDrawWidget(IFWL_Widget* pWidget, CFX_Graphics* pGraphics, @@ -59,8 +57,7 @@ class CFWL_WidgetMgr : public IFWL_WidgetMgrDelegate { ~CFWL_WidgetMgr(); // IFWL_WidgetMgrDelegate - void OnSetCapability( - uint32_t dwCapability = FWL_WGTMGR_DisableThread) override; + void OnSetCapability(uint32_t dwCapability) override; void OnProcessMessageToForm(CFWL_Message* pMessage) override; void OnDrawWidget(IFWL_Widget* pWidget, CFX_Graphics* pGraphics, @@ -117,10 +114,6 @@ class CFWL_WidgetMgr : public IFWL_WidgetMgrDelegate { void ResetRedrawCounts(IFWL_Widget* pWidget); - bool IsThreadEnabled() const { - return !(m_dwCapability & FWL_WGTMGR_DisableThread); - } - void DrawChild(IFWL_Widget* pParent, const CFX_RectF& rtClip, CFX_Graphics* pGraphics, -- cgit v1.2.3