summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/cfwl_widgetmgr.h
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/core/cfwl_widgetmgr.h')
-rw-r--r--xfa/fwl/core/cfwl_widgetmgr.h11
1 files changed, 2 insertions, 9 deletions
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,