Chromium Code Reviews| 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}); |
| + }, |
| + |
| +}); |