From cc8b4d8763151f51c9fe71ce9b64b2a0d7ddcc88 Mon Sep 17 00:00:00 2001 From: Jochen Eisinger Date: Thu, 16 Jul 2015 09:37:48 +0200 Subject: Make v8 embedder data slot configurable Chrome already uses 0 and 1. BUG=none R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1235303003 . --- public/fpdf_formfill.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'public') diff --git a/public/fpdf_formfill.h b/public/fpdf_formfill.h index 1cc5551e0b..22ebc619b5 100644 --- a/public/fpdf_formfill.h +++ b/public/fpdf_formfill.h @@ -231,6 +231,13 @@ typedef struct _IPDF_JsPlatform * 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 -- cgit v1.2.3