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

Side by Side Diff: pdf/pdfium/pdfium_engine.cc

Issue 1722603003: Roll PDFium 1e1d3b0..e4ac336 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: roll some more Created 4 years, 10 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 | « DEPS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698