| OLD | NEW |
| 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 Loading... |
| 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 { return m_pAdapterNative; } |
| 36 CFWL_WidgetMgr* GetWidgetMgr(); | 36 CFWL_WidgetMgr* GetWidgetMgr() const { return m_pWidgetMgr.get(); } |
| 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_ |
| OLD | NEW |