| 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_PICTUREBOX_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_PICTUREBOX_H_ |
| 8 #define XFA_FWL_CORE_IFWL_PICTUREBOX_H_ | 8 #define XFA_FWL_CORE_IFWL_PICTUREBOX_H_ |
| 9 | 9 |
| 10 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" | 10 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 virtual FWL_Error GetMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) = 0; | 42 virtual FWL_Error GetMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) = 0; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 class IFWL_PictureBox : public IFWL_Widget { | 45 class IFWL_PictureBox : public IFWL_Widget { |
| 46 public: | 46 public: |
| 47 explicit IFWL_PictureBox(const IFWL_App* app, | 47 explicit IFWL_PictureBox(const IFWL_App* app, |
| 48 const CFWL_WidgetImpProperties& properties); | 48 const CFWL_WidgetImpProperties& properties); |
| 49 ~IFWL_PictureBox() override; | 49 ~IFWL_PictureBox() override; |
| 50 | 50 |
| 51 // IFWL_Widget | 51 // IFWL_Widget |
| 52 void Initialize() override; | |
| 53 void Finalize() override; | |
| 54 FWL_Type GetClassID() const override; | 52 FWL_Type GetClassID() const override; |
| 55 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; | 53 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; |
| 56 FWL_Error Update() override; | 54 FWL_Error Update() override; |
| 57 FWL_Error DrawWidget(CFX_Graphics* pGraphics, | 55 FWL_Error DrawWidget(CFX_Graphics* pGraphics, |
| 58 const CFX_Matrix* pMatrix = nullptr) override; | 56 const CFX_Matrix* pMatrix = nullptr) override; |
| 59 | 57 |
| 60 protected: | 58 protected: |
| 61 friend class CFWL_PictureBoxImpDelegate; | 59 friend class CFWL_PictureBoxImpDelegate; |
| 62 | 60 |
| 63 void DrawBkground(CFX_Graphics* pGraphics, | 61 void DrawBkground(CFX_Graphics* pGraphics, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 77 public: | 75 public: |
| 78 CFWL_PictureBoxImpDelegate(IFWL_PictureBox* pOwner); | 76 CFWL_PictureBoxImpDelegate(IFWL_PictureBox* pOwner); |
| 79 void OnDrawWidget(CFX_Graphics* pGraphics, | 77 void OnDrawWidget(CFX_Graphics* pGraphics, |
| 80 const CFX_Matrix* pMatrix = nullptr) override; | 78 const CFX_Matrix* pMatrix = nullptr) override; |
| 81 | 79 |
| 82 protected: | 80 protected: |
| 83 IFWL_PictureBox* m_pOwner; | 81 IFWL_PictureBox* m_pOwner; |
| 84 }; | 82 }; |
| 85 | 83 |
| 86 #endif // XFA_FWL_CORE_IFWL_PICTUREBOX_H_ | 84 #endif // XFA_FWL_CORE_IFWL_PICTUREBOX_H_ |
| OLD | NEW |