| 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> |
| 11 | 11 |
| 12 #include "core/fxcrt/fx_system.h" | 12 #include "core/fxcrt/fx_system.h" |
| 13 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" | 13 #include "xfa/fwl/core/cfwl_widgetproperties.h" |
| 14 #include "xfa/fwl/core/ifwl_dataprovider.h" | 14 #include "xfa/fwl/core/ifwl_dataprovider.h" |
| 15 #include "xfa/fwl/core/ifwl_widget.h" | 15 #include "xfa/fwl/core/ifwl_widget.h" |
| 16 | 16 |
| 17 #define FWL_CLASS_Form L"FWL_FORM" | 17 #define FWL_CLASS_Form L"FWL_FORM" |
| 18 #define FWL_CLASS_FormProxy L"FWL_FORMPROXY" | 18 #define FWL_CLASS_FormProxy L"FWL_FORMPROXY" |
| 19 #define FWL_STYLEEXT_FRM_Resize (1L << 0) | 19 #define FWL_STYLEEXT_FRM_Resize (1L << 0) |
| 20 #define FWL_STYLEEXT_FRM_NativeBorder (1L << 1) | 20 #define FWL_STYLEEXT_FRM_NativeBorder (1L << 1) |
| 21 #define FWL_STYLEEXT_FRM_RoundCorner (2L << 1) | 21 #define FWL_STYLEEXT_FRM_RoundCorner (2L << 1) |
| 22 #define FWL_STYLEEXT_FRM_RoundCorner4 (3L << 1) | 22 #define FWL_STYLEEXT_FRM_RoundCorner4 (3L << 1) |
| 23 #define FWL_STYLEEXT_FRM_NoDrawClient (1L << 3) | 23 #define FWL_STYLEEXT_FRM_NoDrawClient (1L << 3) |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 ~RestoreInfo(); | 65 ~RestoreInfo(); |
| 66 | 66 |
| 67 CFX_PointF m_ptStart; | 67 CFX_PointF m_ptStart; |
| 68 CFX_SizeF m_szStart; | 68 CFX_SizeF m_szStart; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 class CFWL_MsgMouse; | 71 class CFWL_MsgMouse; |
| 72 class CFWL_MsgClose; | 72 class CFWL_MsgClose; |
| 73 class CFWL_MsgWindowMove; | 73 class CFWL_MsgWindowMove; |
| 74 class CFWL_NoteLoop; | 74 class CFWL_NoteLoop; |
| 75 class CFWL_WidgetImpProperties; | |
| 76 class IFWL_Widget; | 75 class IFWL_Widget; |
| 77 class IFWL_ThemeProvider; | 76 class IFWL_ThemeProvider; |
| 78 class CFWL_SysBtn; | 77 class CFWL_SysBtn; |
| 79 | 78 |
| 80 class IFWL_FormDP : public IFWL_DataProvider { | 79 class IFWL_FormDP : public IFWL_DataProvider { |
| 81 public: | 80 public: |
| 82 virtual CFX_DIBitmap* GetIcon(IFWL_Widget* pWidget, bool bBig) = 0; | 81 virtual CFX_DIBitmap* GetIcon(IFWL_Widget* pWidget, bool bBig) = 0; |
| 83 }; | 82 }; |
| 84 | 83 |
| 85 class IFWL_Form : public IFWL_Widget { | 84 class IFWL_Form : public IFWL_Widget { |
| 86 public: | 85 public: |
| 87 IFWL_Form(const IFWL_App* app, | 86 IFWL_Form(const IFWL_App* app, |
| 88 const CFWL_WidgetImpProperties& properties, | 87 std::unique_ptr<CFWL_WidgetProperties> properties, |
| 89 IFWL_Widget* pOuter); | 88 IFWL_Widget* pOuter); |
| 90 ~IFWL_Form() override; | 89 ~IFWL_Form() override; |
| 91 | 90 |
| 92 // IFWL_Widget | 91 // IFWL_Widget |
| 93 FWL_Type GetClassID() const override; | 92 FWL_Type GetClassID() const override; |
| 94 bool IsInstance(const CFX_WideStringC& wsClass) const override; | 93 bool IsInstance(const CFX_WideStringC& wsClass) const override; |
| 95 FWL_Error GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; | 94 FWL_Error GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; |
| 96 FWL_Error GetClientRect(CFX_RectF& rect) override; | 95 FWL_Error GetClientRect(CFX_RectF& rect) override; |
| 97 FWL_Error Update() override; | 96 FWL_Error Update() override; |
| 98 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 97 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 void OnLButtonUp(CFWL_MsgMouse* pMsg); | 189 void OnLButtonUp(CFWL_MsgMouse* pMsg); |
| 191 void OnMouseMove(CFWL_MsgMouse* pMsg); | 190 void OnMouseMove(CFWL_MsgMouse* pMsg); |
| 192 void OnMouseHover(CFWL_MsgMouse* pMsg); | 191 void OnMouseHover(CFWL_MsgMouse* pMsg); |
| 193 void OnMouseLeave(CFWL_MsgMouse* pMsg); | 192 void OnMouseLeave(CFWL_MsgMouse* pMsg); |
| 194 void OnLButtonDblClk(CFWL_MsgMouse* pMsg); | 193 void OnLButtonDblClk(CFWL_MsgMouse* pMsg); |
| 195 void OnWindowMove(CFWL_MsgWindowMove* pMsg); | 194 void OnWindowMove(CFWL_MsgWindowMove* pMsg); |
| 196 void OnClose(CFWL_MsgClose* pMsg); | 195 void OnClose(CFWL_MsgClose* pMsg); |
| 197 }; | 196 }; |
| 198 | 197 |
| 199 #endif // XFA_FWL_CORE_IFWL_FORM_H_ | 198 #endif // XFA_FWL_CORE_IFWL_FORM_H_ |
| OLD | NEW |