summaryrefslogtreecommitdiff
path: root/fxjs/cjs_document.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-06-26 15:11:28 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-26 15:11:28 +0000
commit2cbae7328b4eb31a78db5babc4d5995971de308f (patch)
treecae010d322b164b0a4042275eac815e52e30aa47 /fxjs/cjs_document.h
parent75ee53784b5e51583c6c994d6eeadb7d3ce4a1b9 (diff)
downloadpdfium-2cbae7328b4eb31a78db5babc4d5995971de308f.tar.xz
Use ObservedPtr for CJS_Field::m_pJSField
Bug: 856354 Change-Id: Ic0ac4d189dff6f4688a6c5feb745fe8c5a5ed4bb Reviewed-on: https://pdfium-review.googlesource.com/36150 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/cjs_document.h')
-rw-r--r--fxjs/cjs_document.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/fxjs/cjs_document.h b/fxjs/cjs_document.h
index 262d472cca..2af617f8ad 100644
--- a/fxjs/cjs_document.h
+++ b/fxjs/cjs_document.h
@@ -11,14 +11,13 @@
#include <memory>
#include <vector>
+#include "core/fxcrt/observable.h"
#include "fxjs/js_define.h"
-class CJS_Document;
class CPDF_TextObject;
-
struct CJS_DelayData;
-class CJS_Document : public CJS_Object {
+class CJS_Document : public CJS_Object, public Observable<CJS_Document> {
public:
static int GetObjDefnID();
static void DefineJSObjects(CFXJS_Engine* pEngine);