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

Side by Side Diff: core/fpdfdoc/include/cpdf_annot.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 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
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,
56 CPDF_RenderContext* pContext, 56 CPDF_RenderContext* pContext,
57 const CFX_Matrix* pUser2Device, 57 const CFX_Matrix* pUser2Device,
58 AppearanceMode mode); 58 AppearanceMode mode);
59 void ClearCachedAP(); 59 void ClearCachedAP();
60 void DrawBorder(CFX_RenderDevice* pDevice, 60 void DrawBorder(CFX_RenderDevice* pDevice,
61 const CFX_Matrix* pUser2Device, 61 const CFX_Matrix* pUser2Device,
62 const CPDF_RenderOptions* pOptions); 62 const CPDF_RenderOptions* pOptions);
63 CPDF_Form* GetAPForm(const CPDF_Page* pPage, AppearanceMode mode); 63 CPDF_Form* GetAPForm(const CPDF_Page* pPage, AppearanceMode mode);
64 void SetOpenState(bool bOpenState) { m_bOpenState = bOpenState; }
65 CPDF_Annot* GetPopupAnnot() const { return m_pPopupAnnot; }
66 void SetPopupAnnot(CPDF_Annot* pAnnot) { m_pPopupAnnot = pAnnot; }
64 67
65 private: 68 private:
66 CPDF_Dictionary* const m_pAnnotDict; 69 CPDF_Dictionary* const m_pAnnotDict;
67 CPDF_Document* const m_pDocument; 70 CPDF_Document* const m_pDocument;
68 const CFX_ByteString m_sSubtype; 71 const CFX_ByteString m_sSubtype;
69 std::map<CPDF_Stream*, std::unique_ptr<CPDF_Form>> m_APMap; 72 std::map<CPDF_Stream*, std::unique_ptr<CPDF_Form>> m_APMap;
73 bool m_bOpenState;
74 CPDF_Annot* m_pPopupAnnot;
dsinclair 2016/08/24 14:00:20 Add a // not owned if this doesn't take possession
jaepark 2016/08/24 18:37:48 Done.
dsinclair 2016/08/24 18:56:27 Sorry, wasn't clear in my comment. Add a: // not
jaepark 2016/08/26 02:37:29 Done.
70 }; 75 };
71 76
72 CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict, 77 CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict,
73 CPDF_Annot::AppearanceMode mode); 78 CPDF_Annot::AppearanceMode mode);
74 79
75 #endif // CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_ 80 #endif // CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698