• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef XFA_FWL_CFWL_PICTUREBOX_H_
8 #define XFA_FWL_CFWL_PICTUREBOX_H_
9 
10 #include "xfa/fwl/cfwl_widget.h"
11 
12 namespace pdfium {
13 
14 class CFWL_PictureBox final : public CFWL_Widget {
15  public:
16   CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED;
17   ~CFWL_PictureBox() override;
18 
19   // CFWL_Widget
20   FWL_Type GetClassID() const override;
21   void Update() override;
22   void DrawWidget(CFGAS_GEGraphics* pGraphics,
23                   const CFX_Matrix& matrix) override;
24   void OnDrawWidget(CFGAS_GEGraphics* pGraphics,
25                     const CFX_Matrix& matrix) override;
26 
27  private:
28   explicit CFWL_PictureBox(CFWL_App* pApp);
29 
30   CFX_RectF m_ClientRect;
31   CFX_RectF m_ImageRect;
32   CFX_Matrix m_matrix;
33 };
34 
35 }  // namespace pdfium
36 
37 // TODO(crbug.com/42271761): Remove.
38 using pdfium::CFWL_PictureBox;
39 
40 #endif  // XFA_FWL_CFWL_PICTUREBOX_H_
41