| 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 // NOTE: External docs refer to this file as "fpdfview.h", so do not rename | 7 // NOTE: External docs refer to this file as "fpdfview.h", so do not rename |
| 8 // despite lack of consitency with other public files. | 8 // despite lack of consitency with other public files. |
| 9 | 9 |
| 10 #ifndef PUBLIC_FPDFVIEW_H_ | 10 #ifndef PUBLIC_FPDFVIEW_H_ |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // None | 123 // None |
| 124 // Return value: | 124 // Return value: |
| 125 // None. | 125 // None. |
| 126 // Comments: | 126 // Comments: |
| 127 // Convenience function to call FPDF_InitLibraryWithConfig() for | 127 // Convenience function to call FPDF_InitLibraryWithConfig() for |
| 128 // backwards comatibility purposes. | 128 // backwards comatibility purposes. |
| 129 DLLEXPORT void STDCALL FPDF_InitLibrary(); | 129 DLLEXPORT void STDCALL FPDF_InitLibrary(); |
| 130 | 130 |
| 131 // Process-wide options for initializing library. | 131 // Process-wide options for initializing library. |
| 132 typedef struct FPDF_LIBRARY_CONFIG_ { | 132 typedef struct FPDF_LIBRARY_CONFIG_ { |
| 133 // Version number of the interface. Currently must be 1. | 133 // Version number of the interface. Currently must be 2. |
| 134 int version; | 134 int version; |
| 135 | 135 |
| 136 // Array of paths to scan in place of the defaults when using built-in | 136 // Array of paths to scan in place of the defaults when using built-in |
| 137 // FXGE font loading code. The array is terminated by a NULL pointer. | 137 // FXGE font loading code. The array is terminated by a NULL pointer. |
| 138 // The Array may be NULL itself to use the default paths. May be ignored | 138 // The Array may be NULL itself to use the default paths. May be ignored |
| 139 // entirely depending upon the platform. | 139 // entirely depending upon the platform. |
| 140 const char** m_pUserFontPaths; | 140 const char** m_pUserFontPaths; |
| 141 |
| 142 // Version 2. |
| 143 |
| 144 // pointer to the v8::Isolate to use, or NULL to force PDFium to create one. |
| 145 void* m_pIsolate; |
| 146 |
| 147 // The embedder data slot to use in the v8::Isolate to store PDFium's |
| 148 // per-isolate data. The value needs to be between 0 and |
| 149 // v8::Internals::kNumIsolateDataLots (exclusive). Note that 0 is fine |
| 150 // for most embedders. |
| 151 unsigned int m_v8EmbedderSlot; |
| 141 } FPDF_LIBRARY_CONFIG; | 152 } FPDF_LIBRARY_CONFIG; |
| 142 | 153 |
| 143 // Function: FPDF_InitLibraryWithConfig | 154 // Function: FPDF_InitLibraryWithConfig |
| 144 // Initialize the FPDFSDK library | 155 // Initialize the FPDFSDK library |
| 145 // Parameters: | 156 // Parameters: |
| 146 // cfg - configuration information as above. | 157 // cfg - configuration information as above. |
| 147 // Return value: | 158 // Return value: |
| 148 // None. | 159 // None. |
| 149 // Comments: | 160 // Comments: |
| 150 // You have to call this function before you can call any PDF | 161 // You have to call this function before you can call any PDF |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 822 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document, | 833 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document, |
| 823 int index, | 834 int index, |
| 824 void* buffer, | 835 void* buffer, |
| 825 long* buflen); | 836 long* buflen); |
| 826 | 837 |
| 827 #ifdef __cplusplus | 838 #ifdef __cplusplus |
| 828 } | 839 } |
| 829 #endif | 840 #endif |
| 830 | 841 |
| 831 #endif // PUBLIC_FPDFVIEW_H_ | 842 #endif // PUBLIC_FPDFVIEW_H_ |
| OLD | NEW |