| 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/theme/cfwl_widgettp.h" | 16 #include "xfa/fwl/theme/cfwl_widgettp.h" |
| 16 | 17 |
| 17 class CFWL_AppImp; | 18 class CFWL_AppImp; |
| 18 class CFWL_MsgKey; | 19 class CFWL_MsgKey; |
| 19 class CFWL_WidgetImpProperties; | 20 class CFWL_WidgetImpProperties; |
| 20 class CFWL_WidgetMgr; | 21 class CFWL_WidgetMgr; |
| 21 class IFWL_App; | 22 class IFWL_App; |
| 22 class IFWL_DataProvider; | 23 class IFWL_DataProvider; |
| 23 class IFWL_ThemeProvider; | 24 class IFWL_ThemeProvider; |
| 24 class IFWL_Widget; | 25 class IFWL_Widget; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 50 uint32_t dwStylesExRemoved); | 51 uint32_t dwStylesExRemoved); |
| 51 virtual uint32_t GetStates(); | 52 virtual uint32_t GetStates(); |
| 52 virtual FWL_ERR SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE); | 53 virtual FWL_ERR SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE); |
| 53 virtual FWL_ERR SetPrivateData(void* module_id, | 54 virtual FWL_ERR SetPrivateData(void* module_id, |
| 54 void* pData, | 55 void* pData, |
| 55 PD_CALLBACK_FREEDATA callback); | 56 PD_CALLBACK_FREEDATA callback); |
| 56 virtual void* GetPrivateData(void* module_id); | 57 virtual void* GetPrivateData(void* module_id); |
| 57 virtual FWL_ERR Update(); | 58 virtual FWL_ERR Update(); |
| 58 virtual FWL_ERR LockUpdate(); | 59 virtual FWL_ERR LockUpdate(); |
| 59 virtual FWL_ERR UnlockUpdate(); | 60 virtual FWL_ERR UnlockUpdate(); |
| 60 virtual uint32_t HitTest(FX_FLOAT fx, FX_FLOAT fy); | 61 virtual FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy); |
| 61 virtual FWL_ERR TransformTo(IFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy); | 62 virtual FWL_ERR TransformTo(IFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy); |
| 62 virtual FWL_ERR TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt); | 63 virtual FWL_ERR TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt); |
| 63 virtual FWL_ERR GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal = FALSE); | 64 virtual FWL_ERR GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal = FALSE); |
| 64 virtual FWL_ERR SetMatrix(const CFX_Matrix& matrix); | 65 virtual FWL_ERR SetMatrix(const CFX_Matrix& matrix); |
| 65 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics, | 66 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics, |
| 66 const CFX_Matrix* pMatrix = NULL); | 67 const CFX_Matrix* pMatrix = NULL); |
| 67 virtual IFWL_ThemeProvider* GetThemeProvider(); | 68 virtual IFWL_ThemeProvider* GetThemeProvider(); |
| 68 virtual FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); | 69 virtual FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); |
| 69 virtual FWL_ERR SetDataProvider(IFWL_DataProvider* pDataProvider); | 70 virtual FWL_ERR SetDataProvider(IFWL_DataProvider* pDataProvider); |
| 70 virtual IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate); | 71 virtual IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 public: | 163 public: |
| 163 CFWL_WidgetImpDelegate(); | 164 CFWL_WidgetImpDelegate(); |
| 164 ~CFWL_WidgetImpDelegate() override {} | 165 ~CFWL_WidgetImpDelegate() override {} |
| 165 int32_t OnProcessMessage(CFWL_Message* pMessage) override; | 166 int32_t OnProcessMessage(CFWL_Message* pMessage) override; |
| 166 FWL_ERR OnProcessEvent(CFWL_Event* pEvent) override; | 167 FWL_ERR OnProcessEvent(CFWL_Event* pEvent) override; |
| 167 FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, | 168 FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, |
| 168 const CFX_Matrix* pMatrix = NULL) override; | 169 const CFX_Matrix* pMatrix = NULL) override; |
| 169 }; | 170 }; |
| 170 | 171 |
| 171 #endif // XFA_FWL_CORE_FWL_WIDGETIMP_H_ | 172 #endif // XFA_FWL_CORE_FWL_WIDGETIMP_H_ |
| OLD | NEW |