| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // None | 151 // None |
| 152 // Return value: | 152 // Return value: |
| 153 // None. | 153 // None. |
| 154 // Comments: | 154 // Comments: |
| 155 // Convenience function to call FPDF_InitLibraryWithConfig() for | 155 // Convenience function to call FPDF_InitLibraryWithConfig() for |
| 156 // backwards comatibility purposes. | 156 // backwards comatibility purposes. |
| 157 DLLEXPORT void STDCALL FPDF_InitLibrary(); | 157 DLLEXPORT void STDCALL FPDF_InitLibrary(); |
| 158 | 158 |
| 159 // Process-wide options for initializing library. | 159 // Process-wide options for initializing library. |
| 160 typedef struct FPDF_LIBRARY_CONFIG_ { | 160 typedef struct FPDF_LIBRARY_CONFIG_ { |
| 161 // Version number of the interface. Currently must be 1. | 161 // Version number of the interface. Currently must be 2. |
| 162 int version; | 162 int version; |
| 163 | 163 |
| 164 // Array of paths to scan in place of the defaults when using built-in | 164 // Array of paths to scan in place of the defaults when using built-in |
| 165 // FXGE font loading code. The array is terminated by a NULL pointer. | 165 // FXGE font loading code. The array is terminated by a NULL pointer. |
| 166 // The Array may be NULL itself to use the default paths. May be ignored | 166 // The Array may be NULL itself to use the default paths. May be ignored |
| 167 // entirely depending upon the platform. | 167 // entirely depending upon the platform. |
| 168 const char** m_pUserFontPaths; | 168 const char** m_pUserFontPaths; |
| 169 |
| 170 // Version 2. |
| 171 |
| 172 // pointer to the v8::Isolate to use, or NULL to force PDFium to create one. |
| 173 void* m_pIsolate; |
| 174 |
| 175 // The embedder data slot to use in the v8::Isolate to store PDFium's |
| 176 // per-isolate data. The value needs to be between 0 and |
| 177 // v8::Internals::kNumIsolateDataLots (exclusive). Note that 0 is fine |
| 178 // for most embedders. |
| 179 unsigned int m_v8EmbedderSlot; |
| 169 } FPDF_LIBRARY_CONFIG; | 180 } FPDF_LIBRARY_CONFIG; |
| 170 | 181 |
| 171 // Function: FPDF_InitLibraryWithConfig | 182 // Function: FPDF_InitLibraryWithConfig |
| 172 // Initialize the FPDFSDK library | 183 // Initialize the FPDFSDK library |
| 173 // Parameters: | 184 // Parameters: |
| 174 // cfg - configuration information as above. | 185 // cfg - configuration information as above. |
| 175 // Return value: | 186 // Return value: |
| 176 // None. | 187 // None. |
| 177 // Comments: | 188 // Comments: |
| 178 // You have to call this function before you can call any PDF | 189 // You have to call this function before you can call any PDF |
| (...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 | 969 |
| 959 // Function: FPDF_BStr_Clear | 970 // Function: FPDF_BStr_Clear |
| 960 // Helper function to clear a byte string. | 971 // Helper function to clear a byte string. |
| 961 DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Clear(FPDF_BSTR* str); | 972 DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Clear(FPDF_BSTR* str); |
| 962 | 973 |
| 963 #ifdef __cplusplus | 974 #ifdef __cplusplus |
| 964 } | 975 } |
| 965 #endif | 976 #endif |
| 966 | 977 |
| 967 #endif // PUBLIC_FPDFVIEW_H_ | 978 #endif // PUBLIC_FPDFVIEW_H_ |
| OLD | NEW |