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

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

Issue 2273893002: Display content of the annotation when mouse hover. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Removing useless comments. 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 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 20 matching lines...) Expand all
31 CFX_ByteString GetType() const override; 31 CFX_ByteString GetType() const override;
32 CFX_ByteString GetSubType() const override; 32 CFX_ByteString GetSubType() const override;
33 void SetRect(const CFX_FloatRect& rect) override; 33 void SetRect(const CFX_FloatRect& rect) override;
34 CFX_FloatRect GetRect() const override; 34 CFX_FloatRect GetRect() const override;
35 CPDF_Annot* GetPDFAnnot() const override; 35 CPDF_Annot* GetPDFAnnot() const override;
36 void Annot_OnDraw(CFX_RenderDevice* pDevice, 36 void Annot_OnDraw(CFX_RenderDevice* pDevice,
37 CFX_Matrix* pUser2Device, 37 CFX_Matrix* pUser2Device,
38 CPDF_RenderOptions* pOptions) override; 38 CPDF_RenderOptions* pOptions) override;
39 39
40 CPDF_Dictionary* GetAnnotDict() const; 40 CPDF_Dictionary* GetAnnotDict() const;
41 CPDF_Annot* GetPDFPopupAnnot() const;
41 42
42 void SetContents(const CFX_WideString& sContents); 43 void SetContents(const CFX_WideString& sContents);
43 CFX_WideString GetContents() const; 44 CFX_WideString GetContents() const;
44 45
45 void SetAnnotName(const CFX_WideString& sName); 46 void SetAnnotName(const CFX_WideString& sName);
46 CFX_WideString GetAnnotName() const; 47 CFX_WideString GetAnnotName() const;
47 48
48 void SetModifiedDate(const FX_SYSTEMTIME& st); 49 void SetModifiedDate(const FX_SYSTEMTIME& st);
49 FX_SYSTEMTIME GetModifiedDate() const; 50 FX_SYSTEMTIME GetModifiedDate() const;
50 51
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 const CPDF_RenderOptions* pOptions); 91 const CPDF_RenderOptions* pOptions);
91 92
92 void ClearCachedAP(); 93 void ClearCachedAP();
93 94
94 void WriteAppearance(const CFX_ByteString& sAPType, 95 void WriteAppearance(const CFX_ByteString& sAPType,
95 const CFX_FloatRect& rcBBox, 96 const CFX_FloatRect& rcBBox,
96 const CFX_Matrix& matrix, 97 const CFX_Matrix& matrix,
97 const CFX_ByteString& sContents, 98 const CFX_ByteString& sContents,
98 const CFX_ByteString& sAPState = ""); 99 const CFX_ByteString& sAPState = "");
99 100
101 void SetOpenState(bool bState);
102
100 protected: 103 protected:
101 CPDF_Annot* m_pAnnot; 104 CPDF_Annot* m_pAnnot;
102 }; 105 };
103 106
104 #endif // FPDFSDK_INCLUDE_CPDFSDK_BAANNOT_H_ 107 #endif // FPDFSDK_INCLUDE_CPDFSDK_BAANNOT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698