| 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_WIDGET_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_WIDGET_H_ |
| 8 #define XFA_FWL_CORE_CFWL_WIDGET_H_ | 8 #define XFA_FWL_CORE_CFWL_WIDGET_H_ |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 virtual void DrawWidget(CFX_Graphics* pGraphics, | 62 virtual void DrawWidget(CFX_Graphics* pGraphics, |
| 63 const CFX_Matrix* pMatrix) = 0; | 63 const CFX_Matrix* pMatrix) = 0; |
| 64 virtual void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); | 64 virtual void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); |
| 65 | 65 |
| 66 // IFWL_WidgetDelegate. | 66 // IFWL_WidgetDelegate. |
| 67 void OnProcessMessage(CFWL_Message* pMessage) override; | 67 void OnProcessMessage(CFWL_Message* pMessage) override; |
| 68 void OnProcessEvent(CFWL_Event* pEvent) override; | 68 void OnProcessEvent(CFWL_Event* pEvent) override; |
| 69 void OnDrawWidget(CFX_Graphics* pGraphics, | 69 void OnDrawWidget(CFX_Graphics* pGraphics, |
| 70 const CFX_Matrix* pMatrix) override; | 70 const CFX_Matrix* pMatrix) override; |
| 71 | 71 |
| 72 void InflateWidgetRect(CFX_RectF& rect); |
| 72 void SetWidgetRect(const CFX_RectF& rect); | 73 void SetWidgetRect(const CFX_RectF& rect); |
| 73 | 74 |
| 74 void SetParent(CFWL_Widget* pParent); | 75 void SetParent(CFWL_Widget* pParent); |
| 75 | 76 |
| 76 CFWL_Widget* GetOwner() { return m_pWidgetMgr->GetOwnerWidget(this); } | 77 CFWL_Widget* GetOwner() { return m_pWidgetMgr->GetOwnerWidget(this); } |
| 77 CFWL_Widget* GetOuter() const { return m_pOuter; } | 78 CFWL_Widget* GetOuter() const { return m_pOuter; } |
| 78 | 79 |
| 79 uint32_t GetStyles() const; | 80 uint32_t GetStyles() const; |
| 80 void ModifyStyles(uint32_t dwStylesAdded, uint32_t dwStylesRemoved); | 81 void ModifyStyles(uint32_t dwStylesAdded, uint32_t dwStylesRemoved); |
| 81 uint32_t GetStylesEx() const; | 82 uint32_t GetStylesEx() const; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 const CFX_Matrix* pMatrix); | 186 const CFX_Matrix* pMatrix); |
| 186 void NotifyDriver(); | 187 void NotifyDriver(); |
| 187 bool IsParent(CFWL_Widget* pParent); | 188 bool IsParent(CFWL_Widget* pParent); |
| 188 | 189 |
| 189 void* m_pLayoutItem; | 190 void* m_pLayoutItem; |
| 190 uint32_t m_nEventKey; | 191 uint32_t m_nEventKey; |
| 191 IFWL_WidgetDelegate* m_pDelegate; // Not owned. | 192 IFWL_WidgetDelegate* m_pDelegate; // Not owned. |
| 192 }; | 193 }; |
| 193 | 194 |
| 194 #endif // XFA_FWL_CORE_CFWL_WIDGET_H_ | 195 #endif // XFA_FWL_CORE_CFWL_WIDGET_H_ |
| OLD | NEW |