OLD | NEW |
1 // Copyright 2015 PDFium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef TESTING_EMBEDDER_TEST_H_ | 5 #ifndef TESTING_EMBEDDER_TEST_H_ |
6 #define TESTING_EMBEDDER_TEST_H_ | 6 #define TESTING_EMBEDDER_TEST_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 Delegate* delegate_; | 118 Delegate* delegate_; |
119 std::unique_ptr<Delegate> default_delegate_; | 119 std::unique_ptr<Delegate> default_delegate_; |
120 FPDF_DOCUMENT document_; | 120 FPDF_DOCUMENT document_; |
121 FPDF_FORMHANDLE form_handle_; | 121 FPDF_FORMHANDLE form_handle_; |
122 FPDF_AVAIL avail_; | 122 FPDF_AVAIL avail_; |
123 FX_DOWNLOADHINTS hints_; | 123 FX_DOWNLOADHINTS hints_; |
124 FPDF_FILEACCESS file_access_; | 124 FPDF_FILEACCESS file_access_; |
125 FX_FILEAVAIL file_avail_; | 125 FX_FILEAVAIL file_avail_; |
126 #ifdef PDF_ENABLE_V8 | 126 #ifdef PDF_ENABLE_V8 |
127 v8::Platform* platform_; | 127 v8::Platform* platform_; |
128 v8::StartupData natives_; | |
129 v8::StartupData snapshot_; | |
130 #endif // PDF_ENABLE_V8 | 128 #endif // PDF_ENABLE_V8 |
131 void* external_isolate_; | 129 void* external_isolate_; |
132 TestLoader* loader_; | 130 TestLoader* loader_; |
133 size_t file_length_; | 131 size_t file_length_; |
134 std::unique_ptr<char, pdfium::FreeDeleter> file_contents_; | 132 std::unique_ptr<char, pdfium::FreeDeleter> file_contents_; |
135 | 133 |
136 private: | 134 private: |
137 static void UnsupportedHandlerTrampoline(UNSUPPORT_INFO*, int type); | 135 static void UnsupportedHandlerTrampoline(UNSUPPORT_INFO*, int type); |
138 static int AlertTrampoline(IPDF_JSPLATFORM* plaform, | 136 static int AlertTrampoline(IPDF_JSPLATFORM* plaform, |
139 FPDF_WIDESTRING message, | 137 FPDF_WIDESTRING message, |
140 FPDF_WIDESTRING title, | 138 FPDF_WIDESTRING title, |
141 int type, | 139 int type, |
142 int icon); | 140 int icon); |
143 static int SetTimerTrampoline(FPDF_FORMFILLINFO* info, | 141 static int SetTimerTrampoline(FPDF_FORMFILLINFO* info, |
144 int msecs, | 142 int msecs, |
145 TimerCallback fn); | 143 TimerCallback fn); |
146 static void KillTimerTrampoline(FPDF_FORMFILLINFO* info, int id); | 144 static void KillTimerTrampoline(FPDF_FORMFILLINFO* info, int id); |
147 static FPDF_PAGE GetPageTrampoline(FPDF_FORMFILLINFO* info, | 145 static FPDF_PAGE GetPageTrampoline(FPDF_FORMFILLINFO* info, |
148 FPDF_DOCUMENT document, | 146 FPDF_DOCUMENT document, |
149 int page_index); | 147 int page_index); |
150 }; | 148 }; |
151 | 149 |
152 #endif // TESTING_EMBEDDER_TEST_H_ | 150 #endif // TESTING_EMBEDDER_TEST_H_ |
OLD | NEW |