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

Side by Side Diff: public/fpdfview.h

Issue 1367033002: Pass v8::Isolate to PDFium at init time. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: kill include Created 5 years, 2 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 | « public/fpdf_formfill.h ('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 // 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
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
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_
OLDNEW
« no previous file with comments | « public/fpdf_formfill.h ('k') | samples/pdfium_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698