OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium 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 #include "pdf/pdfium/pdfium_engine.h" | 5 #include "pdf/pdfium/pdfium_engine.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 FPDF_FORMFILLINFO::FFI_DoURIAction = Form_DoURIAction; | 588 FPDF_FORMFILLINFO::FFI_DoURIAction = Form_DoURIAction; |
589 FPDF_FORMFILLINFO::FFI_DoGoToAction = Form_DoGoToAction; | 589 FPDF_FORMFILLINFO::FFI_DoGoToAction = Form_DoGoToAction; |
590 #ifdef PDF_USE_XFA | 590 #ifdef PDF_USE_XFA |
591 FPDF_FORMFILLINFO::version = 2; | 591 FPDF_FORMFILLINFO::version = 2; |
592 FPDF_FORMFILLINFO::FFI_EmailTo = Form_EmailTo; | 592 FPDF_FORMFILLINFO::FFI_EmailTo = Form_EmailTo; |
593 FPDF_FORMFILLINFO::FFI_DisplayCaret = Form_DisplayCaret; | 593 FPDF_FORMFILLINFO::FFI_DisplayCaret = Form_DisplayCaret; |
594 FPDF_FORMFILLINFO::FFI_SetCurrentPage = Form_SetCurrentPage; | 594 FPDF_FORMFILLINFO::FFI_SetCurrentPage = Form_SetCurrentPage; |
595 FPDF_FORMFILLINFO::FFI_GetCurrentPageIndex = Form_GetCurrentPageIndex; | 595 FPDF_FORMFILLINFO::FFI_GetCurrentPageIndex = Form_GetCurrentPageIndex; |
596 FPDF_FORMFILLINFO::FFI_GetPageViewRect = Form_GetPageViewRect; | 596 FPDF_FORMFILLINFO::FFI_GetPageViewRect = Form_GetPageViewRect; |
597 FPDF_FORMFILLINFO::FFI_GetPlatform = Form_GetPlatform; | 597 FPDF_FORMFILLINFO::FFI_GetPlatform = Form_GetPlatform; |
| 598 FPDF_FORMFILLINFO::FFI_PageEvent = nullptr; |
598 FPDF_FORMFILLINFO::FFI_PopupMenu = Form_PopupMenu; | 599 FPDF_FORMFILLINFO::FFI_PopupMenu = Form_PopupMenu; |
599 FPDF_FORMFILLINFO::FFI_PostRequestURL = Form_PostRequestURL; | 600 FPDF_FORMFILLINFO::FFI_PostRequestURL = Form_PostRequestURL; |
600 FPDF_FORMFILLINFO::FFI_PutRequestURL = Form_PutRequestURL; | 601 FPDF_FORMFILLINFO::FFI_PutRequestURL = Form_PutRequestURL; |
601 FPDF_FORMFILLINFO::FFI_UploadTo = Form_UploadTo; | 602 FPDF_FORMFILLINFO::FFI_UploadTo = Form_UploadTo; |
602 FPDF_FORMFILLINFO::FFI_DownloadFromURL = Form_DownloadFromURL; | 603 FPDF_FORMFILLINFO::FFI_DownloadFromURL = Form_DownloadFromURL; |
603 FPDF_FORMFILLINFO::FFI_OpenFile = Form_OpenFile; | 604 FPDF_FORMFILLINFO::FFI_OpenFile = Form_OpenFile; |
604 FPDF_FORMFILLINFO::FFI_GotoURL = Form_GotoURL; | 605 FPDF_FORMFILLINFO::FFI_GotoURL = Form_GotoURL; |
605 FPDF_FORMFILLINFO::FFI_GetLanguage = Form_GetLanguage; | 606 FPDF_FORMFILLINFO::FFI_GetLanguage = Form_GetLanguage; |
606 #endif // PDF_USE_XFA | 607 #endif // PDF_USE_XFA |
607 IPDF_JSPLATFORM::version = 3; | 608 IPDF_JSPLATFORM::version = 3; |
(...skipping 3264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3872 FPDF_DOCUMENT doc = | 3873 FPDF_DOCUMENT doc = |
3873 FPDF_LoadMemDocument(pdf_buffer, pdf_buffer_size, nullptr); | 3874 FPDF_LoadMemDocument(pdf_buffer, pdf_buffer_size, nullptr); |
3874 if (!doc) | 3875 if (!doc) |
3875 return false; | 3876 return false; |
3876 bool success = FPDF_GetPageSizeByIndex(doc, page_number, width, height) != 0; | 3877 bool success = FPDF_GetPageSizeByIndex(doc, page_number, width, height) != 0; |
3877 FPDF_CloseDocument(doc); | 3878 FPDF_CloseDocument(doc); |
3878 return success; | 3879 return success; |
3879 } | 3880 } |
3880 | 3881 |
3881 } // namespace chrome_pdf | 3882 } // namespace chrome_pdf |
OLD | NEW |