diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-08-21 23:07:21 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-21 23:07:21 +0000 |
commit | bcdbeaea96d53800ee806f463108f54f79a19347 (patch) | |
tree | e302a98da36cd67b709c6d75a4940c2975edfa0e /xfa/fwl/cfwl_widgetproperties.h | |
parent | 1a3e186e975aa8eb6a6e42f2626b6f8ca980db19 (diff) | |
download | pdfium-bcdbeaea96d53800ee806f463108f54f79a19347.tar.xz |
Use UnownedPtr<> to theme provider in cfwl_widgetproperties.h
Mark two other fields which must remain raw.
Change-Id: Idcd9b074aad23f35dc6607feeaa4fa6701efffaa
Reviewed-on: https://pdfium-review.googlesource.com/40916
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fwl/cfwl_widgetproperties.h')
-rw-r--r-- | xfa/fwl/cfwl_widgetproperties.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/xfa/fwl/cfwl_widgetproperties.h b/xfa/fwl/cfwl_widgetproperties.h index 065acad30f..797b8daeb6 100644 --- a/xfa/fwl/cfwl_widgetproperties.h +++ b/xfa/fwl/cfwl_widgetproperties.h @@ -9,11 +9,11 @@ #include "core/fxcrt/fx_coordinates.h" #include "core/fxcrt/fx_system.h" -#include "xfa/fwl/cfwl_widget.h" +#include "core/fxcrt/unowned_ptr.h" #include "xfa/fwl/fwl_widgetdef.h" -class IFWL_ThemeProvider; class CFWL_Widget; +class IFWL_ThemeProvider; class CFWL_WidgetProperties { public: @@ -21,12 +21,12 @@ class CFWL_WidgetProperties { ~CFWL_WidgetProperties(); CFX_RectF m_rtWidget; - uint32_t m_dwStyles; - uint32_t m_dwStyleExes; - uint32_t m_dwStates; - IFWL_ThemeProvider* m_pThemeProvider; - CFWL_Widget* m_pParent; - CFWL_Widget* m_pOwner; + uint32_t m_dwStyles = FWL_WGTSTYLE_Child; + uint32_t m_dwStyleExes = 0; + uint32_t m_dwStates = 0; + UnownedPtr<IFWL_ThemeProvider> m_pThemeProvider; + CFWL_Widget* m_pParent = nullptr; // Raw, this class owned by node in tree. + CFWL_Widget* m_pOwner = nullptr; // Raw, this class owned by node in tree. }; #endif // XFA_FWL_CFWL_WIDGETPROPERTIES_H_ |