kumarashishg | 826308d | 2023-06-23 13:21:22 +0000 | [diff] [blame] | 1 | // Copyright 2020 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 | #include "fpdfsdk/formfiller/cffl_perwindowdata.h" |
| 8 | |
| 9 | #include "fpdfsdk/cpdfsdk_widget.h" |
| 10 | #include "third_party/base/ptr_util.h" |
| 11 | |
| 12 | CFFL_PerWindowData::CFFL_PerWindowData(CPDFSDK_Widget* pWidget, |
| 13 | const CPDFSDK_PageView* pPageView, |
| 14 | uint32_t nAppearanceAge, |
| 15 | uint32_t nValueAge) |
| 16 | : m_pWidget(pWidget), |
| 17 | m_pPageView(pPageView), |
| 18 | m_nAppearanceAge(nAppearanceAge), |
| 19 | m_nValueAge(nValueAge) {} |
| 20 | |
| 21 | CFFL_PerWindowData::CFFL_PerWindowData(const CFFL_PerWindowData& that) = |
| 22 | default; |
| 23 | |
| 24 | CFFL_PerWindowData::~CFFL_PerWindowData() = default; |
| 25 | |
| 26 | std::unique_ptr<IPWL_FillerNotify::PerWindowData> CFFL_PerWindowData::Clone() |
| 27 | const { |
| 28 | // Private constructor. |
| 29 | return pdfium::WrapUnique(new CFFL_PerWindowData(*this)); |
| 30 | } |