summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_document.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-10-05 12:00:34 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-05 12:00:34 -0700
commit8afe15a019c78a24168ebc42306342c25358ccdf (patch)
tree09012697e63b0a1fa4654f6e6f93b69a04421171 /fpdfsdk/cpdfsdk_document.h
parent7c1b07fde27dfbbf1d979d9dfd616b1a42591e5f (diff)
downloadpdfium-8afe15a019c78a24168ebc42306342c25358ccdf.tar.xz
Cleanup some CPDFSDK_PageView annotation code.
This Cl cleans up the code regarding CPDFSDK_Annots in CPDFSDK_PageView. This includes: * Makes DeleteAnnot XFA only and wraps at the call site. * Removes unused methods * Replaces use of CountAnnots and GetAnnot with vector iteration * Removes {Set|Kill}FocusAnnot from CPDFSDK_PageView * Renames m_fxAnnotArray to m_SDKAnnotArray Review-Url: https://codereview.chromium.org/2384323005
Diffstat (limited to 'fpdfsdk/cpdfsdk_document.h')
-rw-r--r--fpdfsdk/cpdfsdk_document.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/fpdfsdk/cpdfsdk_document.h b/fpdfsdk/cpdfsdk_document.h
index 196fba42cc..697ee48f9d 100644
--- a/fpdfsdk/cpdfsdk_document.h
+++ b/fpdfsdk/cpdfsdk_document.h
@@ -64,12 +64,11 @@ class CPDFSDK_Document : public CFX_Observable<CPDFSDK_Document> {
void RemovePageView(UnderlyingPageType* pPage);
void UpdateAllViews(CPDFSDK_PageView* pSender, CPDFSDK_Annot* pAnnot);
- CPDFSDK_Annot* GetFocusAnnot();
-
IJS_Runtime* GetJsRuntime();
- FX_BOOL SetFocusAnnot(CPDFSDK_Annot::ObservedPtr* pAnnot, uint32_t nFlag = 0);
- FX_BOOL KillFocusAnnot(uint32_t nFlag = 0);
+ CPDFSDK_Annot* GetFocusAnnot() { return m_pFocusAnnot.Get(); }
+ FX_BOOL SetFocusAnnot(CPDFSDK_Annot::ObservedPtr* pAnnot);
+ FX_BOOL KillFocusAnnot(uint32_t nFlag);
FX_BOOL ExtractPages(const std::vector<uint16_t>& arrExtraPages,
CPDF_Document* pDstDoc);