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

Side by Side Diff: fpdfsdk/include/fsdk_mgr.h

Issue 2179163004: Reland of Remove pageview from map immediately (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: FX_BOOL to bool Created 4 years, 4 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 | « fpdfsdk/fsdk_mgr.cpp ('k') | fpdfsdk/javascript/Document.cpp » ('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 #ifndef FPDFSDK_INCLUDE_FSDK_MGR_H_ 7 #ifndef FPDFSDK_INCLUDE_FSDK_MGR_H_
8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_ 8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 #endif // PDF_ENABLE_XFA 472 #endif // PDF_ENABLE_XFA
473 } 473 }
474 474
475 #ifdef PDF_ENABLE_XFA 475 #ifdef PDF_ENABLE_XFA
476 // Gets the XFA document directly (XFA-only). 476 // Gets the XFA document directly (XFA-only).
477 CPDFXFA_Document* GetXFADocument() const { return m_pDoc; } 477 CPDFXFA_Document* GetXFADocument() const { return m_pDoc; }
478 478
479 int GetPageViewCount() const { return m_pageMap.size(); } 479 int GetPageViewCount() const { return m_pageMap.size(); }
480 #endif // PDF_ENABLE_XFA 480 #endif // PDF_ENABLE_XFA
481 481
482 CPDFSDK_PageView* GetPageView(UnderlyingPageType* pPage, 482 CPDFSDK_PageView* GetPageView(UnderlyingPageType* pPage, bool ReNew);
483 FX_BOOL ReNew = TRUE);
484 CPDFSDK_PageView* GetPageView(int nIndex); 483 CPDFSDK_PageView* GetPageView(int nIndex);
485 CPDFSDK_PageView* GetCurrentView(); 484 CPDFSDK_PageView* GetCurrentView();
486 void RemovePageView(UnderlyingPageType* pPage); 485 void RemovePageView(UnderlyingPageType* pPage);
487 void UpdateAllViews(CPDFSDK_PageView* pSender, CPDFSDK_Annot* pAnnot); 486 void UpdateAllViews(CPDFSDK_PageView* pSender, CPDFSDK_Annot* pAnnot);
488 487
489 CPDFSDK_Annot* GetFocusAnnot(); 488 CPDFSDK_Annot* GetFocusAnnot();
490 489
491 IJS_Runtime* GetJsRuntime(); 490 IJS_Runtime* GetJsRuntime();
492 491
493 FX_BOOL SetFocusAnnot(CPDFSDK_Annot* pAnnot, FX_UINT nFlag = 0); 492 FX_BOOL SetFocusAnnot(CPDFSDK_Annot* pAnnot, FX_UINT nFlag = 0);
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 FX_BOOL m_bTakeOverPage; 625 FX_BOOL m_bTakeOverPage;
627 #endif // PDF_ENABLE_XFA 626 #endif // PDF_ENABLE_XFA
628 FX_BOOL m_bEnterWidget; 627 FX_BOOL m_bEnterWidget;
629 FX_BOOL m_bExitWidget; 628 FX_BOOL m_bExitWidget;
630 FX_BOOL m_bOnWidget; 629 FX_BOOL m_bOnWidget;
631 FX_BOOL m_bValid; 630 FX_BOOL m_bValid;
632 FX_BOOL m_bLocked; 631 FX_BOOL m_bLocked;
633 }; 632 };
634 633
635 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ 634 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fsdk_mgr.cpp ('k') | fpdfsdk/javascript/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698