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

Side by Side Diff: xfa/fwl/core/fwl_appimp.h

Issue 1921853006: More FWL interface cleanup. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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_FWL_CORE_FWL_APPIMP_H_ 7 #ifndef XFA_FWL_CORE_FWL_APPIMP_H_
8 #define XFA_FWL_CORE_FWL_APPIMP_H_ 8 #define XFA_FWL_CORE_FWL_APPIMP_H_
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "xfa/fwl/core/fwl_threadimp.h" 12 #include "xfa/fwl/core/fwl_noteimp.h"
13 13
14 class CFWL_WidgetMgr; 14 class CFWL_WidgetMgr;
15 class IFWL_AdapterNative; 15 class IFWL_AdapterNative;
16 class IFWL_App;
17 class CFWL_NoteDriver;
18 class IFWL_NoteThread;
19 class IFWL_ThemeProvider;
16 class IFWL_WidgetMgr; 20 class IFWL_WidgetMgr;
17 class IFWL_ThemeProvider;
18 class IFWL_App;
19 21
20 class CFWL_AppImp : public CFWL_ThreadImp { 22 class CFWL_AppImp {
21 public: 23 public:
22 CFWL_AppImp(IFWL_App* pIface, IFWL_AdapterNative* pAdapter); 24 CFWL_AppImp(IFWL_App* pIface, IFWL_AdapterNative* pAdapter);
23 virtual ~CFWL_AppImp(); 25 virtual ~CFWL_AppImp();
26
27 IFWL_App* GetInterface() const { return m_pIface; }
28 CFWL_NoteDriver* GetNoteDriver() const { return m_pNoteDriver; }
29
24 virtual FWL_ERR Initialize(); 30 virtual FWL_ERR Initialize();
25 virtual FWL_ERR Finalize(); 31 virtual FWL_ERR Finalize();
26 virtual IFWL_AdapterNative* GetAdapterNative() const; 32 virtual IFWL_AdapterNative* GetAdapterNative() const;
27 virtual IFWL_WidgetMgr* GetWidgetMgr() const; 33 virtual IFWL_WidgetMgr* GetWidgetMgr() const;
28 virtual IFWL_ThemeProvider* GetThemeProvider() const; 34 virtual IFWL_ThemeProvider* GetThemeProvider() const;
29 virtual FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); 35 virtual FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider);
30 virtual FWL_ERR Exit(int32_t iExitCode = 0); 36 virtual FWL_ERR Exit(int32_t iExitCode = 0);
31 37
32 protected: 38 protected:
33 IFWL_AdapterNative* const m_pAdapterNative; 39 IFWL_AdapterNative* const m_pAdapterNative;
34 std::unique_ptr<CFWL_WidgetMgr> m_pWidgetMgr; 40 std::unique_ptr<CFWL_WidgetMgr> m_pWidgetMgr;
35 IFWL_ThemeProvider* m_pThemeProvider; 41 IFWL_ThemeProvider* m_pThemeProvider;
42 CFWL_NoteDriver* const m_pNoteDriver;
43
44 private:
45 IFWL_App* const m_pIface;
36 }; 46 };
37 47
38 #endif // XFA_FWL_CORE_FWL_APPIMP_H_ 48 #endif // XFA_FWL_CORE_FWL_APPIMP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698