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

Unified Diff: pdf/pdfium/pdfium_page.h

Issue 2127383002: Open hyperlinks in PDF in a new tab when middle mouse clicking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: pdf/pdfium/pdfium_page.h
diff --git a/pdf/pdfium/pdfium_page.h b/pdf/pdfium/pdfium_page.h
index fa94ed96a081339f0900921f1e6dd97b9df8add8..aa71e5a7b8ea71575e6c35ca1e6c400b58051fef 100644
--- a/pdf/pdfium/pdfium_page.h
+++ b/pdf/pdfium/pdfium_page.h
@@ -96,6 +96,8 @@ class PDFiumPage {
calculated_links_ = calculated_links;
}
+ std::vector<pp::Rect> GetLinkRects();
Lei Zhang 2016/07/08 18:02:36 nit: Put this above the simple accessors, around l
jaepark 2016/07/08 20:58:16 Done.
+
private:
// Returns a link index if the given character index is over a link, or -1
// otherwise.
@@ -112,6 +114,8 @@ class PDFiumPage {
// Returns target associated with a destination.
Area GetDestinationTarget(FPDF_DEST destination, LinkTarget* target) const;
+ pp::Rect UnionLinkCharRects(const std::vector<pp::Rect> rects);
Lei Zhang 2016/07/08 18:02:36 This method doesn't use any class members. Put it
Lei Zhang 2016/07/08 18:02:36 The parameter should be passed by const ref, not b
jaepark 2016/07/08 20:58:17 Done.
jaepark 2016/07/08 20:58:17 Done.
+
class ScopedLoadCounter {
public:
explicit ScopedLoadCounter(PDFiumPage* page);

Powered by Google App Engine
This is Rietveld 408576698