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

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

Issue 2436103002: Remove FWL globals. (Closed)
Patch Set: fix mac 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
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 #include <memory> 10 #include <memory>
(...skipping 14 matching lines...) Expand all
25 FWL_KEYFLAG_LButton = 1 << 4, 25 FWL_KEYFLAG_LButton = 1 << 4,
26 FWL_KEYFLAG_RButton = 1 << 5, 26 FWL_KEYFLAG_RButton = 1 << 5,
27 FWL_KEYFLAG_MButton = 1 << 6 27 FWL_KEYFLAG_MButton = 1 << 6
28 }; 28 };
29 29
30 class IFWL_App { 30 class IFWL_App {
31 public: 31 public:
32 explicit IFWL_App(CXFA_FFApp* pAdapter); 32 explicit IFWL_App(CXFA_FFApp* pAdapter);
33 ~IFWL_App(); 33 ~IFWL_App();
34 34
35 CXFA_FFApp* GetAdapterNative(); 35 CXFA_FFApp* GetAdapterNative() const;
Tom Sepez 2016/10/28 23:11:47 nit: do we want these inline as well? Or should Ge
dsinclair 2016/10/31 14:13:18 Inlined.
36 CFWL_WidgetMgr* GetWidgetMgr(); 36 CFWL_WidgetMgr* GetWidgetMgr() const;
37 CFWL_NoteDriver* GetNoteDriver() const { return m_pNoteDriver.get(); } 37 CFWL_NoteDriver* GetNoteDriver() const { return m_pNoteDriver.get(); }
38 38
39 private: 39 private:
40 CXFA_FFApp* const m_pAdapterNative; 40 CXFA_FFApp* const m_pAdapterNative;
41 std::unique_ptr<CFWL_WidgetMgr> m_pWidgetMgr; 41 std::unique_ptr<CFWL_WidgetMgr> m_pWidgetMgr;
42 std::unique_ptr<CFWL_NoteDriver> m_pNoteDriver; 42 std::unique_ptr<CFWL_NoteDriver> m_pNoteDriver;
43 }; 43 };
44 44
45 IFWL_App* FWL_GetApp();
46 void FWL_SetApp(IFWL_App* pApp);
47
48 CXFA_FFApp* FWL_GetAdapterNative();
49 CXFA_FWLAdapterWidgetMgr* FWL_GetAdapterWidgetMgr();
50
51 #endif // XFA_FWL_CORE_IFWL_APP_H_ 45 #endif // XFA_FWL_CORE_IFWL_APP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698