Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: xfa/fxfa/include/xfa_ffapp.h

Issue 2328573002: Split CPDFXFA_Document apart (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FXFA_INCLUDE_XFA_FFAPP_H_ 7 #ifndef XFA_FXFA_INCLUDE_XFA_FFAPP_H_
8 #define XFA_FXFA_INCLUDE_XFA_FFAPP_H_ 8 #define XFA_FXFA_INCLUDE_XFA_FFAPP_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 24 matching lines...) Expand all
35 35
36 protected: 36 protected:
37 CFX_ObjectArray<CPDF_StreamAcc> m_Data; 37 CFX_ObjectArray<CPDF_StreamAcc> m_Data;
38 }; 38 };
39 39
40 class CXFA_FFApp { 40 class CXFA_FFApp {
41 public: 41 public:
42 explicit CXFA_FFApp(IXFA_AppProvider* pProvider); 42 explicit CXFA_FFApp(IXFA_AppProvider* pProvider);
43 ~CXFA_FFApp(); 43 ~CXFA_FFApp();
44 44
45 CXFA_FFDoc* CreateDoc(IXFA_DocProvider* pProvider, 45 CXFA_FFDoc* CreateDoc(IXFA_DocEnvironment* pProvider,
Tom Sepez 2016/09/08 17:12:37 "
dsinclair 2016/09/08 18:07:50 Done.
46 IFX_FileRead* pStream, 46 IFX_FileRead* pStream,
47 FX_BOOL bTakeOverFile); 47 FX_BOOL bTakeOverFile);
48 CXFA_FFDoc* CreateDoc(IXFA_DocProvider* pProvider, CPDF_Document* pPDFDoc); 48 CXFA_FFDoc* CreateDoc(IXFA_DocEnvironment* pProvider, CPDF_Document* pPDFDoc);
49 void SetDefaultFontMgr(std::unique_ptr<CXFA_DefFontMgr> pFontMgr); 49 void SetDefaultFontMgr(std::unique_ptr<CXFA_DefFontMgr> pFontMgr);
50 50
51 CXFA_FFDocHandler* GetDocHandler(); 51 CXFA_FFDocHandler* GetDocHandler();
52 CXFA_FWLAdapterWidgetMgr* GetWidgetMgr(CFWL_WidgetMgrDelegate* pDelegate); 52 CXFA_FWLAdapterWidgetMgr* GetWidgetMgr(CFWL_WidgetMgrDelegate* pDelegate);
53 IFGAS_FontMgr* GetFDEFontMgr(); 53 IFGAS_FontMgr* GetFDEFontMgr();
54 CXFA_FWLTheme* GetFWLTheme(); 54 CXFA_FWLTheme* GetFWLTheme();
55 55
56 IXFA_AppProvider* GetAppProvider() const { return m_pProvider; } 56 IXFA_AppProvider* GetAppProvider() const { return m_pProvider; }
57 IFWL_AdapterTimerMgr* GetTimerMgr() const; 57 IFWL_AdapterTimerMgr* GetTimerMgr() const;
58 CXFA_FontMgr* GetXFAFontMgr() const; 58 CXFA_FontMgr* GetXFAFontMgr() const;
(...skipping 24 matching lines...) Expand all
83 std::unique_ptr<CXFA_FWLAdapterWidgetMgr> m_pAdapterWidgetMgr; 83 std::unique_ptr<CXFA_FWLAdapterWidgetMgr> m_pAdapterWidgetMgr;
84 CFWL_WidgetMgrDelegate* m_pWidgetMgrDelegate; // not owned. 84 CFWL_WidgetMgrDelegate* m_pWidgetMgrDelegate; // not owned.
85 85
86 // |m_pFWLApp| has to be released first, then |m_pFWLTheme| since the former 86 // |m_pFWLApp| has to be released first, then |m_pFWLTheme| since the former
87 // may refers to theme manager and the latter refers to font manager. 87 // may refers to theme manager and the latter refers to font manager.
88 std::unique_ptr<CXFA_FWLTheme> m_pFWLTheme; 88 std::unique_ptr<CXFA_FWLTheme> m_pFWLTheme;
89 std::unique_ptr<IFWL_App> m_pFWLApp; 89 std::unique_ptr<IFWL_App> m_pFWLApp;
90 }; 90 };
91 91
92 #endif // XFA_FXFA_INCLUDE_XFA_FFAPP_H_ 92 #endif // XFA_FXFA_INCLUDE_XFA_FFAPP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698