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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 shouldManageZoom_: function() { | 702 shouldManageZoom_: function() { |
703 return !!(chrome.tabs && !this.streamDetails_.embedded && | 703 return !!(chrome.tabs && !this.streamDetails_.embedded && |
704 this.streamDetails_.tabId != -1); | 704 this.streamDetails_.tabId != -1); |
705 }, | 705 }, |
706 | 706 |
707 /** | 707 /** |
708 * @type {Viewport} the viewport of the PDF viewer. | 708 * @type {Viewport} the viewport of the PDF viewer. |
709 */ | 709 */ |
710 get viewport() { | 710 get viewport() { |
711 return this.viewport_; | 711 return this.viewport_; |
| 712 }, |
| 713 |
| 714 /** |
| 715 * Each bookmark is an Object containing a: |
| 716 * - title |
| 717 * - page (optional) |
| 718 * - array of children (themselves bookmarks) |
| 719 * @type {Array} the top-level bookmarks of the PDF. |
| 720 */ |
| 721 get bookmarks() { |
| 722 return this.bookmarks_; |
712 } | 723 } |
713 }; | 724 }; |
OLD | NEW |