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

Unified Diff: pdf/pdfium/pdfium_engine.h

Issue 2959813003: PDF: Selection Invalidation should compensate for rounding errors. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »
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 449efdf8e01064407cf3708522dd612526d7a7c5..5b46fc06689c0cf185135bc0ae42a0f048a12d27 100644
--- a/pdf/pdfium/pdfium_engine.h
+++ b/pdf/pdfium/pdfium_engine.h
@@ -139,6 +139,10 @@ class PDFiumEngine : public PDFEngine,
// coordinates.
std::vector<pp::Rect> GetVisibleSelections() const;
+ // Invalidates |selection|, but with |selection| slightly expanded to
+ // compensate for any rounding errors.
+ void Invalidate(const pp::Rect& selection);
+
PDFiumEngine* const engine_;
// The origin at the time this object was constructed.
const pp::Point previous_origin_;
« 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