| 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 <memory> | 10 #include <memory> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual FWL_Error TransformTo(IFWL_Widget* pWidget, | 61 virtual FWL_Error TransformTo(IFWL_Widget* pWidget, |
| 62 FX_FLOAT& fx, | 62 FX_FLOAT& fx, |
| 63 FX_FLOAT& fy); | 63 FX_FLOAT& fy); |
| 64 virtual FWL_Error TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt); | 64 virtual FWL_Error TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt); |
| 65 virtual FWL_Error GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal = FALSE); | 65 virtual FWL_Error GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal = FALSE); |
| 66 virtual FWL_Error SetMatrix(const CFX_Matrix& matrix); | 66 virtual FWL_Error SetMatrix(const CFX_Matrix& matrix); |
| 67 virtual FWL_Error DrawWidget(CFX_Graphics* pGraphics, | 67 virtual FWL_Error DrawWidget(CFX_Graphics* pGraphics, |
| 68 const CFX_Matrix* pMatrix = nullptr); | 68 const CFX_Matrix* pMatrix = nullptr); |
| 69 virtual IFWL_ThemeProvider* GetThemeProvider(); | 69 virtual IFWL_ThemeProvider* GetThemeProvider(); |
| 70 virtual FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); | 70 virtual FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); |
| 71 virtual FWL_Error SetDataProvider(IFWL_DataProvider* pDataProvider); | |
| 72 virtual IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate); | 71 virtual IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate); |
| 73 virtual IFWL_App* GetOwnerApp() const; | 72 virtual IFWL_App* GetOwnerApp() const; |
| 74 | 73 |
| 75 FWL_Error SetOwnerApp(IFWL_App* pOwnerApp); | 74 FWL_Error SetOwnerApp(IFWL_App* pOwnerApp); |
| 76 IFWL_Widget* GetInterface() const; | 75 IFWL_Widget* GetInterface() const; |
| 77 void SetInterface(IFWL_Widget* pInterface); | 76 void SetInterface(IFWL_Widget* pInterface); |
| 78 CFX_SizeF GetOffsetFromParent(IFWL_Widget* pParent); | 77 CFX_SizeF GetOffsetFromParent(IFWL_Widget* pParent); |
| 79 uint32_t GetEventKey() const; | 78 uint32_t GetEventKey() const; |
| 80 void SetEventKey(uint32_t key); | 79 void SetEventKey(uint32_t key); |
| 81 void* GetLayoutItem() const; | 80 void* GetLayoutItem() const; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 public: | 172 public: |
| 174 CFWL_WidgetImpDelegate(); | 173 CFWL_WidgetImpDelegate(); |
| 175 ~CFWL_WidgetImpDelegate() override {} | 174 ~CFWL_WidgetImpDelegate() override {} |
| 176 void OnProcessMessage(CFWL_Message* pMessage) override; | 175 void OnProcessMessage(CFWL_Message* pMessage) override; |
| 177 void OnProcessEvent(CFWL_Event* pEvent) override; | 176 void OnProcessEvent(CFWL_Event* pEvent) override; |
| 178 void OnDrawWidget(CFX_Graphics* pGraphics, | 177 void OnDrawWidget(CFX_Graphics* pGraphics, |
| 179 const CFX_Matrix* pMatrix = nullptr) override; | 178 const CFX_Matrix* pMatrix = nullptr) override; |
| 180 }; | 179 }; |
| 181 | 180 |
| 182 #endif // XFA_FWL_CORE_FWL_WIDGETIMP_H_ | 181 #endif // XFA_FWL_CORE_FWL_WIDGETIMP_H_ |
| OLD | NEW |