| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 | 4 |
| 5 'use strict'; | 5 'use strict'; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @return {number} Width of a scrollbar in pixels | 8 * @return {number} Width of a scrollbar in pixels |
| 9 */ | 9 */ |
| 10 function getScrollbarWidth() { | 10 function getScrollbarWidth() { |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 shouldManageZoom_: function() { | 606 shouldManageZoom_: function() { |
| 607 return !!(chrome.tabs && !this.streamDetails_.embedded && | 607 return !!(chrome.tabs && !this.streamDetails_.embedded && |
| 608 this.streamDetails_.tabId != -1); | 608 this.streamDetails_.tabId != -1); |
| 609 }, | 609 }, |
| 610 | 610 |
| 611 /** | 611 /** |
| 612 * @type {Viewport} the viewport of the PDF viewer. | 612 * @type {Viewport} the viewport of the PDF viewer. |
| 613 */ | 613 */ |
| 614 get viewport() { | 614 get viewport() { |
| 615 return this.viewport_; | 615 return this.viewport_; |
| 616 }, | |
| 617 | |
| 618 /** | |
| 619 * Each bookmark is an Object containing a: | |
| 620 * - title | |
| 621 * - page (optional) | |
| 622 * - array of children (themselves bookmarks) | |
| 623 * @type {Array} the top-level bookmarks of the PDF. | |
| 624 */ | |
| 625 get bookmarks() { | |
| 626 return this.bookmarks_; | |
| 627 } | 616 } |
| 628 }; | 617 }; |
| OLD | NEW |