Chromium Code Reviews| Index: core/fpdfdoc/include/cpdf_annot.h |
| diff --git a/core/fpdfdoc/include/cpdf_annot.h b/core/fpdfdoc/include/cpdf_annot.h |
| index 9f8671633c2698a990490184590fe62c5eb9e65e..6d2bd8c2ed8135832fb3b12837920c6f15717ca6 100644 |
| --- a/core/fpdfdoc/include/cpdf_annot.h |
| +++ b/core/fpdfdoc/include/cpdf_annot.h |
| @@ -61,6 +61,9 @@ class CPDF_Annot { |
| const CFX_Matrix* pUser2Device, |
| const CPDF_RenderOptions* pOptions); |
| CPDF_Form* GetAPForm(const CPDF_Page* pPage, AppearanceMode mode); |
| + void SetOpenState(bool bOpenState) { m_bOpenState = bOpenState; } |
| + CPDF_Annot* GetPopupAnnot() const { return m_pPopupAnnot; } |
| + void SetPopupAnnot(CPDF_Annot* pAnnot) { m_pPopupAnnot = pAnnot; } |
| private: |
| void GenerateAPIfNeeded(); |
| @@ -69,6 +72,9 @@ class CPDF_Annot { |
| CPDF_Document* const m_pDocument; |
| const CFX_ByteString m_sSubtype; |
| std::map<CPDF_Stream*, std::unique_ptr<CPDF_Form>> m_APMap; |
| + bool m_bOpenState; |
|
Lei Zhang
2016/08/27 02:16:53
|m_bOpenState| is only ever set for popups, right?
jaepark
2016/08/29 21:19:25
Yes, it is only set for popups.
|
| + // Not owned. |
| + CPDF_Annot* m_pPopupAnnot; |
|
Lei Zhang
2016/08/27 02:16:53
And the annot with a valid pointer to the popup is
jaepark
2016/08/29 21:19:24
Done.
|
| }; |
| CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict, |