| OLD | NEW |
| 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_XFA_FFAPP_H_ | 7 #ifndef XFA_FXFA_XFA_FFAPP_H_ |
| 8 #define XFA_FXFA_XFA_FFAPP_H_ | 8 #define XFA_FXFA_XFA_FFAPP_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class CXFA_FontMgr; | 24 class CXFA_FontMgr; |
| 25 class IFWL_AdapterTimerMgr; | 25 class IFWL_AdapterTimerMgr; |
| 26 | 26 |
| 27 class CXFA_FileRead : public IFX_SeekableReadStream { | 27 class CXFA_FileRead : public IFX_SeekableReadStream { |
| 28 public: | 28 public: |
| 29 explicit CXFA_FileRead(const std::vector<CPDF_Stream*>& streams); | 29 explicit CXFA_FileRead(const std::vector<CPDF_Stream*>& streams); |
| 30 ~CXFA_FileRead() override; | 30 ~CXFA_FileRead() override; |
| 31 | 31 |
| 32 // IFX_SeekableReadStream | 32 // IFX_SeekableReadStream |
| 33 FX_FILESIZE GetSize() override; | 33 FX_FILESIZE GetSize() override; |
| 34 FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override; | 34 bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override; |
| 35 void Release() override; | 35 void Release() override; |
| 36 | 36 |
| 37 protected: | 37 protected: |
| 38 CFX_ObjectArray<CPDF_StreamAcc> m_Data; | 38 CFX_ObjectArray<CPDF_StreamAcc> m_Data; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 class CXFA_FFApp { | 41 class CXFA_FFApp { |
| 42 public: | 42 public: |
| 43 explicit CXFA_FFApp(IXFA_AppProvider* pProvider); | 43 explicit CXFA_FFApp(IXFA_AppProvider* pProvider); |
| 44 ~CXFA_FFApp(); | 44 ~CXFA_FFApp(); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 std::unique_ptr<CXFA_FWLAdapterWidgetMgr> m_pAdapterWidgetMgr; | 85 std::unique_ptr<CXFA_FWLAdapterWidgetMgr> m_pAdapterWidgetMgr; |
| 86 CFWL_WidgetMgrDelegate* m_pWidgetMgrDelegate; // not owned. | 86 CFWL_WidgetMgrDelegate* m_pWidgetMgrDelegate; // not owned. |
| 87 | 87 |
| 88 // |m_pFWLApp| has to be released first, then |m_pFWLTheme| since the former | 88 // |m_pFWLApp| has to be released first, then |m_pFWLTheme| since the former |
| 89 // may refers to theme manager and the latter refers to font manager. | 89 // may refers to theme manager and the latter refers to font manager. |
| 90 std::unique_ptr<CXFA_FWLTheme> m_pFWLTheme; | 90 std::unique_ptr<CXFA_FWLTheme> m_pFWLTheme; |
| 91 std::unique_ptr<IFWL_App> m_pFWLApp; | 91 std::unique_ptr<IFWL_App> m_pFWLApp; |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 #endif // XFA_FXFA_XFA_FFAPP_H_ | 94 #endif // XFA_FXFA_XFA_FFAPP_H_ |
| OLD | NEW |