7#include "xfa/fxfa/cxfa_ffapp.h"
9#include "xfa/fwl/cfwl_notedriver.h"
10#include "xfa/fwl/cfwl_widgetmgr.h"
11#include "xfa/fxfa/cxfa_ffdoc.h"
12#include "xfa/fxfa/cxfa_ffwidgethandler.h"
13#include "xfa/fxfa/cxfa_fontmgr.h"
14#include "xfa/fxfa/cxfa_fwladapterwidgetmgr.h"
15#include "xfa/fxfa/cxfa_fwltheme.h"
17CXFA_FFApp::CXFA_FFApp(
CallbackIface* pProvider) : m_pProvider(pProvider) {
19 m_pXFAFontMgr = cppgc::MakeGarbageCollected<CXFA_FontMgr>(
20 GetHeap()->GetAllocationHandle());
21 m_pFWLApp = cppgc::MakeGarbageCollected<CFWL_App>(
22 GetHeap()->GetAllocationHandle(),
this);
27void CXFA_FFApp::
Trace(cppgc::Visitor* visitor)
const {
28 visitor->Trace(m_pXFAFontMgr);
29 visitor->Trace(m_pAdapterWidgetMgr);
30 visitor->Trace(m_pFWLTheme);
31 visitor->Trace(m_pFWLApp);
35 auto* fwl_theme = cppgc::MakeGarbageCollected<CXFA_FWLTheme>(
36 GetHeap()->GetAllocationHandle(), GetHeap(),
this);
37 if (!fwl_theme->LoadCalendarFont(doc))
40 m_pFWLTheme = fwl_theme;
45 if (!m_pAdapterWidgetMgr) {
46 m_pAdapterWidgetMgr = cppgc::MakeGarbageCollected<CXFA_FWLAdapterWidgetMgr>(
47 GetHeap()->GetAllocationHandle());
49 return m_pAdapterWidgetMgr;
53 return m_pProvider->GetTimerHandler();
61 return m_pProvider->GetGCHeap();
void Trace(cppgc::Visitor *visitor) const override
bool LoadFWLTheme(CXFA_FFDoc *doc)
CFX_Timer::HandlerIface * GetTimerHandler() override
CFWL_WidgetMgr::AdapterIface * GetWidgetMgrAdapter() override
IFWL_ThemeProvider * GetThemeProvider() override
cppgc::Heap * GetHeap() override