• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 PDFium Authors. All rights reserved.
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_pushbutton.h"
8 
9 #include <utility>
10 
11 #include "fpdfsdk/formfiller/cffl_formfiller.h"
12 #include "fpdfsdk/pwl/cpwl_special_button.h"
13 #include "third_party/base/ptr_util.h"
14 
CFFL_PushButton(CPDFSDK_FormFillEnvironment * pApp,CPDFSDK_Widget * pWidget)15 CFFL_PushButton::CFFL_PushButton(CPDFSDK_FormFillEnvironment* pApp,
16                                  CPDFSDK_Widget* pWidget)
17     : CFFL_Button(pApp, pWidget) {}
18 
19 CFFL_PushButton::~CFFL_PushButton() = default;
20 
NewPWLWindow(const CPWL_Wnd::CreateParams & cp,std::unique_ptr<IPWL_SystemHandler::PerWindowData> pAttachedData)21 std::unique_ptr<CPWL_Wnd> CFFL_PushButton::NewPWLWindow(
22     const CPWL_Wnd::CreateParams& cp,
23     std::unique_ptr<IPWL_SystemHandler::PerWindowData> pAttachedData) {
24   auto pWnd = pdfium::MakeUnique<CPWL_PushButton>(cp, std::move(pAttachedData));
25   pWnd->Realize();
26   return std::move(pWnd);
27 }
28