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

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

Issue 2477443002: Remove FX_BOOL from core (Closed)
Patch Set: Created 4 years, 1 month 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 | « core/fpdfdoc/cpdf_aaction.cpp ('k') | core/fpdfdoc/cpdf_annot.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 CORE_FPDFDOC_CPDF_ANNOT_H_ 7 #ifndef CORE_FPDFDOC_CPDF_ANNOT_H_
8 #define CORE_FPDFDOC_CPDF_ANNOT_H_ 8 #define CORE_FPDFDOC_CPDF_ANNOT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 CPDF_Annot(CPDF_Dictionary* pDict, CPDF_Document* pDocument, bool bToOwnDict); 76 CPDF_Annot(CPDF_Dictionary* pDict, CPDF_Document* pDocument, bool bToOwnDict);
77 ~CPDF_Annot(); 77 ~CPDF_Annot();
78 78
79 CPDF_Annot::Subtype GetSubtype() const; 79 CPDF_Annot::Subtype GetSubtype() const;
80 uint32_t GetFlags() const; 80 uint32_t GetFlags() const;
81 CFX_FloatRect GetRect() const; 81 CFX_FloatRect GetRect() const;
82 const CPDF_Dictionary* GetAnnotDict() const { return m_pAnnotDict; } 82 const CPDF_Dictionary* GetAnnotDict() const { return m_pAnnotDict; }
83 CPDF_Dictionary* GetAnnotDict() { return m_pAnnotDict; } 83 CPDF_Dictionary* GetAnnotDict() { return m_pAnnotDict; }
84 CPDF_Document* GetDocument() const { return m_pDocument; } 84 CPDF_Document* GetDocument() const { return m_pDocument; }
85 85
86 FX_BOOL DrawAppearance(CPDF_Page* pPage, 86 bool DrawAppearance(CPDF_Page* pPage,
87 CFX_RenderDevice* pDevice, 87 CFX_RenderDevice* pDevice,
88 const CFX_Matrix* pUser2Device, 88 const CFX_Matrix* pUser2Device,
89 AppearanceMode mode, 89 AppearanceMode mode,
90 const CPDF_RenderOptions* pOptions); 90 const CPDF_RenderOptions* pOptions);
91 FX_BOOL DrawInContext(const CPDF_Page* pPage, 91 bool DrawInContext(const CPDF_Page* pPage,
92 CPDF_RenderContext* pContext, 92 CPDF_RenderContext* pContext,
93 const CFX_Matrix* pUser2Device, 93 const CFX_Matrix* pUser2Device,
94 AppearanceMode mode); 94 AppearanceMode mode);
95 95
96 void ClearCachedAP(); 96 void ClearCachedAP();
97 void DrawBorder(CFX_RenderDevice* pDevice, 97 void DrawBorder(CFX_RenderDevice* pDevice,
98 const CFX_Matrix* pUser2Device, 98 const CFX_Matrix* pUser2Device,
99 const CPDF_RenderOptions* pOptions); 99 const CPDF_RenderOptions* pOptions);
100 CPDF_Form* GetAPForm(const CPDF_Page* pPage, AppearanceMode mode); 100 CPDF_Form* GetAPForm(const CPDF_Page* pPage, AppearanceMode mode);
101 void SetOpenState(bool bOpenState) { m_bOpenState = bOpenState; } 101 void SetOpenState(bool bOpenState) { m_bOpenState = bOpenState; }
102 CPDF_Annot* GetPopupAnnot() const { return m_pPopupAnnot; } 102 CPDF_Annot* GetPopupAnnot() const { return m_pPopupAnnot; }
103 void SetPopupAnnot(CPDF_Annot* pAnnot) { m_pPopupAnnot = pAnnot; } 103 void SetPopupAnnot(CPDF_Annot* pAnnot) { m_pPopupAnnot = pAnnot; }
104 104
(...skipping 17 matching lines...) Expand all
122 bool m_bIsTextMarkupAnnotation; 122 bool m_bIsTextMarkupAnnotation;
123 // Not owned. If there is a valid pointer in |m_pPopupAnnot|, 123 // Not owned. If there is a valid pointer in |m_pPopupAnnot|,
124 // then this annot is never a popup. 124 // then this annot is never a popup.
125 CPDF_Annot* m_pPopupAnnot; 125 CPDF_Annot* m_pPopupAnnot;
126 }; 126 };
127 127
128 CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict, 128 CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict,
129 CPDF_Annot::AppearanceMode mode); 129 CPDF_Annot::AppearanceMode mode);
130 130
131 #endif // CORE_FPDFDOC_CPDF_ANNOT_H_ 131 #endif // CORE_FPDFDOC_CPDF_ANNOT_H_
OLDNEW
« no previous file with comments | « core/fpdfdoc/cpdf_aaction.cpp ('k') | core/fpdfdoc/cpdf_annot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698