blob: 70dc696f032abba49680c1d8db8215c7e88724cf [file] [log] [blame]
kumarashishg826308d2023-06-23 13:21:22 +00001// 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
12CFFL_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
21CFFL_PerWindowData::CFFL_PerWindowData(const CFFL_PerWindowData& that) =
22 default;
23
24CFFL_PerWindowData::~CFFL_PerWindowData() = default;
25
26std::unique_ptr<IPWL_FillerNotify::PerWindowData> CFFL_PerWindowData::Clone()
27 const {
28 // Private constructor.
29 return pdfium::WrapUnique(new CFFL_PerWindowData(*this));
30}