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

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: Created 6 years, 3 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') | pdf/pdfium/pdfium_engine.cc » ('J')
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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 typedef std::vector<PDFiumRange> FindResults; 513 typedef std::vector<PDFiumRange> FindResults;
514 FindResults find_results_; 514 FindResults find_results_;
515 // Which page to search next. 515 // Which page to search next.
516 int next_page_to_search_; 516 int next_page_to_search_;
517 // Where to stop searching. 517 // Where to stop searching.
518 int last_page_to_search_; 518 int last_page_to_search_;
519 int last_character_index_to_search_; // -1 if search until end of page. 519 int last_character_index_to_search_; // -1 if search until end of page.
520 // Which result the user has currently selected. 520 // Which result the user has currently selected.
521 int current_find_index_; 521 int current_find_index_;
522 522
523 // Used to store current state of find results.
524 struct FindResultState {
525 FindResultState() {
526 find_index_ = -1;
527 };
528 FindResultState(std::string find_text, int find_index)
529 : find_text_(find_text), find_index_(find_index) {};
530 std::string find_text_;
531 int find_index_;
532 };
533 FindResultState find_result_state_;
534
523 // Permissions bitfield. 535 // Permissions bitfield.
524 unsigned long permissions_; 536 unsigned long permissions_;
525 537
526 // Interface structure to provide access to document stream. 538 // Interface structure to provide access to document stream.
527 FPDF_FILEACCESS file_access_; 539 FPDF_FILEACCESS file_access_;
528 // Interface structure to check data availability in the document stream. 540 // Interface structure to check data availability in the document stream.
529 FileAvail file_availability_; 541 FileAvail file_availability_;
530 // Interface structure to request data chunks from the document stream. 542 // Interface structure to request data chunks from the document stream.
531 DownloadHints download_hints_; 543 DownloadHints download_hints_;
532 // Pointer to the document availability interface. 544 // Pointer to the document availability interface.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 637
626 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 638 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
627 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 639 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
628 int pdf_buffer_size, int page_number, 640 int pdf_buffer_size, int page_number,
629 double* width, double* height); 641 double* width, double* height);
630 }; 642 };
631 643
632 } // namespace chrome_pdf 644 } // namespace chrome_pdf
633 645
634 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 646 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | pdf/pdfium/pdfium_engine.cc » ('j') | pdf/pdfium/pdfium_engine.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698