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

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

Issue 555803002: PDF Viewer - Search results don't work after rotating pdf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 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 | « no previous file | 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 // Used for searching. 534 // Used for searching.
535 typedef std::vector<PDFiumRange> FindResults; 535 typedef std::vector<PDFiumRange> FindResults;
536 FindResults find_results_; 536 FindResults find_results_;
537 // Which page to search next. 537 // Which page to search next.
538 int next_page_to_search_; 538 int next_page_to_search_;
539 // Where to stop searching. 539 // Where to stop searching.
540 int last_page_to_search_; 540 int last_page_to_search_;
541 int last_character_index_to_search_; // -1 if search until end of page. 541 int last_character_index_to_search_; // -1 if search until end of page.
542 // Which result the user has currently selected. 542 // Which result the user has currently selected.
543 int current_find_index_; 543 int current_find_index_;
544 // Where to resume searching.
545 int resume_find_index_;
544 546
545 // Permissions bitfield. 547 // Permissions bitfield.
546 unsigned long permissions_; 548 unsigned long permissions_;
547 549
548 // Interface structure to provide access to document stream. 550 // Interface structure to provide access to document stream.
549 FPDF_FILEACCESS file_access_; 551 FPDF_FILEACCESS file_access_;
550 // Interface structure to check data availability in the document stream. 552 // Interface structure to check data availability in the document stream.
551 FileAvail file_availability_; 553 FileAvail file_availability_;
552 // Interface structure to request data chunks from the document stream. 554 // Interface structure to request data chunks from the document stream.
553 DownloadHints download_hints_; 555 DownloadHints download_hints_;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 649
648 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 650 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
649 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 651 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
650 int pdf_buffer_size, int page_number, 652 int pdf_buffer_size, int page_number,
651 double* width, double* height); 653 double* width, double* height);
652 }; 654 };
653 655
654 } // namespace chrome_pdf 656 } // namespace chrome_pdf
655 657
656 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 658 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698