dsinclair | 4e90313 | 2016-10-18 16:48:16 -0700 | [diff] [blame] | 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 | |
dsinclair | 447b1f3 | 2016-12-08 10:06:32 -0800 | [diff] [blame] | 7 | #include "xfa/fwl/cfwl_app.h" |
dsinclair | 4e90313 | 2016-10-18 16:48:16 -0700 | [diff] [blame] | 8 | |
| 9 | #include "third_party/base/ptr_util.h" |
dsinclair | 447b1f3 | 2016-12-08 10:06:32 -0800 | [diff] [blame] | 10 | #include "xfa/fwl/cfwl_notedriver.h" |
| 11 | #include "xfa/fwl/cfwl_widget.h" |
| 12 | #include "xfa/fwl/cfwl_widgetmgr.h" |
dsinclair | 4e90313 | 2016-10-18 16:48:16 -0700 | [diff] [blame] | 13 | #include "xfa/fxfa/app/xfa_fwladapter.h" |
| 14 | |
dsinclair | 1a7534a | 2016-11-22 15:56:11 -0800 | [diff] [blame] | 15 | CFWL_App::CFWL_App(CXFA_FFApp* pAdapter) |
dsinclair | 4e90313 | 2016-10-18 16:48:16 -0700 | [diff] [blame] | 16 | : m_pAdapterNative(pAdapter), |
| 17 | m_pWidgetMgr(pdfium::MakeUnique<CFWL_WidgetMgr>(pAdapter)), |
dsinclair | 2085538 | 2016-10-31 07:29:34 -0700 | [diff] [blame] | 18 | m_pNoteDriver(pdfium::MakeUnique<CFWL_NoteDriver>()) { |
| 19 | ASSERT(m_pAdapterNative); |
| 20 | } |
dsinclair | 4e90313 | 2016-10-18 16:48:16 -0700 | [diff] [blame] | 21 | |
dsinclair | 1a7534a | 2016-11-22 15:56:11 -0800 | [diff] [blame] | 22 | CFWL_App::~CFWL_App() {} |