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

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

Issue 2430563003: Merge IFWL_App and FWL_AppImp together (Closed)
Patch Set: Cleanup Created 4 years, 2 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
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef XFA_FWL_CORE_FWL_APPIMP_H_
8 #define XFA_FWL_CORE_FWL_APPIMP_H_
9
10 #include <memory>
11
12 #include "xfa/fwl/core/fwl_noteimp.h"
13
14 class CFWL_WidgetMgr;
15 class CXFA_FFApp;
16 class IFWL_App;
17 class IFWL_NoteThread;
18 class IFWL_ThemeProvider;
19
20 class CFWL_AppImp {
21 public:
22 CFWL_AppImp(IFWL_App* pIface, CXFA_FFApp* pAdapter);
23 ~CFWL_AppImp();
24
25 IFWL_App* GetInterface() const { return m_pIface; }
26 CFWL_NoteDriver* GetNoteDriver() const { return m_pNoteDriver.get(); }
27
28 FWL_Error Initialize();
29 FWL_Error Finalize();
30 CXFA_FFApp* GetAdapterNative() const;
31 CFWL_WidgetMgr* GetWidgetMgr() const;
32 IFWL_ThemeProvider* GetThemeProvider() const;
33 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider);
34 void Exit(int32_t iExitCode);
35
36 private:
37 CXFA_FFApp* const m_pAdapterNative;
38 std::unique_ptr<CFWL_WidgetMgr> m_pWidgetMgr;
39 IFWL_ThemeProvider* m_pThemeProvider;
40 std::unique_ptr<CFWL_NoteDriver> m_pNoteDriver;
41 IFWL_App* const m_pIface;
42 };
43
44 #endif // XFA_FWL_CORE_FWL_APPIMP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698