summaryrefslogtreecommitdiff
path: root/fpdfsdk/include
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-09-12 11:21:42 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-12 11:21:42 -0700
commit55be02e2d6deb857fcf404c78b3633a3eac57e6c (patch)
tree8712da4a1b90a323ca3c3dfa0de18a41c2ac67cf /fpdfsdk/include
parent0b022056c74c00d0c52166e33c81c8b842d00d63 (diff)
downloadpdfium-55be02e2d6deb857fcf404c78b3633a3eac57e6c.tar.xz
Make wrapped JS Document observe C++-side object.
First of several patches to ensure JS objects don't track stale C++ objects. Review-Url: https://codereview.chromium.org/2323903002
Diffstat (limited to 'fpdfsdk/include')
-rw-r--r--fpdfsdk/include/fsdk_mgr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fpdfsdk/include/fsdk_mgr.h b/fpdfsdk/include/fsdk_mgr.h
index f37e64fe41..38b06a9b5a 100644
--- a/fpdfsdk/include/fsdk_mgr.h
+++ b/fpdfsdk/include/fsdk_mgr.h
@@ -14,6 +14,7 @@
#include "core/fpdfapi/fpdf_page/include/cpdf_page.h"
#include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
#include "core/fpdfdoc/include/cpdf_occontext.h"
+#include "core/fxcrt/include/cfx_observable.h"
#include "fpdfsdk/cfx_systemhandler.h"
#include "fpdfsdk/include/cpdfsdk_annot.h"
#include "fpdfsdk/include/fsdk_actionhandler.h"
@@ -444,7 +445,7 @@ class CPDFDoc_Environment final {
std::unique_ptr<CFX_SystemHandler> m_pSysHandler;
};
-class CPDFSDK_Document {
+class CPDFSDK_Document : public CFX_Observable<CPDFSDK_Document> {
public:
static CPDFSDK_Document* FromFPDFFormHandle(FPDF_FORMHANDLE hHandle);