blob: febc8a0fdf863555f5e06bfbb3acac07a548195a [file] [log] [blame]
dsinclair4e903132016-10-18 16:48:16 -07001// 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
dsinclair447b1f32016-12-08 10:06:32 -08007#include "xfa/fwl/cfwl_app.h"
dsinclair4e903132016-10-18 16:48:16 -07008
9#include "third_party/base/ptr_util.h"
dsinclair447b1f32016-12-08 10:06:32 -080010#include "xfa/fwl/cfwl_notedriver.h"
11#include "xfa/fwl/cfwl_widget.h"
12#include "xfa/fwl/cfwl_widgetmgr.h"
dsinclair4e903132016-10-18 16:48:16 -070013#include "xfa/fxfa/app/xfa_fwladapter.h"
14
dsinclair1a7534a2016-11-22 15:56:11 -080015CFWL_App::CFWL_App(CXFA_FFApp* pAdapter)
dsinclair4e903132016-10-18 16:48:16 -070016 : m_pAdapterNative(pAdapter),
17 m_pWidgetMgr(pdfium::MakeUnique<CFWL_WidgetMgr>(pAdapter)),
dsinclair20855382016-10-31 07:29:34 -070018 m_pNoteDriver(pdfium::MakeUnique<CFWL_NoteDriver>()) {
19 ASSERT(m_pAdapterNative);
20}
dsinclair4e903132016-10-18 16:48:16 -070021
dsinclair1a7534a2016-11-22 15:56:11 -080022CFWL_App::~CFWL_App() {}