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

Unified Diff: chrome/browser/resources/pdf/elements/pdf-bookmark/pdf-bookmark.js

Issue 865033002: Implement a slide-in pane for bookmarks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pdf-pane
Patch Set: Remove unnecessary import 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/elements/pdf-bookmark/pdf-bookmark.js
diff --git a/chrome/browser/resources/pdf/elements/pdf-bookmark/pdf-bookmark.js b/chrome/browser/resources/pdf/elements/pdf-bookmark/pdf-bookmark.js
new file mode 100644
index 0000000000000000000000000000000000000000..03a0fc5d258e694dd1debb30f18b379c26c84166
--- /dev/null
+++ b/chrome/browser/resources/pdf/elements/pdf-bookmark/pdf-bookmark.js
@@ -0,0 +1,18 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+Polymer('pdf-bookmark', {
raymes 2015/01/29 04:55:07 Sam suggested calling this viewer-bookmark
Alexandre Carlton 2015/01/29 05:39:06 Done.
+
+ // A bookmark object, each containing a:
+ // - title
+ // - page (optional)
+ // - children (an array of bookmarks)
raymes 2015/01/29 04:55:07 Please use the jsdoc like in pdf.js :)
Alexandre Carlton 2015/01/29 05:39:06 Done.
+ bookmark: null,
+
+ onClick: function() {
+ if (this.bookmark.hasOwnProperty('page'))
+ this.fire('changePage', {page: this.bookmark.page});
+ },
+
+});

Powered by Google App Engine
This is Rietveld 408576698