| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef XFA_FWL_CORE_CFWL_WIDGETMGR_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_WIDGETMGR_H_ |
| 8 #define XFA_FWL_CORE_CFWL_WIDGETMGR_H_ | 8 #define XFA_FWL_CORE_CFWL_WIDGETMGR_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 IFWL_Widget* GetOwnerWidget(IFWL_Widget* pWidget) const; | 68 IFWL_Widget* GetOwnerWidget(IFWL_Widget* pWidget) const; |
| 69 IFWL_Widget* GetFirstSiblingWidget(IFWL_Widget* pWidget) const; | 69 IFWL_Widget* GetFirstSiblingWidget(IFWL_Widget* pWidget) const; |
| 70 IFWL_Widget* GetPriorSiblingWidget(IFWL_Widget* pWidget) const; | 70 IFWL_Widget* GetPriorSiblingWidget(IFWL_Widget* pWidget) const; |
| 71 IFWL_Widget* GetNextSiblingWidget(IFWL_Widget* pWidget) const; | 71 IFWL_Widget* GetNextSiblingWidget(IFWL_Widget* pWidget) const; |
| 72 IFWL_Widget* GetLastSiblingWidget(IFWL_Widget* pWidget) const; | 72 IFWL_Widget* GetLastSiblingWidget(IFWL_Widget* pWidget) const; |
| 73 IFWL_Widget* GetFirstChildWidget(IFWL_Widget* pWidget) const; | 73 IFWL_Widget* GetFirstChildWidget(IFWL_Widget* pWidget) const; |
| 74 IFWL_Widget* GetLastChildWidget(IFWL_Widget* pWidget) const; | 74 IFWL_Widget* GetLastChildWidget(IFWL_Widget* pWidget) const; |
| 75 IFWL_Widget* GetSystemFormWidget(IFWL_Widget* pWidget) const; | 75 IFWL_Widget* GetSystemFormWidget(IFWL_Widget* pWidget) const; |
| 76 | 76 |
| 77 FX_BOOL SetWidgetIndex(IFWL_Widget* pWidget, int32_t nIndex); | 77 FX_BOOL SetWidgetIndex(IFWL_Widget* pWidget, int32_t nIndex); |
| 78 FWL_Error RepaintWidget(IFWL_Widget* pWidget, const CFX_RectF* pRect = NULL); | 78 FWL_Error RepaintWidget(IFWL_Widget* pWidget, |
| 79 const CFX_RectF* pRect = nullptr); |
| 79 | 80 |
| 80 void AddWidget(IFWL_Widget* pWidget); | 81 void AddWidget(IFWL_Widget* pWidget); |
| 81 void InsertWidget(IFWL_Widget* pParent, | 82 void InsertWidget(IFWL_Widget* pParent, |
| 82 IFWL_Widget* pChild, | 83 IFWL_Widget* pChild, |
| 83 int32_t nIndex = -1); | 84 int32_t nIndex = -1); |
| 84 void RemoveWidget(IFWL_Widget* pWidget); | 85 void RemoveWidget(IFWL_Widget* pWidget); |
| 85 void SetOwner(IFWL_Widget* pOwner, IFWL_Widget* pOwned); | 86 void SetOwner(IFWL_Widget* pOwner, IFWL_Widget* pOwned); |
| 86 void SetParent(IFWL_Widget* pParent, IFWL_Widget* pChild); | 87 void SetParent(IFWL_Widget* pParent, IFWL_Widget* pChild); |
| 87 FX_BOOL IsChild(IFWL_Widget* pChild, IFWL_Widget* pParent); | 88 FX_BOOL IsChild(IFWL_Widget* pChild, IFWL_Widget* pParent); |
| 88 FWL_Error SetWidgetRect_Native(IFWL_Widget* pWidget, const CFX_RectF& rect); | 89 FWL_Error SetWidgetRect_Native(IFWL_Widget* pWidget, const CFX_RectF& rect); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 105 FX_BOOL GetAdapterPopupPos(IFWL_Widget* pWidget, | 106 FX_BOOL GetAdapterPopupPos(IFWL_Widget* pWidget, |
| 106 FX_FLOAT fMinHeight, | 107 FX_FLOAT fMinHeight, |
| 107 FX_FLOAT fMaxHeight, | 108 FX_FLOAT fMaxHeight, |
| 108 const CFX_RectF& rtAnchor, | 109 const CFX_RectF& rtAnchor, |
| 109 CFX_RectF& rtPopup); | 110 CFX_RectF& rtPopup); |
| 110 | 111 |
| 111 protected: | 112 protected: |
| 112 int32_t TravelWidgetMgr(CFWL_WidgetMgrItem* pParent, | 113 int32_t TravelWidgetMgr(CFWL_WidgetMgrItem* pParent, |
| 113 int32_t* pIndex, | 114 int32_t* pIndex, |
| 114 CFWL_WidgetMgrItem* pItem, | 115 CFWL_WidgetMgrItem* pItem, |
| 115 IFWL_Widget** pWidget = NULL); | 116 IFWL_Widget** pWidget = nullptr); |
| 116 FX_BOOL IsAbleNative(IFWL_Widget* pWidget) const; | 117 FX_BOOL IsAbleNative(IFWL_Widget* pWidget) const; |
| 117 | 118 |
| 118 uint32_t m_dwCapability; | 119 uint32_t m_dwCapability; |
| 119 std::unique_ptr<CFWL_WidgetMgrDelegate> m_pDelegate; | 120 std::unique_ptr<CFWL_WidgetMgrDelegate> m_pDelegate; |
| 120 std::map<IFWL_Widget*, std::unique_ptr<CFWL_WidgetMgrItem>> m_mapWidgetItem; | 121 std::map<IFWL_Widget*, std::unique_ptr<CFWL_WidgetMgrItem>> m_mapWidgetItem; |
| 121 CXFA_FWLAdapterWidgetMgr* const m_pAdapter; | 122 CXFA_FWLAdapterWidgetMgr* const m_pAdapter; |
| 122 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) | 123 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) |
| 123 CFX_RectF m_rtScreen; | 124 CFX_RectF m_rtScreen; |
| 124 #endif | 125 #endif |
| 125 friend class CFWL_WidgetMgrDelegate; | 126 friend class CFWL_WidgetMgrDelegate; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 150 const CFX_Matrix* pMatrix); | 151 const CFX_Matrix* pMatrix); |
| 151 FX_BOOL IsNeedRepaint(IFWL_Widget* pWidget, | 152 FX_BOOL IsNeedRepaint(IFWL_Widget* pWidget, |
| 152 CFX_Matrix* pMatrix, | 153 CFX_Matrix* pMatrix, |
| 153 const CFX_RectF& rtDirty); | 154 const CFX_RectF& rtDirty); |
| 154 FX_BOOL bUseOffscreenDirect(IFWL_Widget* pWidget); | 155 FX_BOOL bUseOffscreenDirect(IFWL_Widget* pWidget); |
| 155 | 156 |
| 156 CFWL_WidgetMgr* m_pWidgetMgr; | 157 CFWL_WidgetMgr* m_pWidgetMgr; |
| 157 }; | 158 }; |
| 158 | 159 |
| 159 #endif // XFA_FWL_CORE_CFWL_WIDGETMGR_H_ | 160 #endif // XFA_FWL_CORE_CFWL_WIDGETMGR_H_ |
| OLD | NEW |