summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/Field.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-09-12 11:59:30 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-12 11:59:30 -0700
commit56cf519689846dd03a381fb6c4e7a054effdd20b (patch)
tree040b3b595750de1c5fd1fb0708ca0dcf04160444 /fpdfsdk/javascript/Field.h
parent55be02e2d6deb857fcf404c78b3633a3eac57e6c (diff)
downloadpdfium-56cf519689846dd03a381fb6c4e7a054effdd20b.tar.xz
Make javascript field observe sdk document
Review-Url: https://codereview.chromium.org/2337583002
Diffstat (limited to 'fpdfsdk/javascript/Field.h')
-rw-r--r--fpdfsdk/javascript/Field.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fpdfsdk/javascript/Field.h b/fpdfsdk/javascript/Field.h
index 0ffdbd4ba4..700302c724 100644
--- a/fpdfsdk/javascript/Field.h
+++ b/fpdfsdk/javascript/Field.h
@@ -10,6 +10,8 @@
#include <string>
#include <vector>
+#include "core/fxcrt/include/cfx_observable.h"
+#include "fpdfsdk/include/fsdk_mgr.h"
#include "fpdfsdk/javascript/JS_Define.h"
#include "fpdfsdk/pdfwindow/PWL_Wnd.h" // For CPWL_Color.
@@ -459,7 +461,7 @@ class Field : public CJS_EmbedObj {
public:
Document* m_pJSDoc;
- CPDFSDK_Document* m_pDocument;
+ CPDFSDK_Document::ObservedPtr m_pDocument;
CFX_WideString m_FieldName;
int m_nFormControlIndex;
FX_BOOL m_bCanSet;