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

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

Issue 2941413002: PDF: Consistently pass FPDF handles by value. (Closed)
Patch Set: Created 3 years, 6 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 | « pdf/pdfium/fuzzers/pdfium_fuzzer_helper.cc ('k') | pdf/pdfium/pdfium_engine.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 (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 #ifndef PDF_PDFIUM_PDFIUM_ENGINE_H_ 5 #ifndef PDF_PDFIUM_PDFIUM_ENGINE_H_
6 #define PDF_PDFIUM_PDFIUM_ENGINE_H_ 6 #define PDF_PDFIUM_PDFIUM_ENGINE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 pp::Buffer_Dev PrintPagesAsRasterPDF( 306 pp::Buffer_Dev PrintPagesAsRasterPDF(
307 const PP_PrintPageNumberRange_Dev* page_ranges, 307 const PP_PrintPageNumberRange_Dev* page_ranges,
308 uint32_t page_range_count, 308 uint32_t page_range_count,
309 const PP_PrintSettings_Dev& print_settings); 309 const PP_PrintSettings_Dev& print_settings);
310 310
311 pp::Buffer_Dev PrintPagesAsPDF(const PP_PrintPageNumberRange_Dev* page_ranges, 311 pp::Buffer_Dev PrintPagesAsPDF(const PP_PrintPageNumberRange_Dev* page_ranges,
312 uint32_t page_range_count, 312 uint32_t page_range_count,
313 const PP_PrintSettings_Dev& print_settings); 313 const PP_PrintSettings_Dev& print_settings);
314 314
315 pp::Buffer_Dev GetFlattenedPrintData(const FPDF_DOCUMENT& doc); 315 pp::Buffer_Dev GetFlattenedPrintData(FPDF_DOCUMENT doc);
316 void FitContentsToPrintableAreaIfRequired( 316 void FitContentsToPrintableAreaIfRequired(
317 const FPDF_DOCUMENT& doc, 317 FPDF_DOCUMENT doc,
318 const PP_PrintSettings_Dev& print_settings); 318 const PP_PrintSettings_Dev& print_settings);
319 void SaveSelectedFormForPrint(); 319 void SaveSelectedFormForPrint();
320 320
321 // Given a mouse event, returns which page and character location it's closest 321 // Given a mouse event, returns which page and character location it's closest
322 // to. 322 // to.
323 PDFiumPage::Area GetCharIndex(const pp::MouseInputEvent& event, 323 PDFiumPage::Area GetCharIndex(const pp::MouseInputEvent& event,
324 int* page_index, 324 int* page_index,
325 int* char_index, 325 int* char_index,
326 int* form_type, 326 int* form_type,
327 PDFiumPage::LinkTarget* target); 327 PDFiumPage::LinkTarget* target);
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 bool GetPDFPageSizeByIndex(const void* pdf_buffer, 798 bool GetPDFPageSizeByIndex(const void* pdf_buffer,
799 int pdf_buffer_size, 799 int pdf_buffer_size,
800 int page_number, 800 int page_number,
801 double* width, 801 double* width,
802 double* height) override; 802 double* height) override;
803 }; 803 };
804 804
805 } // namespace chrome_pdf 805 } // namespace chrome_pdf
806 806
807 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 807 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW
« no previous file with comments | « pdf/pdfium/fuzzers/pdfium_fuzzer_helper.cc ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698