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

Unified Diff: chrome/browser/resources/pdf/pdf.js

Issue 810623003: Add functions to collect bookmarks from Pdfium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove empty line Created 6 years 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/out_of_process_instance.cc » ('j') | pdf/pdf_engine.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/pdf/pdf.js
diff --git a/chrome/browser/resources/pdf/pdf.js b/chrome/browser/resources/pdf/pdf.js
index 4a270f5a2fba4c96c043ad2a1f071e7730eae4be..432eb2b5a9285b0bff14364abe99ba7f3e220da3 100644
--- a/chrome/browser/resources/pdf/pdf.js
+++ b/chrome/browser/resources/pdf/pdf.js
@@ -401,6 +401,11 @@ PDFViewer.prototype = {
case 'cancelStreamUrl':
chrome.streamsPrivate.abort(this.streamDetails.streamUrl);
break;
+ case 'bookmarks':
+ this.bookmarks = message.data.bookmarks;
+ console.log('pdf.js: Retrieved bookmarks.');
Sam McNally 2014/12/16 05:58:34 Remove these before landing.
Alexandre Carlton 2014/12/16 22:14:50 Done.
+ console.log(this.bookmarks);
+ break;
}
},
« no previous file with comments | « no previous file | pdf/out_of_process_instance.cc » ('j') | pdf/pdf_engine.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698