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 #include "xfa/fwl/core/cfwl_picturebox.h" | 7 #include "xfa/fwl/cfwl_picturebox.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "third_party/base/ptr_util.h" | 11 #include "third_party/base/ptr_util.h" |
12 | 12 |
13 CFWL_PictureBox::CFWL_PictureBox(const CFWL_App* app) | 13 CFWL_PictureBox::CFWL_PictureBox(const CFWL_App* app) |
14 : CFWL_Widget(app, pdfium::MakeUnique<CFWL_WidgetProperties>(), nullptr) { | 14 : CFWL_Widget(app, pdfium::MakeUnique<CFWL_WidgetProperties>(), nullptr) { |
15 m_rtClient.Reset(); | 15 m_rtClient.Reset(); |
16 m_rtImage.Reset(); | 16 m_rtImage.Reset(); |
17 m_matrix.SetIdentity(); | 17 m_matrix.SetIdentity(); |
(...skipping 25 matching lines...) Expand all Loading... |
43 if (HasBorder()) | 43 if (HasBorder()) |
44 DrawBorder(pGraphics, CFWL_Part::Border, pTheme, pMatrix); | 44 DrawBorder(pGraphics, CFWL_Part::Border, pTheme, pMatrix); |
45 if (HasEdge()) | 45 if (HasEdge()) |
46 DrawEdge(pGraphics, CFWL_Part::Edge, pTheme, pMatrix); | 46 DrawEdge(pGraphics, CFWL_Part::Edge, pTheme, pMatrix); |
47 } | 47 } |
48 | 48 |
49 void CFWL_PictureBox::OnDrawWidget(CFX_Graphics* pGraphics, | 49 void CFWL_PictureBox::OnDrawWidget(CFX_Graphics* pGraphics, |
50 const CFX_Matrix* pMatrix) { | 50 const CFX_Matrix* pMatrix) { |
51 DrawWidget(pGraphics, pMatrix); | 51 DrawWidget(pGraphics, pMatrix); |
52 } | 52 } |
OLD | NEW |