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 "xfa/fwl/cfwl_app.h" 8 9 #include "third_party/base/ptr_util.h" 10 #include "xfa/fwl/cfwl_notedriver.h" 11 #include "xfa/fwl/cfwl_widget.h" 12 #include "xfa/fwl/cfwl_widgetmgr.h" 13 CFWL_App(AdapterIface * pAdapter)14CFWL_App::CFWL_App(AdapterIface* pAdapter) 15 : m_pAdapterNative(pAdapter), 16 m_pWidgetMgr( 17 pdfium::MakeUnique<CFWL_WidgetMgr>(pAdapter->GetWidgetMgrAdapter())), 18 m_pNoteDriver(pdfium::MakeUnique<CFWL_NoteDriver>()) { 19 ASSERT(m_pAdapterNative); 20 } 21 22 CFWL_App::~CFWL_App() = default; 23