From 20855384b8149a631c3c1d229551523c12eb767b Mon Sep 17 00:00:00 2001 From: dsinclair Date: Mon, 31 Oct 2016 07:29:34 -0700 Subject: Remove FWL globals. This CL removes the FWL_GetApp, FWL_SetApp and FWL_GetWidgetAdapter methods. In the process it changes the various Initialize methods to return void. Review-Url: https://codereview.chromium.org/2436103002 --- xfa/fwl/core/ifwl_app.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'xfa/fwl/core/ifwl_app.h') diff --git a/xfa/fwl/core/ifwl_app.h b/xfa/fwl/core/ifwl_app.h index 35cbbe2ff9..307cb0770f 100644 --- a/xfa/fwl/core/ifwl_app.h +++ b/xfa/fwl/core/ifwl_app.h @@ -32,8 +32,8 @@ class IFWL_App { explicit IFWL_App(CXFA_FFApp* pAdapter); ~IFWL_App(); - CXFA_FFApp* GetAdapterNative(); - CFWL_WidgetMgr* GetWidgetMgr(); + CXFA_FFApp* GetAdapterNative() const { return m_pAdapterNative; } + CFWL_WidgetMgr* GetWidgetMgr() const { return m_pWidgetMgr.get(); } CFWL_NoteDriver* GetNoteDriver() const { return m_pNoteDriver.get(); } private: @@ -42,10 +42,4 @@ class IFWL_App { std::unique_ptr m_pNoteDriver; }; -IFWL_App* FWL_GetApp(); -void FWL_SetApp(IFWL_App* pApp); - -CXFA_FFApp* FWL_GetAdapterNative(); -CXFA_FWLAdapterWidgetMgr* FWL_GetAdapterWidgetMgr(); - #endif // XFA_FWL_CORE_IFWL_APP_H_ -- cgit v1.2.3