1*3ac0a46fSAndroid Build Coastguard Worker // Copyright 2014 The PDFium Authors 2*3ac0a46fSAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be 3*3ac0a46fSAndroid Build Coastguard Worker // found in the LICENSE file. 4*3ac0a46fSAndroid Build Coastguard Worker 5*3ac0a46fSAndroid Build Coastguard Worker // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6*3ac0a46fSAndroid Build Coastguard Worker 7*3ac0a46fSAndroid Build Coastguard Worker #include "xfa/fwl/cfwl_app.h" 8*3ac0a46fSAndroid Build Coastguard Worker 9*3ac0a46fSAndroid Build Coastguard Worker #include "v8/include/cppgc/allocation.h" 10*3ac0a46fSAndroid Build Coastguard Worker #include "xfa/fwl/cfwl_notedriver.h" 11*3ac0a46fSAndroid Build Coastguard Worker #include "xfa/fwl/cfwl_widget.h" 12*3ac0a46fSAndroid Build Coastguard Worker #include "xfa/fwl/cfwl_widgetmgr.h" 13*3ac0a46fSAndroid Build Coastguard Worker CFWL_App(AdapterIface * pAdapter)14*3ac0a46fSAndroid Build Coastguard WorkerCFWL_App::CFWL_App(AdapterIface* pAdapter) 15*3ac0a46fSAndroid Build Coastguard Worker : m_pAdapter(pAdapter), 16*3ac0a46fSAndroid Build Coastguard Worker m_pWidgetMgr(cppgc::MakeGarbageCollected<CFWL_WidgetMgr>( 17*3ac0a46fSAndroid Build Coastguard Worker pAdapter->GetHeap()->GetAllocationHandle(), 18*3ac0a46fSAndroid Build Coastguard Worker pAdapter->GetWidgetMgrAdapter(), 19*3ac0a46fSAndroid Build Coastguard Worker this)), 20*3ac0a46fSAndroid Build Coastguard Worker m_pNoteDriver(cppgc::MakeGarbageCollected<CFWL_NoteDriver>( 21*3ac0a46fSAndroid Build Coastguard Worker pAdapter->GetHeap()->GetAllocationHandle(), 22*3ac0a46fSAndroid Build Coastguard Worker this)) {} 23*3ac0a46fSAndroid Build Coastguard Worker 24*3ac0a46fSAndroid Build Coastguard Worker CFWL_App::~CFWL_App() = default; 25*3ac0a46fSAndroid Build Coastguard Worker Trace(cppgc::Visitor * visitor) const26*3ac0a46fSAndroid Build Coastguard Workervoid CFWL_App::Trace(cppgc::Visitor* visitor) const { 27*3ac0a46fSAndroid Build Coastguard Worker visitor->Trace(m_pAdapter); 28*3ac0a46fSAndroid Build Coastguard Worker visitor->Trace(m_pWidgetMgr); 29*3ac0a46fSAndroid Build Coastguard Worker visitor->Trace(m_pNoteDriver); 30*3ac0a46fSAndroid Build Coastguard Worker } 31