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

Side by Side Diff: chrome/browser/resources/pdf/pdf.js

Issue 840493002: Introduce new test for bookmark loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bookmarks-minimal
Patch Set: Add getter for bookmarks 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/pdf/pdf_extension_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
Sam McNally 2015/01/18 23:56:57 Optional?
Alexandre Carlton 2015/01/19 00:42:47 Done.
622 * - array of children (themselves bookmarks)
623 * @type {Array} the top-level bookmarks of the PDF.
624 */
625 get bookmarks() {
626 return this.bookmarks_;
616 } 627 }
617 }; 628 };
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/pdf/pdf_extension_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698