From 1c79928b4ade95806d0351a21b4d4727d6c8ed38 Mon Sep 17 00:00:00 2001 From: Jochen Eisinger Date: Wed, 15 Jul 2015 14:31:29 +0200 Subject: Plumb in an externally created v8::Isolate In Chrome, all Isolates must be created by gin R=tsepez@chromium.org, ulan@chromium.org BUG= Review URL: https://codereview.chromium.org/1234053003 . --- public/fpdf_formfill.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'public') diff --git a/public/fpdf_formfill.h b/public/fpdf_formfill.h index a1b9ec2a77..1cc5551e0b 100644 --- a/public/fpdf_formfill.h +++ b/public/fpdf_formfill.h @@ -18,11 +18,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. @@ -222,6 +224,13 @@ 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; } IPDF_JSPLATFORM; // Flags for Cursor type -- cgit v1.2.3