summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorJochen Eisinger <jochen@chromium.org>2015-07-30 17:44:35 +0200
committerJochen Eisinger <jochen@chromium.org>2015-07-30 17:44:35 +0200
commit06b60021edacf7e4f2d1b1468a3aa898bab10301 (patch)
tree6c0177fefc0d839594abe81224fde3aae9951352 /public
parent4e57057c361897834b77b4c84b412f949427f974 (diff)
downloadpdfium-06b60021edacf7e4f2d1b1468a3aa898bab10301.tar.xz
Merge to XFA: Plumb in an externally created v8::Isolate
Origin Review URL: - https://codereview.chromium.org/1234053003 - https://codereview.chromium.org/1241863004 - https://codereview.chromium.org/1235303003 R=tsepez@chromium.org BUG= Review URL: https://codereview.chromium.org/1263963002 .
Diffstat (limited to 'public')
-rw-r--r--public/fpdf_formfill.h22
1 files changed, 19 insertions, 3 deletions
diff --git a/public/fpdf_formfill.h b/public/fpdf_formfill.h
index 4b0db76fcb..fda0a87f97 100644
--- a/public/fpdf_formfill.h
+++ b/public/fpdf_formfill.h
@@ -22,11 +22,13 @@ extern "C" {
typedef struct _IPDF_JsPlatform
{
-/**
-* Version number of the interface. Currently must be 1.
-**/
+ /**
+ * Version number of the interface. Currently must be 2.
+ **/
int version;
+ /* Version 1. */
+
/**
* Method: app_alert
* pop up a dialog to show warning or hint.
@@ -228,6 +230,20 @@ typedef struct _IPDF_JsPlatform
* pointer to FPDF_FORMFILLINFO interface.
**/
void* m_pFormfillinfo;
+
+ /* Version 2. */
+
+ /**
+ * pointer to the v8::Isolate to use, or NULL to force PDFium to create one.
+ **/
+ void* m_isolate;
+
+ /**
+ * The embedder data slot to use in the v8::Isolate to store PDFium's
+ * per-isolate data. The value needs to be between 0 and
+ * v8::Internals::kNumIsolateDataLots (exclusive).
+ */
+ unsigned int m_v8EmbedderSlot;
} IPDF_JSPLATFORM;
// Flags for Cursor type