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

Unified Diff: fpdfsdk/javascript/Annot.h

Issue 2306663002: Add observer for BAAnnots from Javascript (Closed)
Patch Set: cleanup 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/javascript/Annot.h
diff --git a/fpdfsdk/javascript/Annot.h b/fpdfsdk/javascript/Annot.h
index b3ea292aed86e3a30e6912058477e3bed590b31c..97d0a2fd13c54ed869a5da13676a4bb1fd9e71ad 100644
--- a/fpdfsdk/javascript/Annot.h
+++ b/fpdfsdk/javascript/Annot.h
@@ -7,6 +7,8 @@
#ifndef FPDFSDK_JAVASCRIPT_ANNOT_H_
#define FPDFSDK_JAVASCRIPT_ANNOT_H_
+#include <memory>
+
#include "fpdfsdk/include/cpdfsdk_baannot.h"
#include "fpdfsdk/javascript/JS_Define.h"
@@ -22,7 +24,8 @@ class Annot : public CJS_EmbedObj {
void SetSDKAnnot(CPDFSDK_BAAnnot* annot);
private:
- CPDFSDK_BAAnnot* m_BAAnnot = nullptr;
+ CPDFSDK_Annot* m_Annot = nullptr;
Lei Zhang 2016/09/02 01:21:25 Can this stay as a CPDFSDK_BAAnnot*, and thus remo
Lei Zhang 2016/09/02 01:21:25 nit: m_pAnnot
dsinclair 2016/09/06 15:44:49 Sigh, can we start moving away from this notation
dsinclair 2016/09/06 15:44:49 No, this has to be a CPDFSDK_Annot so we can pass
+ std::unique_ptr<CPDFSDK_Annot::Observer> m_pObserver;
};
class CJS_Annot : public CJS_Object {

Powered by Google App Engine
This is Rietveld 408576698