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