summaryrefslogtreecommitdiff
path: root/xfa/include
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-12-02 12:18:30 -0800
committerTom Sepez <tsepez@chromium.org>2015-12-02 12:18:30 -0800
commit8677d53e8730efc20c80a1ad75be4e10a9db21d0 (patch)
tree8bec78dcb7c58ef7e5f6d360da1a1e4337d54396 /xfa/include
parentcd4651d0fcab03c062112e9a2bbcc3aee30890c4 (diff)
downloadpdfium-8677d53e8730efc20c80a1ad75be4e10a9db21d0.tar.xz
Add MakeWidgetImpProperties() helper method.
Remove duplicate code from 10 places. R=ochang@chromium.org Review URL: https://codereview.chromium.org/1486283002 .
Diffstat (limited to 'xfa/include')
-rw-r--r--xfa/include/fwl/lightwidget/widget.h14
1 files changed, 10 insertions, 4 deletions
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();