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

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

Issue 840493002: Introduce new test for bookmark loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bookmarks-minimal
Patch Set: Corrections after rebase Created 5 years, 11 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: chrome/browser/resources/pdf/pdf.js
diff --git a/chrome/browser/resources/pdf/pdf.js b/chrome/browser/resources/pdf/pdf.js
index c9b50d9d9c72eda9eee4a42f1cf9e631ee3c64a1..22062a27d1bc40760d4aa76d1f35696ecc37e84d 100644
--- a/chrome/browser/resources/pdf/pdf.js
+++ b/chrome/browser/resources/pdf/pdf.js
@@ -709,5 +709,16 @@ PDFViewer.prototype = {
*/
get viewport() {
return this.viewport_;
+ },
+
+ /**
+ * Each bookmark is an Object containing a:
+ * - title
+ * - page (optional)
+ * - array of children (themselves bookmarks)
+ * @type {Array} the top-level bookmarks of the PDF.
+ */
+ get bookmarks() {
+ return this.bookmarks_;
}
};
« no previous file with comments | « no previous file | chrome/browser/resources/pdf/pdf_extension_test.cc » ('j') | chrome/browser/resources/pdf/pdf_extension_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698