summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/ifwl_app.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-10-31 07:29:34 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-31 07:29:34 -0700
commit20855384b8149a631c3c1d229551523c12eb767b (patch)
treee3cef278e322742bea6c4b48f40ed580754ebd80 /xfa/fwl/core/ifwl_app.h
parent747dcf775c5cb661e96a639f73322cc489d8590f (diff)
downloadpdfium-20855384b8149a631c3c1d229551523c12eb767b.tar.xz
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
Diffstat (limited to 'xfa/fwl/core/ifwl_app.h')
-rw-r--r--xfa/fwl/core/ifwl_app.h10
1 files changed, 2 insertions, 8 deletions
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<CFWL_NoteDriver> 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_