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

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

Issue 2287703002: Rename CPDFSDK_Annot::GetType to CPDFSDK_Annot::GetAnnotSubtype. (Closed)
Patch Set: Rename CPDFSDK_Annot::GetType to CPDFSDK_Annot::GetAnnotSubtype. 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 | « core/fpdfdoc/cpdf_annotlist.cpp ('k') | fpdfsdk/cba_annotiterator.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_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 24 matching lines...) Expand all
35 35
36 class CPDF_Annot { 36 class CPDF_Annot {
37 public: 37 public:
38 enum AppearanceMode { Normal, Rollover, Down }; 38 enum AppearanceMode { Normal, Rollover, Down };
39 39
40 static bool IsAnnotationHidden(CPDF_Dictionary* pAnnotDict); 40 static bool IsAnnotationHidden(CPDF_Dictionary* pAnnotDict);
41 41
42 CPDF_Annot(CPDF_Dictionary* pDict, CPDF_Document* pDocument); 42 CPDF_Annot(CPDF_Dictionary* pDict, CPDF_Document* pDocument);
43 ~CPDF_Annot(); 43 ~CPDF_Annot();
44 44
45 CFX_ByteString GetSubType() const; 45 CFX_ByteString GetSubtype() const;
46 uint32_t GetFlags() const; 46 uint32_t GetFlags() const;
47 CFX_FloatRect GetRect() const; 47 CFX_FloatRect GetRect() const;
48 const CPDF_Dictionary* GetAnnotDict() const { return m_pAnnotDict; } 48 const CPDF_Dictionary* GetAnnotDict() const { return m_pAnnotDict; }
49 CPDF_Dictionary* GetAnnotDict() { return m_pAnnotDict; } 49 CPDF_Dictionary* GetAnnotDict() { return m_pAnnotDict; }
50 FX_BOOL DrawAppearance(CPDF_Page* pPage, 50 FX_BOOL DrawAppearance(CPDF_Page* pPage,
51 CFX_RenderDevice* pDevice, 51 CFX_RenderDevice* pDevice,
52 const CFX_Matrix* pUser2Device, 52 const CFX_Matrix* pUser2Device,
53 AppearanceMode mode, 53 AppearanceMode mode,
54 const CPDF_RenderOptions* pOptions); 54 const CPDF_RenderOptions* pOptions);
55 FX_BOOL DrawInContext(const CPDF_Page* pPage, 55 FX_BOOL DrawInContext(const CPDF_Page* pPage,
(...skipping 12 matching lines...) Expand all
68 CPDF_Dictionary* const m_pAnnotDict; 68 CPDF_Dictionary* const m_pAnnotDict;
69 CPDF_Document* const m_pDocument; 69 CPDF_Document* const m_pDocument;
70 const CFX_ByteString m_sSubtype; 70 const CFX_ByteString m_sSubtype;
71 std::map<CPDF_Stream*, std::unique_ptr<CPDF_Form>> m_APMap; 71 std::map<CPDF_Stream*, std::unique_ptr<CPDF_Form>> m_APMap;
72 }; 72 };
73 73
74 CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict, 74 CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict,
75 CPDF_Annot::AppearanceMode mode); 75 CPDF_Annot::AppearanceMode mode);
76 76
77 #endif // CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_ 77 #endif // CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_
OLDNEW
« no previous file with comments | « core/fpdfdoc/cpdf_annotlist.cpp ('k') | fpdfsdk/cba_annotiterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698