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/fwl/src/core/include/fwl_appimp.h" | 7 #include "xfa/src/fwl/src/core/include/fwl_appimp.h" |
8 | 8 |
9 #include "xfa/include/fwl/adapter/fwl_adapterwidgetmgr.h" | 9 #include "xfa/include/fwl/adapter/fwl_adapterwidgetmgr.h" |
10 #include "xfa/include/fwl/core/fwl_app.h" | 10 #include "xfa/include/fwl/core/fwl_app.h" |
11 #include "xfa/include/fwl/core/fwl_widget.h" | 11 #include "xfa/include/fwl/core/fwl_widget.h" |
12 #include "xfa/src/foxitlib.h" | |
13 #include "xfa/src/fwl/src/core/include/fwl_noteimp.h" | 12 #include "xfa/src/fwl/src/core/include/fwl_noteimp.h" |
14 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h" | 13 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h" |
15 #include "xfa/src/fwl/src/core/include/fwl_threadimp.h" | 14 #include "xfa/src/fwl/src/core/include/fwl_threadimp.h" |
16 #include "xfa/src/fwl/src/core/include/fwl_widgetmgrimp.h" | 15 #include "xfa/src/fwl/src/core/include/fwl_widgetmgrimp.h" |
17 | 16 |
18 IFWL_App* IFWL_App::Create(IFWL_AdapterNative* pAdapter) { | 17 IFWL_App* IFWL_App::Create(IFWL_AdapterNative* pAdapter) { |
19 IFWL_App* pApp = new IFWL_App; | 18 IFWL_App* pApp = new IFWL_App; |
20 pApp->SetImpl(new CFWL_AppImp(pApp, pAdapter)); | 19 pApp->SetImpl(new CFWL_AppImp(pApp, pAdapter)); |
21 return pApp; | 20 return pApp; |
22 } | 21 } |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 IFWL_NoteThread* pNoteTread = pWidget->GetOwnerThread(); | 105 IFWL_NoteThread* pNoteTread = pWidget->GetOwnerThread(); |
107 if (!pNoteTread) | 106 if (!pNoteTread) |
108 return FWL_ERR_Succeeded; | 107 return FWL_ERR_Succeeded; |
109 CFWL_NoteDriver* pNoteDriver = | 108 CFWL_NoteDriver* pNoteDriver = |
110 static_cast<CFWL_NoteDriver*>(pNoteTread->GetNoteDriver()); | 109 static_cast<CFWL_NoteDriver*>(pNoteTread->GetNoteDriver()); |
111 if (!pNoteTread) | 110 if (!pNoteTread) |
112 return FWL_ERR_Succeeded; | 111 return FWL_ERR_Succeeded; |
113 pNoteDriver->NotifyFullScreenMode(pWidget, bFullScreen); | 112 pNoteDriver->NotifyFullScreenMode(pWidget, bFullScreen); |
114 return FWL_GetAdapterWidgetMgr()->SetFullScreen(pWidget, bFullScreen); | 113 return FWL_GetAdapterWidgetMgr()->SetFullScreen(pWidget, bFullScreen); |
115 } | 114 } |
OLD | NEW |