| OLD | NEW |
| 1 // Copyright (c) 2015 PDFium Authors. All rights reserved. | 1 // Copyright (c) 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "../core/include/fxcrt/fx_system.h" | 10 #include "../core/include/fxcrt/fx_system.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // Load a specific page of the open document. | 58 // Load a specific page of the open document. |
| 59 virtual FPDF_PAGE LoadPage(int page_number, FPDF_FORMHANDLE form); | 59 virtual FPDF_PAGE LoadPage(int page_number, FPDF_FORMHANDLE form); |
| 60 | 60 |
| 61 // Convert a loaded page into a bitmap. | 61 // Convert a loaded page into a bitmap. |
| 62 virtual FPDF_BITMAP RenderPage(FPDF_PAGE page, FPDF_FORMHANDLE form); | 62 virtual FPDF_BITMAP RenderPage(FPDF_PAGE page, FPDF_FORMHANDLE form); |
| 63 | 63 |
| 64 // Relese the resources obtained from LoadPage(). Further use of |page| | 64 // Relese the resources obtained from LoadPage(). Further use of |page| |
| 65 // is prohibited after this call is made. | 65 // is prohibited after this call is made. |
| 66 virtual void UnloadPage(FPDF_PAGE page, FPDF_FORMHANDLE form); | 66 virtual void UnloadPage(FPDF_PAGE page, FPDF_FORMHANDLE form); |
| 67 | 67 |
| 68 private: | 68 protected: |
| 69 FPDF_DOCUMENT document_; | 69 FPDF_DOCUMENT document_; |
| 70 FPDF_AVAIL avail_; | 70 FPDF_AVAIL avail_; |
| 71 FX_DOWNLOADHINTS hints_; | 71 FX_DOWNLOADHINTS hints_; |
| 72 FPDF_FILEACCESS file_access_; | 72 FPDF_FILEACCESS file_access_; |
| 73 FX_FILEAVAIL file_avail_; | 73 FX_FILEAVAIL file_avail_; |
| 74 v8::StartupData natives_; | 74 v8::StartupData natives_; |
| 75 v8::StartupData snapshot_; | 75 v8::StartupData snapshot_; |
| 76 TestLoader* loader_; | 76 TestLoader* loader_; |
| 77 size_t file_length_; | 77 size_t file_length_; |
| 78 char* file_contents_; | 78 char* file_contents_; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 #endif // TESTING_EMBEDDER_TEST_H_ | 81 #endif // TESTING_EMBEDDER_TEST_H_ |
| 82 | 82 |
| OLD | NEW |