Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(865)

Side by Side Diff: xfa/fwl/core/fwl_appimp.cpp

Issue 1902083002: Remove fullscreen code. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | xfa/fwl/core/fwl_formimp.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_targetimp.h" 10 #include "xfa/fwl/core/fwl_targetimp.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 IFWL_ThemeProvider* CFWL_AppImp::GetThemeProvider() const { 83 IFWL_ThemeProvider* CFWL_AppImp::GetThemeProvider() const {
84 return m_pThemeProvider; 84 return m_pThemeProvider;
85 } 85 }
86 IFWL_AdapterNative* FWL_GetAdapterNative() { 86 IFWL_AdapterNative* FWL_GetAdapterNative() {
87 IFWL_App* pApp = FWL_GetApp(); 87 IFWL_App* pApp = FWL_GetApp();
88 if (!pApp) 88 if (!pApp)
89 return NULL; 89 return NULL;
90 return pApp->GetAdapterNative(); 90 return pApp->GetAdapterNative();
91 } 91 }
92 IFWL_ThemeProvider* FWL_GetThemeProvider() {
93 return NULL;
94 }
95 static IFWL_App* _theApp = NULL; 92 static IFWL_App* _theApp = NULL;
96 IFWL_App* FWL_GetApp() { 93 IFWL_App* FWL_GetApp() {
97 return _theApp; 94 return _theApp;
98 } 95 }
99 void FWL_SetApp(IFWL_App* pApp) { 96 void FWL_SetApp(IFWL_App* pApp) {
100 _theApp = pApp; 97 _theApp = pApp;
101 } 98 }
102 FWL_ERR FWL_SetFullScreen(IFWL_Widget* pWidget, FX_BOOL bFullScreen) {
103 if (!pWidget)
104 return FWL_ERR_Succeeded;
105 IFWL_Thread* pNoteTread = pWidget->GetOwnerThread();
106 if (!pNoteTread)
107 return FWL_ERR_Succeeded;
108 CFWL_NoteDriver* pNoteDriver =
109 static_cast<CFWL_NoteDriver*>(pNoteTread->GetNoteDriver());
110 if (!pNoteTread)
111 return FWL_ERR_Succeeded;
112 pNoteDriver->NotifyFullScreenMode(pWidget, bFullScreen);
113 return FWL_GetAdapterWidgetMgr()->SetFullScreen(pWidget, bFullScreen);
114 }
OLDNEW
« no previous file with comments | « no previous file | xfa/fwl/core/fwl_formimp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698