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

Side by Side Diff: public/fpdf_formfill.h

Issue 1234053003: Plumb in an externally created v8::Isolate (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: updates Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « fpdfsdk/src/javascript/JS_Runtime.cpp ('k') | samples/pdfium_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef PUBLIC_FPDF_FORMFILL_H_ 7 #ifndef PUBLIC_FPDF_FORMFILL_H_
8 #define PUBLIC_FPDF_FORMFILL_H_ 8 #define PUBLIC_FPDF_FORMFILL_H_
9 9
10 #include "fpdfview.h" 10 #include "fpdfview.h"
11 11
12 typedef void* FPDF_FORMHANDLE; 12 typedef void* FPDF_FORMHANDLE;
13 13
14 // Exported Functions 14 // Exported Functions
15 #ifdef __cplusplus 15 #ifdef __cplusplus
16 extern "C" { 16 extern "C" {
17 #endif 17 #endif
18 18
19 typedef struct _IPDF_JsPlatform 19 typedef struct _IPDF_JsPlatform
20 { 20 {
21 /** 21 /**
22 * Version number of the interface. Currently must be 1. 22 * Version number of the interface. Currently must be 2.
23 **/ 23 **/
24 int version; 24 int version;
25 25
26 /* Version 1. */
27
26 /** 28 /**
27 * Method: app_alert 29 * Method: app_alert
28 * pop up a dialog to show warning or hint. 30 * pop up a dialog to show warning or hint.
29 * Interface Version: 31 * Interface Version:
30 * 1 32 * 1
31 * Implementation Required: 33 * Implementation Required:
32 * yes 34 * yes
33 * Parameters: 35 * Parameters:
34 * pThis - Pointer to the interface structure itself 36 * pThis - Pointer to the interface structure itself
35 * Msg - A string containing the message to be displayed. 37 * Msg - A string containing the message to be displayed.
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 * Number of bytes the filePath consumes, including trailing zeros. 217 * Number of bytes the filePath consumes, including trailing zeros.
216 * Comments: 218 * Comments:
217 * The filePath shoule be always input in local encoding. 219 * The filePath shoule be always input in local encoding.
218 */ 220 */
219 int (*Field_browse)(struct _IPDF_JsPlatform* pThis,void* filePath, int leng th); 221 int (*Field_browse)(struct _IPDF_JsPlatform* pThis,void* filePath, int leng th);
220 222
221 /** 223 /**
222 * pointer to FPDF_FORMFILLINFO interface. 224 * pointer to FPDF_FORMFILLINFO interface.
223 **/ 225 **/
224 void* m_pFormfillinfo; 226 void* m_pFormfillinfo;
227
228 /* Version 2. */
229
230 /**
231 * pointer to the v8::Isolate to use, or NULL to force PDFium to create one .
232 **/
233 void* m_isolate;
225 } IPDF_JSPLATFORM; 234 } IPDF_JSPLATFORM;
226 235
227 // Flags for Cursor type 236 // Flags for Cursor type
228 #define FXCT_ARROW 0 237 #define FXCT_ARROW 0
229 #define FXCT_NESW 1 238 #define FXCT_NESW 1
230 #define FXCT_NWSE 2 239 #define FXCT_NWSE 2
231 #define FXCT_VBEAM 3 240 #define FXCT_VBEAM 3
232 #define FXCT_HBEAM 4 241 #define FXCT_HBEAM 4
233 #define FXCT_HAND 5 242 #define FXCT_HAND 5
234 243
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 **/ 835 **/
827 DLLEXPORT void STDCALL FPDF_FFLDraw(FPDF_FORMHANDLE hHandle,FPDF_BITMAP bitmap, FPDF_PAGE page, int start_x, int start_y, 836 DLLEXPORT void STDCALL FPDF_FFLDraw(FPDF_FORMHANDLE hHandle,FPDF_BITMAP bitmap, FPDF_PAGE page, int start_x, int start_y,
828 int size_x, int size_y, int rotate, int flags); 837 int size_x, int size_y, int rotate, int flags);
829 838
830 839
831 #ifdef __cplusplus 840 #ifdef __cplusplus
832 } 841 }
833 #endif 842 #endif
834 843
835 #endif // PUBLIC_FPDF_FORMFILL_H_ 844 #endif // PUBLIC_FPDF_FORMFILL_H_
OLDNEW
« no previous file with comments | « fpdfsdk/src/javascript/JS_Runtime.cpp ('k') | samples/pdfium_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698