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

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

Issue 1943413002: Convert FWL_ERR into an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@bcdattribute
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
« no previous file with comments | « xfa/fwl/core/ifwl_adapterwidgetmgr.h ('k') | xfa/fwl/core/ifwl_dataprovider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_IFWL_APP_H_ 7 #ifndef XFA_FWL_CORE_IFWL_APP_H_
8 #define XFA_FWL_CORE_IFWL_APP_H_ 8 #define XFA_FWL_CORE_IFWL_APP_H_
9 9
10 // The FWL thread/app code contains three parallel classes, which reference each 10 // The FWL thread/app code contains three parallel classes, which reference each
(...skipping 16 matching lines...) Expand all
27 class IFWL_ThemeProvider; 27 class IFWL_ThemeProvider;
28 class IFWL_Widget; 28 class IFWL_Widget;
29 class IFWL_WidgetMgr; 29 class IFWL_WidgetMgr;
30 30
31 class IFWL_App { 31 class IFWL_App {
32 public: 32 public:
33 static IFWL_App* Create(IFWL_AdapterNative* pAdapter); 33 static IFWL_App* Create(IFWL_AdapterNative* pAdapter);
34 34
35 virtual ~IFWL_App() {} 35 virtual ~IFWL_App() {}
36 36
37 FWL_ERR Initialize(); 37 FWL_Error Initialize();
38 FWL_ERR Finalize(); 38 FWL_Error Finalize();
39 IFWL_AdapterNative* GetAdapterNative(); 39 IFWL_AdapterNative* GetAdapterNative();
40 IFWL_WidgetMgr* GetWidgetMgr(); 40 IFWL_WidgetMgr* GetWidgetMgr();
41 IFWL_ThemeProvider* GetThemeProvider(); 41 IFWL_ThemeProvider* GetThemeProvider();
42 FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); 42 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider);
43 FWL_ERR Exit(int32_t iExitCode); 43 FWL_Error Exit(int32_t iExitCode);
44 44
45 // These call into polymorphic methods in the impl; no need to override. 45 // These call into polymorphic methods in the impl; no need to override.
46 void Release(); 46 void Release();
47 47
48 CFWL_AppImp* GetImpl() const { return m_pImpl.get(); } 48 CFWL_AppImp* GetImpl() const { return m_pImpl.get(); }
49 49
50 // Takes ownership of |pImpl|. 50 // Takes ownership of |pImpl|.
51 void SetImpl(CFWL_AppImp* pImpl) { m_pImpl.reset(pImpl); } 51 void SetImpl(CFWL_AppImp* pImpl) { m_pImpl.reset(pImpl); }
52 52
53 CFWL_NoteDriver* GetNoteDriver() const; 53 CFWL_NoteDriver* GetNoteDriver() const;
54 54
55 private: 55 private:
56 IFWL_App() {} 56 IFWL_App() {}
57 57
58 std::unique_ptr<CFWL_AppImp> m_pImpl; 58 std::unique_ptr<CFWL_AppImp> m_pImpl;
59 }; 59 };
60 60
61 IFWL_App* FWL_GetApp(); 61 IFWL_App* FWL_GetApp();
62 void FWL_SetApp(IFWL_App* pApp); 62 void FWL_SetApp(IFWL_App* pApp);
63 63
64 IFWL_AdapterNative* FWL_GetAdapterNative(); 64 IFWL_AdapterNative* FWL_GetAdapterNative();
65 IFWL_AdapterWidgetMgr* FWL_GetAdapterWidgetMgr(); 65 IFWL_AdapterWidgetMgr* FWL_GetAdapterWidgetMgr();
66 66
67 #endif // XFA_FWL_CORE_IFWL_APP_H_ 67 #endif // XFA_FWL_CORE_IFWL_APP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_adapterwidgetmgr.h ('k') | xfa/fwl/core/ifwl_dataprovider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698