| 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_FORM_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_FORM_H_ |
| 8 #define XFA_FWL_CORE_IFWL_FORM_H_ | 8 #define XFA_FWL_CORE_IFWL_FORM_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 class IFWL_Form : public IFWL_Widget { | 86 class IFWL_Form : public IFWL_Widget { |
| 87 public: | 87 public: |
| 88 IFWL_Form(const IFWL_App* app, | 88 IFWL_Form(const IFWL_App* app, |
| 89 const CFWL_WidgetImpProperties& properties, | 89 const CFWL_WidgetImpProperties& properties, |
| 90 IFWL_Widget* pOuter); | 90 IFWL_Widget* pOuter); |
| 91 ~IFWL_Form() override; | 91 ~IFWL_Form() override; |
| 92 | 92 |
| 93 // IFWL_Widget | 93 // IFWL_Widget |
| 94 void Initialize() override; | |
| 95 void Finalize() override; | |
| 96 FWL_Type GetClassID() const override; | 94 FWL_Type GetClassID() const override; |
| 97 FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const override; | 95 FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const override; |
| 98 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; | 96 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; |
| 99 FWL_Error GetClientRect(CFX_RectF& rect) override; | 97 FWL_Error GetClientRect(CFX_RectF& rect) override; |
| 100 FWL_Error Update() override; | 98 FWL_Error Update() override; |
| 101 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 99 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
| 102 FWL_Error DrawWidget(CFX_Graphics* pGraphics, | 100 FWL_Error DrawWidget(CFX_Graphics* pGraphics, |
| 103 const CFX_Matrix* pMatrix = nullptr) override; | 101 const CFX_Matrix* pMatrix = nullptr) override; |
| 104 | 102 |
| 105 FWL_FORMSIZE GetFormSize(); | 103 FWL_FORMSIZE GetFormSize(); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 void OnMouseMove(CFWL_MsgMouse* pMsg); | 198 void OnMouseMove(CFWL_MsgMouse* pMsg); |
| 201 void OnMouseHover(CFWL_MsgMouse* pMsg); | 199 void OnMouseHover(CFWL_MsgMouse* pMsg); |
| 202 void OnMouseLeave(CFWL_MsgMouse* pMsg); | 200 void OnMouseLeave(CFWL_MsgMouse* pMsg); |
| 203 void OnLButtonDblClk(CFWL_MsgMouse* pMsg); | 201 void OnLButtonDblClk(CFWL_MsgMouse* pMsg); |
| 204 void OnWindowMove(CFWL_MsgWindowMove* pMsg); | 202 void OnWindowMove(CFWL_MsgWindowMove* pMsg); |
| 205 void OnClose(CFWL_MsgClose* pMsg); | 203 void OnClose(CFWL_MsgClose* pMsg); |
| 206 IFWL_Form* m_pOwner; | 204 IFWL_Form* m_pOwner; |
| 207 }; | 205 }; |
| 208 | 206 |
| 209 #endif // XFA_FWL_CORE_IFWL_FORM_H_ | 207 #endif // XFA_FWL_CORE_IFWL_FORM_H_ |
| OLD | NEW |