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

Unified Diff: fpdfsdk/include/cpdfsdk_baannot.h

Issue 2306663002: Add observer for BAAnnots from Javascript (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: fpdfsdk/include/cpdfsdk_baannot.h
diff --git a/fpdfsdk/include/cpdfsdk_baannot.h b/fpdfsdk/include/cpdfsdk_baannot.h
index 4575bfe087c4e54264407b516752c92d9622275c..9d56bf424cced53c0d0d55fc7d96eb9f02620c80 100644
--- a/fpdfsdk/include/cpdfsdk_baannot.h
+++ b/fpdfsdk/include/cpdfsdk_baannot.h
@@ -24,6 +24,17 @@ class CPDFSDK_PageView;
class CPDFSDK_BAAnnot : public CPDFSDK_Annot {
public:
+ class Observer : public CPDFSDK_Annot::Observer {
+ public:
+ explicit Observer(CPDFSDK_BAAnnot** pWatchedPtr);
+ ~Observer() override;
+
+ void OnAnnotDestroyed() override;
+
+ private:
+ CPDFSDK_BAAnnot** m_pWatchedPtr;
+ };
+
CPDFSDK_BAAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPageView);
~CPDFSDK_BAAnnot() override;

Powered by Google App Engine
This is Rietveld 408576698