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

Side by Side Diff: fpdfsdk/cpdfsdk_document.h

Issue 2398063002: Fixup MSan embeddertests (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/fpdfformfill.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_DOCUMENT_H_ 7 #ifndef FPDFSDK_CPDFSDK_DOCUMENT_H_
8 #define FPDFSDK_CPDFSDK_DOCUMENT_H_ 8 #define FPDFSDK_CPDFSDK_DOCUMENT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #ifdef PDF_ENABLE_XFA 47 #ifdef PDF_ENABLE_XFA
48 return m_pDoc ? m_pDoc->GetPDFDoc() : nullptr; 48 return m_pDoc ? m_pDoc->GetPDFDoc() : nullptr;
49 #else // PDF_ENABLE_XFA 49 #else // PDF_ENABLE_XFA
50 return m_pDoc; 50 return m_pDoc;
51 #endif // PDF_ENABLE_XFA 51 #endif // PDF_ENABLE_XFA
52 } 52 }
53 53
54 #ifdef PDF_ENABLE_XFA 54 #ifdef PDF_ENABLE_XFA
55 // Gets the XFA document directly (XFA-only). 55 // Gets the XFA document directly (XFA-only).
56 CPDFXFA_Document* GetXFADocument() const { return m_pDoc; } 56 CPDFXFA_Document* GetXFADocument() const { return m_pDoc; }
57 void ResetXFADocument() { m_pDoc = nullptr; }
57 58
58 int GetPageViewCount() const { return m_pageMap.size(); } 59 int GetPageViewCount() const { return m_pageMap.size(); }
59 #endif // PDF_ENABLE_XFA 60 #endif // PDF_ENABLE_XFA
60 61
61 CPDFSDK_PageView* GetPageView(UnderlyingPageType* pPage, bool ReNew); 62 CPDFSDK_PageView* GetPageView(UnderlyingPageType* pPage, bool ReNew);
62 CPDFSDK_PageView* GetPageView(int nIndex); 63 CPDFSDK_PageView* GetPageView(int nIndex);
63 CPDFSDK_PageView* GetCurrentView(); 64 CPDFSDK_PageView* GetCurrentView();
64 void RemovePageView(UnderlyingPageType* pPage); 65 void RemovePageView(UnderlyingPageType* pPage);
65 void UpdateAllViews(CPDFSDK_PageView* pSender, CPDFSDK_Annot* pAnnot); 66 void UpdateAllViews(CPDFSDK_PageView* pSender, CPDFSDK_Annot* pAnnot);
66 67
(...skipping 30 matching lines...) Expand all
97 std::map<UnderlyingPageType*, CPDFSDK_PageView*> m_pageMap; 98 std::map<UnderlyingPageType*, CPDFSDK_PageView*> m_pageMap;
98 UnderlyingDocumentType* m_pDoc; 99 UnderlyingDocumentType* m_pDoc;
99 std::unique_ptr<CPDFSDK_InterForm> m_pInterForm; 100 std::unique_ptr<CPDFSDK_InterForm> m_pInterForm;
100 CPDFSDK_Annot::ObservedPtr m_pFocusAnnot; 101 CPDFSDK_Annot::ObservedPtr m_pFocusAnnot;
101 CPDFSDK_FormFillEnvironment* m_pEnv; 102 CPDFSDK_FormFillEnvironment* m_pEnv;
102 FX_BOOL m_bChangeMask; 103 FX_BOOL m_bChangeMask;
103 FX_BOOL m_bBeingDestroyed; 104 FX_BOOL m_bBeingDestroyed;
104 }; 105 };
105 106
106 #endif // FPDFSDK_CPDFSDK_DOCUMENT_H_ 107 #endif // FPDFSDK_CPDFSDK_DOCUMENT_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/fpdfformfill.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698