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

Side by Side Diff: core/fpdfdoc/include/cpdf_annot.h

Issue 2239853002: Hidden annotations should not be drawn (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Hidden annotations should not be drawn 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
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 CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_ 7 #ifndef CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_
8 #define CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_ 8 #define CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 FX_BOOL DrawInContext(const CPDF_Page* pPage, 53 FX_BOOL DrawInContext(const CPDF_Page* pPage,
54 CPDF_RenderContext* pContext, 54 CPDF_RenderContext* pContext,
55 const CFX_Matrix* pUser2Device, 55 const CFX_Matrix* pUser2Device,
56 AppearanceMode mode); 56 AppearanceMode mode);
57 void ClearCachedAP(); 57 void ClearCachedAP();
58 void DrawBorder(CFX_RenderDevice* pDevice, 58 void DrawBorder(CFX_RenderDevice* pDevice,
59 const CFX_Matrix* pUser2Device, 59 const CFX_Matrix* pUser2Device,
60 const CPDF_RenderOptions* pOptions); 60 const CPDF_RenderOptions* pOptions);
61 CPDF_Form* GetAPForm(const CPDF_Page* pPage, AppearanceMode mode); 61 CPDF_Form* GetAPForm(const CPDF_Page* pPage, AppearanceMode mode);
62 62
63 static FX_BOOL IsAnnotationHidden(CPDF_Dictionary* pAnnotDict);
dsinclair 2016/08/15 13:39:00 Move static definition up below the enum on line 3
tonikitoo 2016/08/15 13:51:02 Done.
64
63 private: 65 private:
64 CPDF_Dictionary* const m_pAnnotDict; 66 CPDF_Dictionary* const m_pAnnotDict;
65 CPDF_Document* const m_pDocument; 67 CPDF_Document* const m_pDocument;
66 const CFX_ByteString m_sSubtype; 68 const CFX_ByteString m_sSubtype;
67 std::map<CPDF_Stream*, std::unique_ptr<CPDF_Form>> m_APMap; 69 std::map<CPDF_Stream*, std::unique_ptr<CPDF_Form>> m_APMap;
68 }; 70 };
69 71
70 CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict, 72 CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict,
71 CPDF_Annot::AppearanceMode mode); 73 CPDF_Annot::AppearanceMode mode);
72 74
73 #endif // CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_ 75 #endif // CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_
OLDNEW
« core/fpdfdoc/cpdf_annot.cpp ('K') | « core/fpdfdoc/cpvt_generateap.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698