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_page.h

Issue 1555153003: Another round of PDF plugin cleanups. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 12 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 | « pdf/pdfium/pdfium_engine.cc ('k') | pdf/pdfium/pdfium_page.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/pdfium_page.h
diff --git a/pdf/pdfium/pdfium_page.h b/pdf/pdfium/pdfium_page.h
index eee57e0f76c8173ce5e342ab0b50a4ab6262946c..da30504b1536223943e296fd5e1c476e468a882c 100644
--- a/pdf/pdfium/pdfium_page.h
+++ b/pdf/pdfium/pdfium_page.h
@@ -30,6 +30,7 @@ class PDFiumPage {
const pp::Rect& r,
bool available);
~PDFiumPage();
+
// Unloads the PDFium data for this page from memory.
void Unload();
// Gets the FPDF_PAGE for this page, loading and parsing it if necessary.
@@ -79,7 +80,7 @@ class PDFiumPage {
double top,
double right,
double bottom,
- int rotation);
+ int rotation) const;
int index() const { return index_; }
pp::Rect rect() const { return rect_; }
@@ -102,9 +103,9 @@ class PDFiumPage {
void CalculateLinks();
// Returns link type and target associated with a link. Returns
// NONSELECTABLE_AREA if link detection failed.
- Area GetLinkTarget(FPDF_LINK link, LinkTarget* target);
+ Area GetLinkTarget(FPDF_LINK link, LinkTarget* target) const;
// Returns target associated with a destination.
- Area GetDestinationTarget(FPDF_DEST destination, LinkTarget* target);
+ Area GetDestinationTarget(FPDF_DEST destination, LinkTarget* target) const;
// Returns the text in the supplied box as a Value Node
base::Value* GetTextBoxAsValue(double page_height, double left, double top,
double right, double bottom, int rotation);
« no previous file with comments | « pdf/pdfium/pdfium_engine.cc ('k') | pdf/pdfium/pdfium_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698