| 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_FWL_WIDGETIMP_H_ | 7 #ifndef XFA_FWL_CORE_FWL_WIDGETIMP_H_ |
| 8 #define XFA_FWL_CORE_FWL_WIDGETIMP_H_ | 8 #define XFA_FWL_CORE_FWL_WIDGETIMP_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_coordinates.h" | 10 #include "core/fxcrt/include/fx_coordinates.h" |
| 11 #include "core/fxcrt/include/fx_system.h" | 11 #include "core/fxcrt/include/fx_system.h" |
| 12 #include "xfa/fwl/core/cfwl_event.h" | 12 #include "xfa/fwl/core/cfwl_event.h" |
| 13 #include "xfa/fwl/core/cfwl_themepart.h" | 13 #include "xfa/fwl/core/cfwl_themepart.h" |
| 14 #include "xfa/fwl/core/ifwl_widgetdelegate.h" | 14 #include "xfa/fwl/core/ifwl_widgetdelegate.h" |
| 15 #include "xfa/fwl/core/include/fwl_widgethit.h" | 15 #include "xfa/fwl/core/include/fwl_widgethit.h" |
| 16 #include "xfa/fwl/theme/cfwl_widgettp.h" | 16 #include "xfa/fwl/theme/cfwl_widgettp.h" |
| 17 | 17 |
| 18 class CFWL_AppImp; | 18 class CFWL_AppImp; |
| 19 class CFWL_MsgKey; | 19 class CFWL_MsgKey; |
| 20 class CFWL_WidgetImpProperties; | 20 class CFWL_WidgetImpProperties; |
| 21 class CFWL_WidgetMgr; | 21 class CFWL_WidgetMgr; |
| 22 class IFWL_App; | 22 class IFWL_App; |
| 23 class IFWL_DataProvider; | 23 class IFWL_DataProvider; |
| 24 class IFWL_ThemeProvider; | 24 class IFWL_ThemeProvider; |
| 25 class IFWL_Widget; | 25 class IFWL_Widget; |
| 26 enum class FWL_Type; |
| 26 | 27 |
| 27 class CFWL_WidgetImp { | 28 class CFWL_WidgetImp { |
| 28 public: | 29 public: |
| 29 virtual ~CFWL_WidgetImp(); | 30 virtual ~CFWL_WidgetImp(); |
| 30 | 31 |
| 31 virtual FWL_Error Initialize(); | 32 virtual FWL_Error Initialize(); |
| 32 virtual FWL_Error Finalize(); | 33 virtual FWL_Error Finalize(); |
| 33 virtual FWL_Error GetClassName(CFX_WideString& wsClass) const; | 34 virtual FWL_Error GetClassName(CFX_WideString& wsClass) const; |
| 34 virtual uint32_t GetClassID() const; | 35 virtual FWL_Type GetClassID() const = 0; |
| 35 virtual FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const; | 36 virtual FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const; |
| 36 | 37 |
| 37 virtual FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); | 38 virtual FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); |
| 38 virtual FWL_Error GetGlobalRect(CFX_RectF& rect); | 39 virtual FWL_Error GetGlobalRect(CFX_RectF& rect); |
| 39 virtual FWL_Error SetWidgetRect(const CFX_RectF& rect); | 40 virtual FWL_Error SetWidgetRect(const CFX_RectF& rect); |
| 40 virtual FWL_Error GetClientRect(CFX_RectF& rect); | 41 virtual FWL_Error GetClientRect(CFX_RectF& rect); |
| 41 virtual IFWL_Widget* GetParent(); | 42 virtual IFWL_Widget* GetParent(); |
| 42 virtual FWL_Error SetParent(IFWL_Widget* pParent); | 43 virtual FWL_Error SetParent(IFWL_Widget* pParent); |
| 43 virtual IFWL_Widget* GetOwner(); | 44 virtual IFWL_Widget* GetOwner(); |
| 44 virtual FWL_Error SetOwner(IFWL_Widget* pOwner); | 45 virtual FWL_Error SetOwner(IFWL_Widget* pOwner); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 public: | 166 public: |
| 166 CFWL_WidgetImpDelegate(); | 167 CFWL_WidgetImpDelegate(); |
| 167 ~CFWL_WidgetImpDelegate() override {} | 168 ~CFWL_WidgetImpDelegate() override {} |
| 168 void OnProcessMessage(CFWL_Message* pMessage) override; | 169 void OnProcessMessage(CFWL_Message* pMessage) override; |
| 169 void OnProcessEvent(CFWL_Event* pEvent) override; | 170 void OnProcessEvent(CFWL_Event* pEvent) override; |
| 170 void OnDrawWidget(CFX_Graphics* pGraphics, | 171 void OnDrawWidget(CFX_Graphics* pGraphics, |
| 171 const CFX_Matrix* pMatrix = NULL) override; | 172 const CFX_Matrix* pMatrix = NULL) override; |
| 172 }; | 173 }; |
| 173 | 174 |
| 174 #endif // XFA_FWL_CORE_FWL_WIDGETIMP_H_ | 175 #endif // XFA_FWL_CORE_FWL_WIDGETIMP_H_ |
| OLD | NEW |