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

Unified Diff: fpdfsdk/javascript/Field.h

Issue 2337583002: Make javascript field observe sdk document (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
« no previous file with comments | « no previous file | fpdfsdk/javascript/Field.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/javascript/Field.h
diff --git a/fpdfsdk/javascript/Field.h b/fpdfsdk/javascript/Field.h
index 0ffdbd4ba4c32f357858fa79c325be92073b040a..700302c7248dd812537abfd9d808f34d789f4b41 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"
Tom Sepez 2016/09/12 18:39:37 note: Dan, if you want to split CPDFSDK_Document
dsinclair 2016/09/12 18:49:43 Acknowledged.
#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;
« no previous file with comments | « no previous file | fpdfsdk/javascript/Field.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698