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

Side by Side Diff: xfa/src/fxfa/src/app/xfa_ffapp.h

Issue 1735833003: Remove include only fwl.h and IWYU. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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_SRC_FXFA_SRC_APP_XFA_FFAPP_H_ 7 #ifndef XFA_SRC_FXFA_SRC_APP_XFA_FFAPP_H_
8 #define XFA_SRC_FXFA_SRC_APP_XFA_FFAPP_H_ 8 #define XFA_SRC_FXFA_SRC_APP_XFA_FFAPP_H_
9 9
10 #include "core/include/fpdfapi/fpdf_objects.h"
11 #include "xfa/include/fwl/adapter/fwl_adapternative.h"
12 #include "xfa/include/fwl/adapter/fwl_sdadapterimp.h"
13 #include "xfa/include/fwl/core/fwl_app.h"
14 #include "xfa/include/fxfa/fxfa.h"
15 #include "xfa/src/fgas/include/fx_fnt.h"
16
17 class CXFA_FWLAdapterWidgetMgr;
18 class CXFA_FWLTheme;
19 class CXFA_FFDocHandler;
20 class CXFA_FFMenuHandler;
21 class CXFA_FontMgr;
22
10 class CXFA_FileRead : public IFX_FileRead { 23 class CXFA_FileRead : public IFX_FileRead {
11 public: 24 public:
12 explicit CXFA_FileRead(const CFX_ArrayTemplate<CPDF_Stream*>& streams); 25 explicit CXFA_FileRead(const CFX_ArrayTemplate<CPDF_Stream*>& streams);
13 26
14 virtual FX_FILESIZE GetSize(); 27 virtual FX_FILESIZE GetSize();
15 virtual FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size); 28 virtual FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size);
16 29
17 virtual void Release() { delete this; } 30 virtual void Release() { delete this; }
18 31
19 protected: 32 protected:
20 CFX_ObjectArray<CPDF_StreamAcc> m_Data; 33 CFX_ObjectArray<CPDF_StreamAcc> m_Data;
21 }; 34 };
22 class CXFA_FWLAdapterWidgetMgr; 35
23 class CXFA_FWLTheme;
24 class CXFA_FFDocHandler;
25 class CXFA_FFMenuHandler;
26 class CXFA_FontMgr;
27 class CXFA_FFApp : public IXFA_App, public IFWL_AdapterNative { 36 class CXFA_FFApp : public IXFA_App, public IFWL_AdapterNative {
28 public: 37 public:
29 CXFA_FFApp(IXFA_AppProvider* pProvider); 38 CXFA_FFApp(IXFA_AppProvider* pProvider);
30 ~CXFA_FFApp() override; 39 ~CXFA_FFApp() override;
31 40
32 // IFXFA_App: 41 // IFXFA_App:
33 IXFA_DocHandler* GetDocHandler() override; 42 IXFA_DocHandler* GetDocHandler() override;
34 IXFA_Doc* CreateDoc(IXFA_DocProvider* pProvider, 43 IXFA_Doc* CreateDoc(IXFA_DocProvider* pProvider,
35 IFX_FileRead* pStream, 44 IFX_FileRead* pStream,
36 FX_BOOL bTakeOverFile) override; 45 FX_BOOL bTakeOverFile) override;
(...skipping 26 matching lines...) Expand all
63 IFX_FontSourceEnum* m_pFontSource; 72 IFX_FontSourceEnum* m_pFontSource;
64 #endif 73 #endif
65 CXFA_FWLAdapterWidgetMgr* m_pAdapterWidgetMgr; 74 CXFA_FWLAdapterWidgetMgr* m_pAdapterWidgetMgr;
66 IFWL_WidgetMgrDelegate* m_pWidgetMgrDelegate; 75 IFWL_WidgetMgrDelegate* m_pWidgetMgrDelegate;
67 IFX_FontMgr* m_pFDEFontMgr; 76 IFX_FontMgr* m_pFDEFontMgr;
68 CXFA_FFMenuHandler* m_pMenuHandler; 77 CXFA_FFMenuHandler* m_pMenuHandler;
69 CFWL_SDAdapterThreadMgr* m_pAdapterThreadMgr; 78 CFWL_SDAdapterThreadMgr* m_pAdapterThreadMgr;
70 }; 79 };
71 80
72 #endif // XFA_SRC_FXFA_SRC_APP_XFA_FFAPP_H_ 81 #endif // XFA_SRC_FXFA_SRC_APP_XFA_FFAPP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698