Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 * m_isolate must be set). | |
|
Tom Sepez
2015/07/14 19:34:17
nit: stray line.
| |
| 23 **/ | 24 **/ |
| 24 int version; | 25 int version; |
| 25 | 26 |
|
Tom Sepez
2015/07/14 19:32:35
nit: still would like a /* Version 1. */ comment h
| |
| 26 /** | 27 /** |
| 27 * Method: app_alert | 28 * Method: app_alert |
| 28 * pop up a dialog to show warning or hint. | 29 * pop up a dialog to show warning or hint. |
| 29 * Interface Version: | 30 * Interface Version: |
| 30 * 1 | 31 * 1 |
| 31 * Implementation Required: | 32 * Implementation Required: |
| 32 * yes | 33 * yes |
| 33 * Parameters: | 34 * Parameters: |
| 34 * pThis - Pointer to the interface structure itself | 35 * pThis - Pointer to the interface structure itself |
| 35 * Msg - A string containing the message to be displayed. | 36 * Msg - A string containing the message to be displayed. |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 215 * Number of bytes the filePath consumes, including trailing zeros. | 216 * Number of bytes the filePath consumes, including trailing zeros. |
| 216 * Comments: | 217 * Comments: |
| 217 * The filePath shoule be always input in local encoding. | 218 * The filePath shoule be always input in local encoding. |
| 218 */ | 219 */ |
| 219 int (*Field_browse)(struct _IPDF_JsPlatform* pThis,void* filePath, int leng th); | 220 int (*Field_browse)(struct _IPDF_JsPlatform* pThis,void* filePath, int leng th); |
| 220 | 221 |
| 221 /** | 222 /** |
| 222 * pointer to FPDF_FORMFILLINFO interface. | 223 * pointer to FPDF_FORMFILLINFO interface. |
| 223 **/ | 224 **/ |
| 224 void* m_pFormfillinfo; | 225 void* m_pFormfillinfo; |
| 226 | |
|
Tom Sepez
2015/07/14 19:32:35
nit: still would like a /* Version 2. */ comment h
| |
| 227 /** | |
| 228 * pointer to the v8::Isolate to use, or NULL to force PDFium to create one . | |
| 229 **/ | |
| 230 void* m_isolate; | |
| 225 } IPDF_JSPLATFORM; | 231 } IPDF_JSPLATFORM; |
| 226 | 232 |
| 227 // Flags for Cursor type | 233 // Flags for Cursor type |
| 228 #define FXCT_ARROW 0 | 234 #define FXCT_ARROW 0 |
| 229 #define FXCT_NESW 1 | 235 #define FXCT_NESW 1 |
| 230 #define FXCT_NWSE 2 | 236 #define FXCT_NWSE 2 |
| 231 #define FXCT_VBEAM 3 | 237 #define FXCT_VBEAM 3 |
| 232 #define FXCT_HBEAM 4 | 238 #define FXCT_HBEAM 4 |
| 233 #define FXCT_HAND 5 | 239 #define FXCT_HAND 5 |
| 234 | 240 |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 826 **/ | 832 **/ |
| 827 DLLEXPORT void STDCALL FPDF_FFLDraw(FPDF_FORMHANDLE hHandle,FPDF_BITMAP bitmap, FPDF_PAGE page, int start_x, int start_y, | 833 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); | 834 int size_x, int size_y, int rotate, int flags); |
| 829 | 835 |
| 830 | 836 |
| 831 #ifdef __cplusplus | 837 #ifdef __cplusplus |
| 832 } | 838 } |
| 833 #endif | 839 #endif |
| 834 | 840 |
| 835 #endif // PUBLIC_FPDF_FORMFILL_H_ | 841 #endif // PUBLIC_FPDF_FORMFILL_H_ |
| OLD | NEW |