| 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_IFWL_WIDGET_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_WIDGET_H_ |
| 8 #define XFA_FWL_CORE_IFWL_WIDGET_H_ | 8 #define XFA_FWL_CORE_IFWL_WIDGET_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 const CFX_Matrix* pMatrix = nullptr); | 81 const CFX_Matrix* pMatrix = nullptr); |
| 82 virtual void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); | 82 virtual void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); |
| 83 | 83 |
| 84 // IFWL_WidgetDelegate. | 84 // IFWL_WidgetDelegate. |
| 85 void OnProcessMessage(CFWL_Message* pMessage) override; | 85 void OnProcessMessage(CFWL_Message* pMessage) override; |
| 86 void OnProcessEvent(CFWL_Event* pEvent) override; | 86 void OnProcessEvent(CFWL_Event* pEvent) override; |
| 87 void OnDrawWidget(CFX_Graphics* pGraphics, | 87 void OnDrawWidget(CFX_Graphics* pGraphics, |
| 88 const CFX_Matrix* pMatrix = nullptr) override; | 88 const CFX_Matrix* pMatrix = nullptr) override; |
| 89 | 89 |
| 90 void SetWidgetRect(const CFX_RectF& rect); | 90 void SetWidgetRect(const CFX_RectF& rect); |
| 91 void GetGlobalRect(CFX_RectF& rect); | |
| 92 | 91 |
| 93 void SetParent(IFWL_Widget* pParent); | 92 void SetParent(IFWL_Widget* pParent); |
| 94 | 93 |
| 95 IFWL_Widget* GetOwner() { return m_pWidgetMgr->GetOwnerWidget(this); } | 94 IFWL_Widget* GetOwner() { return m_pWidgetMgr->GetOwnerWidget(this); } |
| 96 IFWL_Widget* GetOuter() const { return m_pOuter; } | 95 IFWL_Widget* GetOuter() const { return m_pOuter; } |
| 97 | 96 |
| 98 uint32_t GetStyles() const { return m_pProperties->m_dwStyles; } | 97 uint32_t GetStyles() const { return m_pProperties->m_dwStyles; } |
| 99 void ModifyStyles(uint32_t dwStylesAdded, uint32_t dwStylesRemoved); | 98 void ModifyStyles(uint32_t dwStylesAdded, uint32_t dwStylesRemoved); |
| 100 uint32_t GetStylesEx() const { return m_pProperties->m_dwStyleExes; } | 99 uint32_t GetStylesEx() const { return m_pProperties->m_dwStyleExes; } |
| 101 uint32_t GetStates() const { return m_pProperties->m_dwStates; } | 100 uint32_t GetStates() const { return m_pProperties->m_dwStates; } |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 void NotifyDriver(); | 232 void NotifyDriver(); |
| 234 bool IsParent(IFWL_Widget* pParent); | 233 bool IsParent(IFWL_Widget* pParent); |
| 235 | 234 |
| 236 void* m_pLayoutItem; | 235 void* m_pLayoutItem; |
| 237 CFWL_Widget* m_pAssociate; | 236 CFWL_Widget* m_pAssociate; |
| 238 uint32_t m_nEventKey; | 237 uint32_t m_nEventKey; |
| 239 IFWL_WidgetDelegate* m_pDelegate; // Not owned. | 238 IFWL_WidgetDelegate* m_pDelegate; // Not owned. |
| 240 }; | 239 }; |
| 241 | 240 |
| 242 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ | 241 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ |
| OLD | NEW |