| 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_CFWL_WIDGETMGR_H_ | 7 #ifndef XFA_FWL_CFWL_WIDGETMGR_H_ |
| 8 #define XFA_FWL_CFWL_WIDGETMGR_H_ | 8 #define XFA_FWL_CFWL_WIDGETMGR_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 void OnDrawWidget(CFWL_Widget* pWidget, | 35 void OnDrawWidget(CFWL_Widget* pWidget, |
| 36 CFX_Graphics* pGraphics, | 36 CFX_Graphics* pGraphics, |
| 37 const CFX_Matrix* pMatrix) override; | 37 const CFX_Matrix* pMatrix) override; |
| 38 | 38 |
| 39 CFWL_Widget* GetParentWidget(CFWL_Widget* pWidget) const; | 39 CFWL_Widget* GetParentWidget(CFWL_Widget* pWidget) const; |
| 40 CFWL_Widget* GetOwnerWidget(CFWL_Widget* pWidget) const; | 40 CFWL_Widget* GetOwnerWidget(CFWL_Widget* pWidget) const; |
| 41 CFWL_Widget* GetNextSiblingWidget(CFWL_Widget* pWidget) const; | 41 CFWL_Widget* GetNextSiblingWidget(CFWL_Widget* pWidget) const; |
| 42 CFWL_Widget* GetFirstChildWidget(CFWL_Widget* pWidget) const; | 42 CFWL_Widget* GetFirstChildWidget(CFWL_Widget* pWidget) const; |
| 43 CFWL_Widget* GetSystemFormWidget(CFWL_Widget* pWidget) const; | 43 CFWL_Widget* GetSystemFormWidget(CFWL_Widget* pWidget) const; |
| 44 | 44 |
| 45 void RepaintWidget(CFWL_Widget* pWidget, const CFX_RectF* pRect); | 45 void RepaintWidget(CFWL_Widget* pWidget, const CFX_RectF& pRect); |
| 46 | 46 |
| 47 void InsertWidget(CFWL_Widget* pParent, CFWL_Widget* pChild); | 47 void InsertWidget(CFWL_Widget* pParent, CFWL_Widget* pChild); |
| 48 void RemoveWidget(CFWL_Widget* pWidget); | 48 void RemoveWidget(CFWL_Widget* pWidget); |
| 49 void SetOwner(CFWL_Widget* pOwner, CFWL_Widget* pOwned); | 49 void SetOwner(CFWL_Widget* pOwner, CFWL_Widget* pOwned); |
| 50 void SetParent(CFWL_Widget* pParent, CFWL_Widget* pChild); | 50 void SetParent(CFWL_Widget* pParent, CFWL_Widget* pChild); |
| 51 | 51 |
| 52 void SetWidgetRect_Native(CFWL_Widget* pWidget, const CFX_RectF& rect); | 52 void SetWidgetRect_Native(CFWL_Widget* pWidget, const CFX_RectF& rect); |
| 53 | 53 |
| 54 CFWL_Widget* GetWidgetAtPoint(CFWL_Widget* pParent, FX_FLOAT fx, FX_FLOAT fy); | 54 CFWL_Widget* GetWidgetAtPoint(CFWL_Widget* pParent, FX_FLOAT fx, FX_FLOAT fy); |
| 55 | 55 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 uint32_t m_dwCapability; | 125 uint32_t m_dwCapability; |
| 126 std::map<CFWL_Widget*, std::unique_ptr<Item>> m_mapWidgetItem; | 126 std::map<CFWL_Widget*, std::unique_ptr<Item>> m_mapWidgetItem; |
| 127 CXFA_FWLAdapterWidgetMgr* const m_pAdapter; | 127 CXFA_FWLAdapterWidgetMgr* const m_pAdapter; |
| 128 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) | 128 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) |
| 129 CFX_RectF m_rtScreen; | 129 CFX_RectF m_rtScreen; |
| 130 #endif | 130 #endif |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 #endif // XFA_FWL_CFWL_WIDGETMGR_H_ | 133 #endif // XFA_FWL_CFWL_WIDGETMGR_H_ |
| OLD | NEW |