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/src/foxitlib.h" | 7 #include "xfa/src/foxitlib.h" |
8 #include "xfa/src/fwl/src/core/include/fwl_appimp.h" | 8 #include "xfa/src/fwl/src/core/include/fwl_appimp.h" |
9 #include "xfa/src/fwl/src/core/include/fwl_noteimp.h" | 9 #include "xfa/src/fwl/src/core/include/fwl_noteimp.h" |
10 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h" | 10 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 ->GetAdapterWidgetMgr(); | 65 ->GetAdapterWidgetMgr(); |
66 } | 66 } |
67 IFWL_WidgetMgr* CFWL_AppImp::GetWidgetMgr() const { | 67 IFWL_WidgetMgr* CFWL_AppImp::GetWidgetMgr() const { |
68 return m_pWidgetMgr.get(); | 68 return m_pWidgetMgr.get(); |
69 } | 69 } |
70 FWL_ERR CFWL_AppImp::SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) { | 70 FWL_ERR CFWL_AppImp::SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) { |
71 m_pThemeProvider = pThemeProvider; | 71 m_pThemeProvider = pThemeProvider; |
72 return FWL_ERR_Succeeded; | 72 return FWL_ERR_Succeeded; |
73 } | 73 } |
74 FWL_ERR CFWL_AppImp::Exit(int32_t iExitCode) { | 74 FWL_ERR CFWL_AppImp::Exit(int32_t iExitCode) { |
75 while (m_pNoteDriver->PopNoteLoop()) | 75 while (m_pNoteDriver->PopNoteLoop()) { |
76 ; | 76 } |
77 return m_pWidgetMgr->GetAdapterWidgetMgr()->Exit(0); | 77 return m_pWidgetMgr->GetAdapterWidgetMgr()->Exit(0); |
78 } | 78 } |
79 IFWL_ThemeProvider* CFWL_AppImp::GetThemeProvider() const { | 79 IFWL_ThemeProvider* CFWL_AppImp::GetThemeProvider() const { |
80 return m_pThemeProvider; | 80 return m_pThemeProvider; |
81 } | 81 } |
82 IFWL_AdapterNative* FWL_GetAdapterNative() { | 82 IFWL_AdapterNative* FWL_GetAdapterNative() { |
83 IFWL_App* pApp = FWL_GetApp(); | 83 IFWL_App* pApp = FWL_GetApp(); |
84 if (!pApp) | 84 if (!pApp) |
85 return NULL; | 85 return NULL; |
86 return pApp->GetAdapterNative(); | 86 return pApp->GetAdapterNative(); |
(...skipping 14 matching lines...) Expand all Loading... |
101 IFWL_NoteThread* pNoteTread = pWidget->GetOwnerThread(); | 101 IFWL_NoteThread* pNoteTread = pWidget->GetOwnerThread(); |
102 if (!pNoteTread) | 102 if (!pNoteTread) |
103 return FWL_ERR_Succeeded; | 103 return FWL_ERR_Succeeded; |
104 CFWL_NoteDriver* pNoteDriver = | 104 CFWL_NoteDriver* pNoteDriver = |
105 static_cast<CFWL_NoteDriver*>(pNoteTread->GetNoteDriver()); | 105 static_cast<CFWL_NoteDriver*>(pNoteTread->GetNoteDriver()); |
106 if (!pNoteTread) | 106 if (!pNoteTread) |
107 return FWL_ERR_Succeeded; | 107 return FWL_ERR_Succeeded; |
108 pNoteDriver->NotifyFullScreenMode(pWidget, bFullScreen); | 108 pNoteDriver->NotifyFullScreenMode(pWidget, bFullScreen); |
109 return FWL_GetAdapterWidgetMgr()->SetFullScreen(pWidget, bFullScreen); | 109 return FWL_GetAdapterWidgetMgr()->SetFullScreen(pWidget, bFullScreen); |
110 } | 110 } |
OLD | NEW |