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

Side by Side Diff: fpdfsdk/cpdfsdk_pageview.h

Issue 2391663002: Remove unused CPDFSDK_PageView::ClearFXAnnots (Closed)
Patch Set: Created 4 years, 2 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 | fpdfsdk/cpdfsdk_pageview.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_CPDFSDK_PAGEVIEW_H_ 7 #ifndef FPDFSDK_CPDFSDK_PAGEVIEW_H_
8 #define FPDFSDK_CPDFSDK_PAGEVIEW_H_ 8 #define FPDFSDK_CPDFSDK_PAGEVIEW_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 bool IsValidAnnot(const CPDF_Annot* p) const; 85 bool IsValidAnnot(const CPDF_Annot* p) const;
86 void GetCurrentMatrix(CFX_Matrix& matrix) { matrix = m_curMatrix; } 86 void GetCurrentMatrix(CFX_Matrix& matrix) { matrix = m_curMatrix; }
87 void UpdateRects(const std::vector<CFX_FloatRect>& rects); 87 void UpdateRects(const std::vector<CFX_FloatRect>& rects);
88 void UpdateView(CPDFSDK_Annot* pAnnot); 88 void UpdateView(CPDFSDK_Annot* pAnnot);
89 const std::vector<CPDFSDK_Annot*>& GetAnnotList() const { 89 const std::vector<CPDFSDK_Annot*>& GetAnnotList() const {
90 return m_fxAnnotArray; 90 return m_fxAnnotArray;
91 } 91 }
92 92
93 int GetPageIndex() const; 93 int GetPageIndex() const;
94 void LoadFXAnnots(); 94 void LoadFXAnnots();
95 void ClearFXAnnots(); 95
96 void SetValid(FX_BOOL bValid) { m_bValid = bValid; } 96 void SetValid(FX_BOOL bValid) { m_bValid = bValid; }
97 FX_BOOL IsValid() { return m_bValid; } 97 FX_BOOL IsValid() { return m_bValid; }
98
98 void SetLock(FX_BOOL bLocked) { m_bLocked = bLocked; } 99 void SetLock(FX_BOOL bLocked) { m_bLocked = bLocked; }
99 FX_BOOL IsLocked() { return m_bLocked; } 100 FX_BOOL IsLocked() { return m_bLocked; }
100 #ifndef PDF_ENABLE_XFA 101 #ifndef PDF_ENABLE_XFA
101 bool OwnsPage() const { return m_bOwnsPage; } 102 bool OwnsPage() const { return m_bOwnsPage; }
102 void TakePageOwnership() { m_bOwnsPage = true; } 103 void TakePageOwnership() { m_bOwnsPage = true; }
103 #endif // PDF_ENABLE_XFA 104 #endif // PDF_ENABLE_XFA
104 105
105 private: 106 private:
106 int GetPageIndexForStaticPDF() const; 107 int GetPageIndexForStaticPDF() const;
107 108
108 CFX_Matrix m_curMatrix; 109 CFX_Matrix m_curMatrix;
109 UnderlyingPageType* const m_page; 110 UnderlyingPageType* const m_page;
110 std::unique_ptr<CPDF_AnnotList> m_pAnnotList; 111 std::unique_ptr<CPDF_AnnotList> m_pAnnotList;
111 std::vector<CPDFSDK_Annot*> m_fxAnnotArray; 112 std::vector<CPDFSDK_Annot*> m_fxAnnotArray;
112 CPDFSDK_Document* const m_pSDKDoc; 113 CPDFSDK_Document* const m_pSDKDoc;
113 CPDFSDK_Annot::ObservedPtr m_pCaptureWidget; 114 CPDFSDK_Annot::ObservedPtr m_pCaptureWidget;
114 #ifndef PDF_ENABLE_XFA 115 #ifndef PDF_ENABLE_XFA
115 bool m_bOwnsPage; 116 bool m_bOwnsPage;
116 #endif // PDF_ENABLE_XFA 117 #endif // PDF_ENABLE_XFA
117 FX_BOOL m_bEnterWidget; 118 FX_BOOL m_bEnterWidget;
118 FX_BOOL m_bExitWidget; 119 FX_BOOL m_bExitWidget;
119 FX_BOOL m_bOnWidget; 120 FX_BOOL m_bOnWidget;
120 FX_BOOL m_bValid; 121 FX_BOOL m_bValid;
121 FX_BOOL m_bLocked; 122 FX_BOOL m_bLocked;
122 }; 123 };
123 124
124 #endif // FPDFSDK_CPDFSDK_PAGEVIEW_H_ 125 #endif // FPDFSDK_CPDFSDK_PAGEVIEW_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/cpdfsdk_pageview.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698