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

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

Issue 2340523002: [Merge to 54] Fixup CPDFSDK_PageView and CPDF_Page interactions. (Closed)
Patch Set: Created 4 years, 3 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/Field.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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 } 600 }
601 601
602 int GetPageIndex() const; 602 int GetPageIndex() const;
603 void LoadFXAnnots(); 603 void LoadFXAnnots();
604 void ClearFXAnnots(); 604 void ClearFXAnnots();
605 void SetValid(FX_BOOL bValid) { m_bValid = bValid; } 605 void SetValid(FX_BOOL bValid) { m_bValid = bValid; }
606 FX_BOOL IsValid() { return m_bValid; } 606 FX_BOOL IsValid() { return m_bValid; }
607 void SetLock(FX_BOOL bLocked) { m_bLocked = bLocked; } 607 void SetLock(FX_BOOL bLocked) { m_bLocked = bLocked; }
608 FX_BOOL IsLocked() { return m_bLocked; } 608 FX_BOOL IsLocked() { return m_bLocked; }
609 #ifndef PDF_ENABLE_XFA 609 #ifndef PDF_ENABLE_XFA
610 void TakeOverPage() { m_bTakeOverPage = TRUE; } 610 bool OwnsPage() const { return m_bOwnsPage; }
611 void TakePageOwnership() { m_bOwnsPage = true; }
611 #endif // PDF_ENABLE_XFA 612 #endif // PDF_ENABLE_XFA
612 613
613 private: 614 private:
614 int GetPageIndexForStaticPDF() const; 615 int GetPageIndexForStaticPDF() const;
615 616
616 CFX_Matrix m_curMatrix; 617 CFX_Matrix m_curMatrix;
617 UnderlyingPageType* const m_page; 618 UnderlyingPageType* const m_page;
618 std::unique_ptr<CPDF_AnnotList> m_pAnnotList; 619 std::unique_ptr<CPDF_AnnotList> m_pAnnotList;
619 std::vector<CPDFSDK_Annot*> m_fxAnnotArray; 620 std::vector<CPDFSDK_Annot*> m_fxAnnotArray;
620 CPDFSDK_Document* const m_pSDKDoc; 621 CPDFSDK_Document* const m_pSDKDoc;
621 #ifdef PDF_ENABLE_XFA 622 #ifdef PDF_ENABLE_XFA
622 CPDFSDK_Annot* m_CaptureWidget; 623 CPDFSDK_Annot* m_CaptureWidget;
623 #else // PDF_ENABLE_XFA 624 #else // PDF_ENABLE_XFA
624 CPDFSDK_Widget* m_CaptureWidget; 625 CPDFSDK_Widget* m_CaptureWidget;
625 FX_BOOL m_bTakeOverPage; 626 bool m_bOwnsPage;
dsinclair 2016/09/13 18:23:33 There was a merge conflict here as master removes
626 #endif // PDF_ENABLE_XFA 627 #endif // PDF_ENABLE_XFA
627 FX_BOOL m_bEnterWidget; 628 FX_BOOL m_bEnterWidget;
628 FX_BOOL m_bExitWidget; 629 FX_BOOL m_bExitWidget;
629 FX_BOOL m_bOnWidget; 630 FX_BOOL m_bOnWidget;
630 FX_BOOL m_bValid; 631 FX_BOOL m_bValid;
631 FX_BOOL m_bLocked; 632 FX_BOOL m_bLocked;
632 }; 633 };
633 634
634 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ 635 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fsdk_mgr.cpp ('k') | fpdfsdk/javascript/Field.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698