From 8677d53e8730efc20c80a1ad75be4e10a9db21d0 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Wed, 2 Dec 2015 12:18:30 -0800 Subject: Add MakeWidgetImpProperties() helper method. Remove duplicate code from 10 places. R=ochang@chromium.org Review URL: https://codereview.chromium.org/1486283002 . --- xfa/include/fwl/lightwidget/widget.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'xfa/include/fwl/lightwidget') diff --git a/xfa/include/fwl/lightwidget/widget.h b/xfa/include/fwl/lightwidget/widget.h index c597194336..06c425edec 100644 --- a/xfa/include/fwl/lightwidget/widget.h +++ b/xfa/include/fwl/lightwidget/widget.h @@ -6,13 +6,15 @@ #ifndef _FWL_WIDGET_LIGHT_H #define _FWL_WIDGET_LIGHT_H -class CFWL_WidgetMgr; -class CFWL_Message; + +#include "xfa/include/fwl/core/fwl_widget.h" + class CFWL_Event; -class IFWL_WidgetDelegate; -class IFWL_Widget; +class CFWL_Message; class CFWL_Widget; class CFWL_WidgetDelegate; +class CFWL_WidgetMgr; + class CFWL_WidgetProperties { public: CFWL_WidgetProperties() { @@ -24,6 +26,9 @@ class CFWL_WidgetProperties { m_pParent = NULL; m_pOwner = NULL; } + CFWL_WidgetImpProperties MakeWidgetImpProperties( + IFWL_DataProvider* pDataProvider) const; + CFX_WideString m_wsWindowclass; CFX_Matrix m_ctmOnParent; CFX_RectF m_rtWidget; @@ -33,6 +38,7 @@ class CFWL_WidgetProperties { CFWL_Widget* m_pParent; CFWL_Widget* m_pOwner; }; + class CFWL_Widget { public: IFWL_Widget* GetWidget(); -- cgit v1.2.3