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 #include "xfa/fwl/core/fwl_appimp.h" | 7 #include "xfa/fwl/core/fwl_appimp.h" |
8 | 8 |
9 #include "xfa/fwl/core/fwl_noteimp.h" | 9 #include "xfa/fwl/core/fwl_noteimp.h" |
10 #include "xfa/fwl/core/fwl_widgetmgrimp.h" | 10 #include "xfa/fwl/core/fwl_widgetmgrimp.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 return FWL_Error::Succeeded; | 69 return FWL_Error::Succeeded; |
70 } | 70 } |
71 FWL_Error CFWL_AppImp::Finalize() { | 71 FWL_Error CFWL_AppImp::Finalize() { |
72 m_pWidgetMgr.reset(); | 72 m_pWidgetMgr.reset(); |
73 return FWL_Error::Succeeded; | 73 return FWL_Error::Succeeded; |
74 } | 74 } |
75 CXFA_FFApp* CFWL_AppImp::GetAdapterNative() const { | 75 CXFA_FFApp* CFWL_AppImp::GetAdapterNative() const { |
76 return m_pAdapterNative; | 76 return m_pAdapterNative; |
77 } | 77 } |
78 CXFA_FWLAdapterWidgetMgr* FWL_GetAdapterWidgetMgr() { | 78 CXFA_FWLAdapterWidgetMgr* FWL_GetAdapterWidgetMgr() { |
79 return static_cast<CFWL_WidgetMgr*>(FWL_GetWidgetMgr()) | 79 return static_cast<CFWL_WidgetMgr*>(IFWL_WidgetMgr::GetInstance()) |
80 ->GetAdapterWidgetMgr(); | 80 ->GetAdapterWidgetMgr(); |
81 } | 81 } |
82 IFWL_WidgetMgr* CFWL_AppImp::GetWidgetMgr() const { | 82 IFWL_WidgetMgr* CFWL_AppImp::GetWidgetMgr() const { |
83 return m_pWidgetMgr.get(); | 83 return m_pWidgetMgr.get(); |
84 } | 84 } |
85 | 85 |
86 void CFWL_AppImp::SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) { | 86 void CFWL_AppImp::SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) { |
87 m_pThemeProvider = pThemeProvider; | 87 m_pThemeProvider = pThemeProvider; |
88 } | 88 } |
89 | 89 |
(...skipping 15 matching lines...) Expand all Loading... |
105 } | 105 } |
106 | 106 |
107 static IFWL_App* g_theApp = nullptr; | 107 static IFWL_App* g_theApp = nullptr; |
108 IFWL_App* FWL_GetApp() { | 108 IFWL_App* FWL_GetApp() { |
109 return g_theApp; | 109 return g_theApp; |
110 } | 110 } |
111 | 111 |
112 void FWL_SetApp(IFWL_App* pApp) { | 112 void FWL_SetApp(IFWL_App* pApp) { |
113 g_theApp = pApp; | 113 g_theApp = pApp; |
114 } | 114 } |
OLD | NEW |