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 namespace v8 { | |
|
tsepez (do not use)
2015/07/14 17:02:29
Actually, these public files are expected to compi
| |
| 15 class Isolate; | |
| 16 } | |
| 17 | |
| 14 // Exported Functions | 18 // Exported Functions |
| 15 #ifdef __cplusplus | 19 #ifdef __cplusplus |
| 16 extern "C" { | 20 extern "C" { |
| 17 #endif | 21 #endif |
| 18 | 22 |
| 19 typedef struct _IPDF_JsPlatform | 23 typedef struct _IPDF_JsPlatform |
| 20 { | 24 { |
| 21 /** | 25 /** |
| 22 * Version number of the interface. Currently must be 1. | 26 * Version number of the interface. Currently must be 1 or 2 (in the latter case |
|
Tom Sepez
2015/07/14 16:29:27
nit: probably just say "Currently must be 2."
| |
| 27 * m_isolate must be set). | |
| 23 **/ | 28 **/ |
| 24 int version; | 29 int version; |
| 25 | 30 |
| 26 /** | 31 /** |
|
Tom Sepez
2015/07/14 16:29:27
nit: Comment here like
/* Version 1. */
before
| |
| 27 * Method: app_alert | 32 * Method: app_alert |
| 28 * pop up a dialog to show warning or hint. | 33 * pop up a dialog to show warning or hint. |
| 29 * Interface Version: | 34 * Interface Version: |
| 30 * 1 | 35 * 1 |
| 31 * Implementation Required: | 36 * Implementation Required: |
| 32 * yes | 37 * yes |
| 33 * Parameters: | 38 * Parameters: |
| 34 * pThis - Pointer to the interface structure itself | 39 * pThis - Pointer to the interface structure itself |
| 35 * Msg - A string containing the message to be displayed. | 40 * Msg - A string containing the message to be displayed. |
| 36 * Title - The title of the dialog. | 41 * Title - The title of the dialog. |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 215 * Number of bytes the filePath consumes, including trailing zeros. | 220 * Number of bytes the filePath consumes, including trailing zeros. |
| 216 * Comments: | 221 * Comments: |
| 217 * The filePath shoule be always input in local encoding. | 222 * The filePath shoule be always input in local encoding. |
| 218 */ | 223 */ |
| 219 int (*Field_browse)(struct _IPDF_JsPlatform* pThis,void* filePath, int leng th); | 224 int (*Field_browse)(struct _IPDF_JsPlatform* pThis,void* filePath, int leng th); |
| 220 | 225 |
| 221 /** | 226 /** |
| 222 * pointer to FPDF_FORMFILLINFO interface. | 227 * pointer to FPDF_FORMFILLINFO interface. |
| 223 **/ | 228 **/ |
| 224 void* m_pFormfillinfo; | 229 void* m_pFormfillinfo; |
| 230 | |
|
Tom Sepez
2015/07/14 16:29:27
nit: comment like
/* Version 2. */
| |
| 231 /** | |
| 232 * pointer to the v8::Isolate to use. | |
|
Tom Sepez
2015/07/14 16:29:27
nit: , or NULL to force PDFIUm to create one.
| |
| 233 **/ | |
| 234 v8::Isolate* m_isolate; | |
| 225 } IPDF_JSPLATFORM; | 235 } IPDF_JSPLATFORM; |
| 226 | 236 |
| 227 // Flags for Cursor type | 237 // Flags for Cursor type |
| 228 #define FXCT_ARROW 0 | 238 #define FXCT_ARROW 0 |
| 229 #define FXCT_NESW 1 | 239 #define FXCT_NESW 1 |
| 230 #define FXCT_NWSE 2 | 240 #define FXCT_NWSE 2 |
| 231 #define FXCT_VBEAM 3 | 241 #define FXCT_VBEAM 3 |
| 232 #define FXCT_HBEAM 4 | 242 #define FXCT_HBEAM 4 |
| 233 #define FXCT_HAND 5 | 243 #define FXCT_HAND 5 |
| 234 | 244 |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 826 **/ | 836 **/ |
| 827 DLLEXPORT void STDCALL FPDF_FFLDraw(FPDF_FORMHANDLE hHandle,FPDF_BITMAP bitmap, FPDF_PAGE page, int start_x, int start_y, | 837 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); | 838 int size_x, int size_y, int rotate, int flags); |
| 829 | 839 |
| 830 | 840 |
| 831 #ifdef __cplusplus | 841 #ifdef __cplusplus |
| 832 } | 842 } |
| 833 #endif | 843 #endif |
| 834 | 844 |
| 835 #endif // PUBLIC_FPDF_FORMFILL_H_ | 845 #endif // PUBLIC_FPDF_FORMFILL_H_ |
| OLD | NEW |