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/ifwl_picturebox.h" | 7 #include "xfa/fwl/core/ifwl_picturebox.h" |
8 | 8 |
9 #include "third_party/base/ptr_util.h" | 9 #include "third_party/base/ptr_util.h" |
10 #include "xfa/fwl/core/cfwl_picturebox.h" | 10 #include "xfa/fwl/core/cfwl_picturebox.h" |
11 #include "xfa/fwl/core/fwl_noteimp.h" | 11 #include "xfa/fwl/core/fwl_noteimp.h" |
12 | 12 |
13 IFWL_PictureBox::IFWL_PictureBox(const IFWL_App* app, | 13 IFWL_PictureBox::IFWL_PictureBox( |
14 const CFWL_WidgetImpProperties& properties) | 14 const IFWL_App* app, |
15 : IFWL_Widget(app, properties, nullptr), | 15 std::unique_ptr<CFWL_WidgetProperties> properties) |
| 16 : IFWL_Widget(app, std::move(properties), nullptr), |
16 m_bTop(false), | 17 m_bTop(false), |
17 m_bVCenter(false), | 18 m_bVCenter(false), |
18 m_bButton(false) { | 19 m_bButton(false) { |
19 m_rtClient.Reset(); | 20 m_rtClient.Reset(); |
20 m_rtImage.Reset(); | 21 m_rtImage.Reset(); |
21 m_matrix.SetIdentity(); | 22 m_matrix.SetIdentity(); |
22 } | 23 } |
23 | 24 |
24 IFWL_PictureBox::~IFWL_PictureBox() {} | 25 IFWL_PictureBox::~IFWL_PictureBox() {} |
25 | 26 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 m_bButton = true; | 115 m_bButton = true; |
115 return true; | 116 return true; |
116 } | 117 } |
117 return false; | 118 return false; |
118 } | 119 } |
119 | 120 |
120 void IFWL_PictureBox::OnDrawWidget(CFX_Graphics* pGraphics, | 121 void IFWL_PictureBox::OnDrawWidget(CFX_Graphics* pGraphics, |
121 const CFX_Matrix* pMatrix) { | 122 const CFX_Matrix* pMatrix) { |
122 DrawWidget(pGraphics, pMatrix); | 123 DrawWidget(pGraphics, pMatrix); |
123 } | 124 } |
OLD | NEW |