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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pdf/pdfium/pdfium_engine.cc » ('j') | pdf/pdfium/pdfium_engine.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/pdfium_engine.h
diff --git a/pdf/pdfium/pdfium_engine.h b/pdf/pdfium/pdfium_engine.h
index a320ba10c78100fba4d64b0b39bba05e2cb2f003..6976f98b32bdb9c7dc654f0f947ac2ef115f1790 100644
--- a/pdf/pdfium/pdfium_engine.h
+++ b/pdf/pdfium/pdfium_engine.h
@@ -520,6 +520,18 @@ class PDFiumEngine : public PDFEngine,
// Which result the user has currently selected.
int current_find_index_;
+ // Used to store current state of find results.
+ struct FindResultState {
+ FindResultState() {
+ find_index_ = -1;
+ };
+ FindResultState(std::string find_text, int find_index)
+ : find_text_(find_text), find_index_(find_index) {};
+ std::string find_text_;
+ int find_index_;
+ };
+ FindResultState find_result_state_;
+
// Permissions bitfield.
unsigned long permissions_;
« 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