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

Side by Side Diff: fpdfsdk/include/cpdfsdk_baannot.h

Issue 2295953002: Use enum class for subtypes of CPDF_Annot. (Closed)
Patch Set: Use enum class for subtypes of CPDF_Annot. 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 | « fpdfsdk/include/cpdfsdk_annothandlermgr.h ('k') | fpdfsdk/include/cpdfsdk_baannothandler.h » ('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 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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_INCLUDE_CPDFSDK_BAANNOT_H_ 7 #ifndef FPDFSDK_INCLUDE_CPDFSDK_BAANNOT_H_
8 #define FPDFSDK_INCLUDE_CPDFSDK_BAANNOT_H_ 8 #define FPDFSDK_INCLUDE_CPDFSDK_BAANNOT_H_
9 9
10 #include "core/fpdfdoc/include/cpdf_aaction.h" 10 #include "core/fpdfdoc/include/cpdf_aaction.h"
(...skipping 10 matching lines...) Expand all
21 class CPDF_Dictionary; 21 class CPDF_Dictionary;
22 class CPDF_RenderOptions; 22 class CPDF_RenderOptions;
23 class CPDFSDK_PageView; 23 class CPDFSDK_PageView;
24 24
25 class CPDFSDK_BAAnnot : public CPDFSDK_Annot { 25 class CPDFSDK_BAAnnot : public CPDFSDK_Annot {
26 public: 26 public:
27 CPDFSDK_BAAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPageView); 27 CPDFSDK_BAAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPageView);
28 ~CPDFSDK_BAAnnot() override; 28 ~CPDFSDK_BAAnnot() override;
29 29
30 // CPDFSDK_Annot 30 // CPDFSDK_Annot
31 CFX_ByteString GetAnnotSubtype() const override; 31 CPDF_Annot::Subtype GetAnnotSubtype() const override;
32 void SetRect(const CFX_FloatRect& rect) override; 32 void SetRect(const CFX_FloatRect& rect) override;
33 CFX_FloatRect GetRect() const override; 33 CFX_FloatRect GetRect() const override;
34 CPDF_Annot* GetPDFAnnot() const override; 34 CPDF_Annot* GetPDFAnnot() const override;
35 void Annot_OnDraw(CFX_RenderDevice* pDevice, 35 void Annot_OnDraw(CFX_RenderDevice* pDevice,
36 CFX_Matrix* pUser2Device, 36 CFX_Matrix* pUser2Device,
37 CPDF_RenderOptions* pOptions) override; 37 CPDF_RenderOptions* pOptions) override;
38 38
39 CPDF_Dictionary* GetAnnotDict() const; 39 CPDF_Dictionary* GetAnnotDict() const;
40 CPDF_Annot* GetPDFPopupAnnot() const; 40 CPDF_Annot* GetPDFPopupAnnot() const;
41 41
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 const CFX_ByteString& sContents, 97 const CFX_ByteString& sContents,
98 const CFX_ByteString& sAPState = ""); 98 const CFX_ByteString& sAPState = "");
99 99
100 void SetOpenState(bool bState); 100 void SetOpenState(bool bState);
101 101
102 protected: 102 protected:
103 CPDF_Annot* m_pAnnot; 103 CPDF_Annot* m_pAnnot;
104 }; 104 };
105 105
106 #endif // FPDFSDK_INCLUDE_CPDFSDK_BAANNOT_H_ 106 #endif // FPDFSDK_INCLUDE_CPDFSDK_BAANNOT_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/cpdfsdk_annothandlermgr.h ('k') | fpdfsdk/include/cpdfsdk_baannothandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698