| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 (function() { | 4 (function() { |
| 5 Polymer({ | 5 Polymer({ |
| 6 is: 'viewer-pdf-toolbar', | 6 is: 'viewer-pdf-toolbar', |
| 7 | 7 |
| 8 properties: { | 8 properties: { |
| 9 /** | 9 /** |
| 10 * The current loading progress of the PDF document (0 - 100). | 10 * The current loading progress of the PDF document (0 - 100). |
| 11 */ | 11 */ |
| 12 loadProgress: { | 12 loadProgress: { |
| 13 type: Number, | 13 type: Number, |
| 14 observer: 'loadProgressChanged' | 14 observer: 'loadProgressChanged' |
| 15 }, | 15 }, |
| 16 | 16 |
| 17 /** | 17 /** |
| 18 * The title of the PDF document. | 18 * The title of the PDF document. |
| 19 */ | 19 */ |
| 20 docTitle: String, | 20 docTitle: String, |
| 21 | 21 |
| 22 /** | 22 /** |
| 23 * The current index of the page being viewed (0-based). | 23 * The number of the page being viewed (1-based). |
| 24 */ | 24 */ |
| 25 pageIndex: Number, | 25 pageNo: Number, |
| 26 | 26 |
| 27 /** | 27 /** |
| 28 * Whether the document has bookmarks. | 28 * Whether the document has bookmarks. |
| 29 */ | 29 */ |
| 30 hasBookmarks: Boolean, | 30 hasBookmarks: Boolean, |
| 31 | 31 |
| 32 /** | 32 /** |
| 33 * The number of pages in the PDF document. | 33 * The number of pages in the PDF document. |
| 34 */ | 34 */ |
| 35 docLength: Number, | 35 docLength: Number, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 save: function() { | 82 save: function() { |
| 83 this.fire('save'); | 83 this.fire('save'); |
| 84 }, | 84 }, |
| 85 | 85 |
| 86 print: function() { | 86 print: function() { |
| 87 this.fire('print'); | 87 this.fire('print'); |
| 88 } | 88 } |
| 89 }); | 89 }); |
| 90 })(); | 90 })(); |
| OLD | NEW |